/* ==========================================================================
   Live custom CSS — ported from the Divi site (Theme Options → Custom CSS, identical to the
   Customizer "Additional CSS" of the Clough child theme). Styles the markup printed by the
   ported shortcodes (.row-header/.row-items tables, tooltips, date headers, arrow links …).
   Removed: rules for Divi/Blog-Extras-only elements (#my-blog-extra-slider, swiper buttons,
   #blog-extra-prev/next, #navigation, #whoWeAre-hidden, #dist-year-select) and for classes the
   theme never prints (.overview-heading, .all-holdings-heading, .tooltip-text).
   Also removed: the `.top-boxes` column-width rules (the tiles are a CSS grid now — pages/fund.css).
   THEME additions are at the end.
   ========================================================================== */

.sub-menu {
/*   border-radius: 8px;
  min-width: 300px !important; */
}

/* Style submenu list items */
.sub-menu li {
	width: 100% !important;
	padding: 0px !important;
}

/* Style submenu links */
.sub-menu li a {
  font-size: 16px !important;
	font-weight: 500;
	width: 100% !important;
}

.sub-menu li a:hover {
  background-color: none !important;
	color: white !important;
}

sup {
    bottom: .10em !important;
    font-size: 40px !important;
}
/* Style the text link */
a.read-more-link-black{
	color: #101530 !important;
	position :relative;
}
a.read-more-link-black:hover {
  position: relative;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Add arrow icon after the text */
a.read-more-link-black::after {
  content: '' !important;
  display: inline-block !important;
  background-image: url('/wp-content/uploads/2025/07/black-arrow.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  width: 20px !important;  
  height: 20px !important;
  position: absolute !important;
  right: -30px !important; 
  top: 50% !important;
  transform: translateY(-50%); 
  transition: transform 0.3s ease; /* Smooth rotation transition */
}

/* Rotate the icon on hover */
a.read-more-link-black:hover::after {
  transform: translateY(-50%) rotate(-180deg); /* Rotate icon 180 degrees */
}
/* FANCY TEXT LINK WITH ARROW ANIMATION - white */

/* Style the text link */
a.read-more-link-white{
	color: #ffffff !important;
	position :relative;
}

.read-more-link-white:hover {
  position: relative;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Add arrow icon after the text */
.read-more-link-white::after {
  content: '' !important;
  display: inline-block !important;
  background-image: url('/wp-content/uploads/2025/07/white-arrow.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  width: 20px !important;  
  height: 20px !important;
  position: absolute !important;
  right: -30px !important; 
  top: 50% !important;
  transform: translateY(-50%); 
  transition: transform 0.3s ease; /* Smooth rotation transition */
}

/* Rotate the icon on hover */
.read-more-link-white:hover::after {
  transform: translateY(-50%) rotate(-180deg); /* Rotate icon 180 degrees */
}

/* Base styles */
/* Style the text link */
a.more-link{
	color: #FFF !important;
	position :relative !important;
	font-size : 19px;
	margin-top : 35px !important;
}
a.more-link:hover {
  position: relative;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Add arrow icon after the text */
a.more-link::after {
  content: '' !important;
  display: inline-block !important;
  background-image: url('/wp-content/uploads/2025/07/white-arrow.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  width: 20px !important;  
  height: 20px !important;
  position: absolute !important;
  right: -30px !important; 
  top: 50% !important;
  transform: translateY(-50%); 
  transition: transform 0.3s ease; /* Smooth rotation transition */
}

/* Rotate the icon on hover */
a.more-link:hover::after {
  transform: translateY(-50%) rotate(-180deg); /* Rotate icon 180 degrees */
}

/* Hide default Swiper navigation buttons for your specific Blog Extra module */
.row-header{
	background: #00845f;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0.5rem; 
	color: #FFF;
	font-family: Inter;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	line-height: 150.5%; /* 27.09px */
	letter-spacing: -0.27px;
/* 	border-bottom: 5px solid #2C6C9B; */
	border-radius: 5px 5px 0px 0px;
}

.row-items{
	background: white;
	padding: 0.5rem 0.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #101530;
	font-family: Inter;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 150.5%; /* 27.09px */
	letter-spacing: -0.27px;
	min-height: 42px;
	cursor:pointer;
}
/* Alternate rows with a light gray background */
.row-items:nth-child(even) {
	background-color: white; /* or any subtle shade */
}

/* Optional: add a slight darker shade for odd rows if needed */
.row-items:nth-child(odd) {
	background-color: #e9efeb; /* can be left as is or slightly off-white */
}
.row-items:last-child{
	border-radius: 0px 0px 5px 5px;
}

.date-header{
	color: #FFF;
	font-family: Inter;
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 150.5%; /* 27.09px */
	letter-spacing: -0.27px;
	border-bottom: 2px solid #FFF;
	margin-bottom: 40px;
}
.date-header div{
	margin-top: -40px;
	margin-bottom: 40px;
}
.flex-wrapper{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 2px 12px;
	background: #ffffff;
	color: #000000;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	border-radius: 5px;
}

.download-btn svg {
	display: block;
}

.download-btn:hover {
	background: #00845f;
	color: #ffffff;
}

.download-btn:hover svg path {
	stroke: #ffffff;
}

.holdings-heading{
	color: #FFF;
	font-family: Inter;
	font-size: 18px;
	font-style: normal;
	font-weight: 500;
	line-height: 150.5%; /* 27.09px */
	letter-spacing: -0.27px;
	margin-bottom: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.row-header > div,
.row-items > div {
  flex: 1;
  text-align: left;
  padding: 0 8px;
  box-sizing: border-box;
  min-width: 0;
}
.row-header > div:first-child,
.row-items > div:first-child {
  flex: 2; /* Make sector/label column wider */
}
.col-2 > div:last-child {
  margin-left: auto;
  text-align: right;
}

.custom-tooltip-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  cursor: pointer;
}

.custom-tooltip-icon .info-icon {
  width: 18px;
  height: 18px;
}

/* Desktop Tooltip */
.custom-tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, calc(100vw - 32px));
  max-height: 160px;
  background: #fff;
  color: #101530;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  font-size: 13px;
  line-height: 1.6;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 9999;
}

.custom-tooltip-icon:hover::after,
.custom-tooltip-icon:focus::after {
  opacity: 1;
  visibility: visible;
}

.tooltip-overlay {
	display: none;
}

.chart-container{
	background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    padding: 0px 20px;
    box-shadow: 0px 2px 18px 0px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}
.au{
	color: white;
}
.au:hover{
	text-decoration: underline;
}

.tableOverflowIndicator{
    color:#353536;
    width:100%;
    text-align:center;
    margin:10px 0 30px 0;
    font-family:Inter;
    display:none
}

.tableHorizontalScroll {
    overflow-x: hidden; /* default hidden */
    overflow-y: hidden;
    width: 100%;
    white-space: nowrap; /* force items to stay in one row */
}

.tableHorizontalScroll .row-header,
.tableHorizontalScroll .row-items {
    display: flex;
	flex-shrink: 0;
    min-width: 900px; 
}

.round-button{
	min-width: 252px;
}
.page-title-ticker{
	font-family: 'Fustat Semibold', Helvetica, Arial, Lucida, sans-serif;
    font-size: 50px;
    color: #FFFFFF !important;
    letter-spacing: 1px;
    line-height: 114%;
}

@media (max-width: 1300px) {
	.peer-performance-table .row-header > div:first-child,
	.peer-performance-table .row-items > div:first-child {
	  flex: 4; /* Make sector/label column wider */
	}
	.round-button{
		font-size: 14px !important;
		min-width: 180px;
		margin: 10px 0px;
	}
}
@media (max-width: 1100px) {
.peer-performance-table .row-header > div:first-child,
	.peer-performance-table .row-items > div:first-child {
	  flex: 4; /* Make sector/label column wider */
	}
	.round-button{
		font-size: 14px !important;
		min-width: 180px;
		margin: 10px 0px;
	}
}
@media (max-width: 980px) {
.peer-performance-table .row-header > div:first-child,
	.peer-performance-table .row-items > div:first-child {
	  flex: 4; /* Make sector/label column wider */
	}
	.round-button{
		font-size: 14px !important;
		min-width: 180px;
		margin: 10px 0px;
	}
}
@media (max-width: 820px) {
.peer-performance-table .row-header > div:first-child,
	.peer-performance-table .row-items > div:first-child {
	  flex: 4; /* Make sector/label column wider */
	}
	.round-button{
		font-size: 14px !important;
		min-width: 180px;
		margin: 10px 0px;
	}
}
@media (max-width: 768px) {
.peer-performance-table .row-header > div:first-child,
	.peer-performance-table .row-items > div:first-child {
	  flex: 4; /* Make sector/label column wider */
	}
	.round-button{
		font-size: 14px !important;
		min-width: 180px;
		margin: 10px 0px;
	}
	  /* Disable desktop tooltip */
	  .custom-tooltip-icon::after {
		display: none;
	  }

	  .tooltip-overlay {
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.5);
		backdrop-filter: blur(2px);
		display: none;
		z-index: 9998;
	  }

	  .tooltip-overlay.active {
		display: block;
	  }

	  .tooltip-popup {
		position: fixed;
		top: 20%;
		left: 0;
		width: 100%;
		max-height: 65vh;
		background: #fff;
		border-radius: 18px;
		padding: 20px;
		overflow-y: auto;
		box-shadow: 0 -6px 30px rgba(0,0,0,0.15);
	  }

	  .tooltip-close {
		text-align: right;
		font-weight: 600;
		cursor: pointer;
		margin-bottom: 10px;
	  }
}

@media (max-width: 480px) {
.peer-performance-table .row-header > div:first-child,
	.peer-performance-table .row-items > div:first-child {
	  flex: 4; /* Make sector/label column wider */
	}
	.round-button{
		font-size: 14px !important;
		min-width: 180px;
		margin: 10px 0px;
	}
	.row-header, .row-items{
		font-size: 12px;
	 }
}

/* ── THEME additions ───────────────────────────────────────────────────── */
/* table-overflow.js toggles .is-visible (live used jQuery fadeIn + red/blue flash) */
.tableOverflowIndicator.is-visible { display: block; animation: npf-swipe-flash 2s ease-in-out 1 forwards; }
@keyframes npf-swipe-flash { 0% { opacity: 0; } 25% { opacity: .01; } 50% { opacity: 1; color: #990000; } 75% { opacity: .01; } 100% { opacity: 1; color: #0000ff; } }

/* THEME: Divi's default link colour (#2ea3f2) for links inside editor/post content — team bios (pop-up + single
   page), single insights, and the "here" links in the disclosure toggles — as on live */
.team-description a, .single-member__text a, .news-card a,
.legal-toggle__body a, .fund-toggle__body a { color: #2ea3f2; }
