/* ==========================================================================
   SRH Funds — Fund pages (fund.php)
   Part 1: page layout (replaces the page-builder rows)
   Part 2: component styles ported from the live site's Customizer CSS — they style the
           markup of the ported shortcodes (tables, charts, managers, documents)
   ========================================================================== */

/* ── Sub-nav ──────────────────────────────────────────────────────────── */
.fund-subnav {
    position: sticky;
    top: var(--header-h);
    z-index: 900;
    width: 95%;
    margin: 0 auto;
    background: var(--black);
}
.admin-bar .fund-subnav { top: calc(var(--header-h) + 32px); }
.fund-subnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: clamp(20px, 7vw, 140px);
}
.fund-subnav a {
    display: block;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--white);
}
.fund-subnav a:hover,
.fund-subnav a.is-active { border-bottom-color: var(--white); }
.fund-subnav__toggle { display: none; }

/* anchors land below header + sub-nav */
.fund [id] { scroll-margin-top: calc(var(--header-h) + 60px); }

/* ── Headings / copy ──────────────────────────────────────────────────── */
.fund-title,
.fund-h1 {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 500;
    padding-bottom: 10px;
}
.fund-copy { font-size: 14px; line-height: 1.43; }
.fund-copy h3 { font-size: 18px; text-align: center; margin: 10px 0 10px; padding-bottom: 10px; }
.fund-copy ul { margin: 0 0 0 20px; padding: 0 0 0 14px; }
.fund-copy li { line-height: 1.4; margin-bottom: 12px; }
.fund-copy p { margin-bottom: 14px; }
.fund-copy > :last-child, .fund-copy li:last-child p { margin-bottom: 0; }

/* ── Title row ────────────────────────────────────────────────────────── */
.fund-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 89px;
}
.fund-head .fund-title { margin-bottom: 0; }
.btn--blue {
    background: var(--blue-700);
    color: var(--white);
    font-size: 18px;
    padding: 5.4px 18px;
}
.btn--blue:hover { background: var(--blue-800); }

/* ── Key-figure tiles ─────────────────────────────────────────────────── */
.fund-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3%;
    padding: 2% 0;              /* live Divi row padding */
}
.fund-tile {
    padding: 20px 20px 10px;
    color: var(--black);
}
.fund-tile--dark { color: var(--white); }
.fund-tile p { margin: 0; line-height: 33px; }   /* Divi text modules inherit a 33px line-height */
.fund-tile__ticker { font-size: 44px; margin-top: 10px !important; }
.fund-tile__asof   { font-size: 18px; margin-top: 25px !important; }
.fund-tile__label  { font-size: 22px; }
.fund-tile__value  { font-size: 18px; font-weight: 600; margin-top: 35px !important; }

/* ── Overview / Objective split rows ──────────────────────────────────── */
.fund-split,
.fund-objective {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.fund-split__media {
    min-height: 257px;
    padding: 20px 20px 70px;
    background-size: cover;
    background-position: center;
}
.fund-split__copy { background: var(--stone); padding: 20px; }

.fund-objective { margin: 2% auto 0; }
.fund-objective + .fund-section { margin-top: calc(70px + 2%); }   /* live: row padding + 70px (no margin collapse) */
.fund-objective__head,
.fund-objective__copy { background: var(--blue-400); padding: 40px; }
.fund-objective__head .fund-h1 { margin-top: 80px; }
.fund-objective__copy { line-height: 1.43; }

/* ── Data sections ────────────────────────────────────────────────────── */
.fund-section { margin-top: 70px; position: relative; line-height: 33px; }   /* Divi inherited line-height: tables/rows match live heights */
.fund-section:last-of-type { margin-bottom: 50px; }
.fund-note { font-size: 12px; font-style: italic; color: #555; margin-top: 30px; }   /* live: all 12px fund notes are italic */
.fund-note sup { font-size: 70%; }

/* Links styled like the live "fancy-text-link" (arrow flips on hover) */
a.fancy-text-link {
    position: relative;
    display: inline-block;
    padding: 6.6px 22px;                  /* live: Divi button padding, arrow sits in the right padding */
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--black);
    background: none;
    border: 0;
}
a.fancy-text-link::after {
    content: "";
    position: absolute;
    right: -15px; top: 50%;
    width: 20px; height: 20px;
    transform: translateY(-50%);
    transition: transform var(--ease);
}
a.fancy-text-link:hover { text-decoration: underline 1px; text-underline-offset: 4px; }
a.fancy-text-link:hover::after { transform: translateY(-50%) rotate(-180deg); }

/* ── Popups (Premium/Discount, Definitions): live Divi Overlays values ──
   Backdrop + page blur: style.css (dialog::backdrop, .popup-open). Close button: .popup-close. */
.srh-dialog {
    max-height: calc(100vh - 60px);
    border: 0;
    background: var(--white);
    overflow: auto;
}
body.modal-open { overflow: hidden; }
/* Definitions: 57% panel (60% of the 95% overlay), 80% inner row, 12px copy */
#definitions { width: 57%; max-width: calc(100% - 32px); padding: 57.5px 0; }
#definitions .srh-dialog__body { width: 80%; margin: 0 auto; padding: 17.24px 0; }
#definitions .srh-dialog__body p { font-size: 12px; line-height: 12px; margin: 0; padding-bottom: 12px; }
#definitions .srh-dialog__body p:last-child { padding-bottom: 0; }
#definitions .srh-dialog__body p:first-child { padding-bottom: 18.96px; }
#definitions .srh-dialog__body p:first-child::after { content: ""; display: block; height: 23px; margin-top: 18.96px; border-top: .8px solid #1c5797; }
/* Premium / Discount: 90.25% wide, max 700px tall, 40px padding, scrolls */
#premium-dialog { width: 90.25%; max-width: none; max-height: 700px; padding: 40px; overflow-y: scroll; }
#premium-dialog #premiumModal { padding: 25.4px 0; }
#premium-dialog h3 { font-size: 32px; line-height: 35.2px; padding-bottom: 10px; margin: 0; }
@media (max-width: 980px) {
    #definitions { width: 80%; }
}
@media (max-width: 767px) {
    /* live phone overlay: 95% of (viewport − 40px) */
    #definitions, #premium-dialog { width: calc((100% - 40px) * .95); max-width: none; }
    #definitions { padding: 40px 0; }
}
.site-footer__disclosure a[data-dialog] { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── Single fund document ─────────────────────────────────────────────── */

/* ── Layout responsive ────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .fund-split, .fund-objective { grid-template-columns: 1fr; }
    .fund-objective__head { padding-bottom: 10px; }
    .fund-objective__head .fund-h1 { margin-top: 0; }
    .fund-objective__copy { padding-top: 10px; }
    .tableHorizontalScroll { overflow-x: auto; }
    .tableOverflowIndicator { display: block; }
}
@media (max-width: 767px) {
    .fund-head { flex-direction: column; }
    .fund-tile__ticker { font-size: 36px; }
    .fund-tile__label { font-size: 18px; }
    .fund-tile__value { margin-top: 20px !important; }
}

/* ==========================================================================
   Part 2 — ported from live Customizer CSS (Appearance → Customize → Additional CSS)
   ========================================================================== */

/* Table container */
.tableWrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0px;
}

.tableWrapper thead tr th {
    background-color: #005695;
    color: #FFFFFF !important;
}

.tableWrapper thead th {
    padding: 5px;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
}

.tableWrapper tbody td {
    padding: 5px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.tableWrapper tbody td:empty {
    content: "000";
    color: #666;
}

.tableWrapper tbody td {
    font-size: 14px;
    color: #333;
}

.tableWrapper tbody tr:nth-child(odd) {
    background-color: #F1F1EF;
}

.tableWrapper tbody tr:nth-child(even) {
    background-color: #FFFFFF;
}
#feesAndExpenses thead th {
    text-align: left;
}
#feesAndExpenses tbody td {
    text-align: left;
}

#feesAndExpenses tbody td:nth-child(even) {
    border-right: 2px solid #ddd;
}
#fundDetailsTableWrapper thead th {
    text-align: left;
}

#fundDetailsTableWrapper tbody tr td:first-child {
    text-align: left;
    padding-left: 20px;
}

#fundDetailsTableWrapper tbody tr td:last-child {
    text-align: right;
    padding-right: 20px;
}
.asofdate {
    font-style: italic;
    font-size: 14px;
}

.dist-filter {
  	position: relative;
  	display: inline-block;
	float: right;
}

#dist-year-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 80px;
  padding: 8px 28px 8px 8px; /* extra right space for arrow */
  font-size: 14px;
  color: #fff;
  background-color: #4984B0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* custom arrow */
.dist-filter::after {
  content: "";
  position: absolute;
  right: 10px;                  /* control arrow position */
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;   /* arrow color */
  pointer-events: none;
}
.news-filter {
  	position: relative;
  	display: inline-block;
}
#news-year-filter {
 -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 80px;
  padding: 8px 28px 8px 8px; /* extra right space for arrow */
  font-size: 14px;
  color: #000000;
  background-color: #92b3cc;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
/* custom arrow */
.news-filter::after {
  content: "";
  position: absolute;
  right: 10px;                  /* control arrow position */
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000000;   /* arrow color */
  pointer-events: none;
}
#distributionsTableWrapper thead tr th{
    background-color: #4984B0;
}
#performanceTableWrapper thead tr th {
    background-color: #FFFFFF !important;
    color: #000000 !important;
}

#performanceTableWrapper tr td:first-child {
    text-align: left;
	padding-left: 20px;
}

#performanceTableWrapper thead .performances th:not(:first-child) {
    background-color: #92B3CC !important;
}

.performances th:first-child {
    background-color: #fff;
}

.performances th:last-child {
    border-left: 2px solid #dfdfdf;
}
.sub-disclosure {
    font-size: 12px;
    line-height: 2em;
    color: #555;
    font-weight: normal;
    font-style: italic;
    padding: 0 0 0 0;
}

.tab-container {
    display: flex;
}

.tab {
    background: #FFFFFF;
    color: #92B3CC;
    text-decoration: none;
    margin-bottom: -3px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    padding: 12px 20px;
    font-size: 12px;
    text-transform: uppercase;
    border: 0;
    border-bottom: 1px solid #92B3CC;
    font-weight: 800;
}

.tab.active {
    background-color: #92B3CC;
    color: #FFFFFF;
}

.tableOverflowIndicator{
    margin:10px 0 30px 0;
    font-family:Inter}

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

.hidden {
    display: none;
}

.disclosure {
    font-size: 12px;
    color: #555;
    font-style: italic;
    font-weight: 400;
    margin-top: 30px;
    line-height: 1.4rem;
}
#holdingsTableWrapper thead tr th{
    background-color: #DBE1E7;
    color: #000000 !important;
}
#holdingsTableWrapper tr td:first-child {
    text-align: left;
	padding-left: 20px;
}
.holdings-btn {
    margin: 5px;
}

.btn-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    float: right;
    margin-top: -20px;
    margin-right: 20px;
}

/* Holdings / Sector "(As of …)": live pins it to the right just under the section heading
   (top: -40px of the table module, which starts 40px below the 43px heading). Here the
   positioning box is the whole section, so top = heading height. */
.holdings-container {
    display: inline-block;
    position: absolute;
    right: 2px;
    top: 43px;
}

#sectorTableWrapper {
    display: flex;
}

#sectorTableWrapper table tr {
    background-color: transparent;
}

#sectorTableWrapper table tr td {
    border-bottom: 0;
    line-height: 15px;
}

.left-sector {
    width: 50%;
    text-align: center;
    padding: 20px;
    background-color: #4984B0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.right-sector {
    width: 50%;
    padding: 20px;
    background-color: #F1F1EF;
    flex: 1;
}

.legend {
    width: 15px;
    height: 15px;
}
.documents-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
}

.document-item {
    background-color: #DBE1E7;
    padding: 10px 20px;
    width: 49%;
    height: 70px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    line-height: 1.8;
    cursor: pointer;
    text-decoration: none;
    color: #000000;
}

#fund-news .document-item {
    background-color: #92B3CC;
}

.document-name {
    width: 320px;
}

.download-link {
    text-decoration: none;
    color: #000000;
    cursor: pointer;
}

.download-link:hover {
    text-decoration: underline;
}

a.fancy-text-link {
    cursor: pointer;
}

.tableOverflowIndicator {
    color: #353536;
    width: 100%;
    text-align: center;
    display: none;
    font-size: 14px;
}

.premium-cover{
	margin-top: 80px;
}

.dropdown1-container {
    position: relative;
    display: inline-block;
    width: 175px; /* Slightly bigger */
}

.dropdown1 {
    width: 198px;
    padding: 9px 12px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    background-color: #4984B0;
    border: 2px solid #3A6F8F;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

/* Dropdown arrow */
.dropdown1-container::after {
    content: "▼";
    position: absolute;
    right: -12px;
    top: 54%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: white;
}

/* Hover effect */
.dropdown1:hover {
    background-color: #3A6F8F;
    color: white;
}

/* Focus effect */
.dropdown1:focus {
    border-color: #2E5B7B;
    background-color: #2E5B7B;
    color: white;
}

/* Dropdown options */
.dropdown1 option {
    background-color: white;
    color: black;
    font-size: 16px;
    padding: 10px;
}

.manager-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.manager-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #FFFFFF;
    width: 49%;
}

.manager-image {
    height: 135px;
}

.manager-image img {
    width: 165px;
    height: 135px;
}

.manager-info {
    background-color: #005695;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    font-size: 22px;
    height: 135px;
    width: 100%;
    position: relative;
}

.full-bio {
    position: absolute;
    bottom: 0px;
    right: 25px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.full-bio:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.full-bio::after {
    content: "" !important;
    display: inline-block !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    width: 10px !important;
    height: 10px !important;
    position: absolute !important;
    right: -15px !important;
    top: 16px !important;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.full-bio:hover::after {
    transform: translateY(-50%) rotate(-180deg);
    /* Rotate icon 180 degrees */
}

.manager-position h3 {
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: -12px;
}

.manager-position p {
    font-size: 12px;
}

.manager-stats {
    display: flex;
    gap: 25px;
}

.manager-stats div {
    text-align: center;
}

.manager-stats h4 {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: -12px;
}

.manager-stats p {
    font-size: 12px;
}

.modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(15px);
}

.modal-content {
	background-color: #fefefe;
	width: 80%;
	margin: 10% auto;
	padding: 20px;
	height: 60%;
	overflow-y: scroll;
}
.bio-close {
	width: auto;
	height: auto;
	display: block;
	position: absolute;
	right: 10px;
	top: 10px;
	overflow: hidden;
	border: none;
	outline: none;
	font-size: 100px;
	line-height: 60px;
	min-height: 15px;
	min-width: 15px;
	color: #fff;
	background-color: transparent;
	font-family: inherit;
	font-weight: 300;
}

.bio-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
}

.right-bio {
	width: 70%;
	height: 50vh;
}

.left-bio {
	height: 50vh;
}

.bio-desc {
	font-size: 18px;
}

.bio-img {
	width: 260px;
}

.bio-name {
	font-size: 20px;
	color: #005695;
	font-weight: 800;
	margin-top: 20px
}

.bio-position,
.bio-workingFor {
	font-size: 14px;
}

/* Wrapper positioning */
.tableWrapper {
	position: relative;
}

/* Loader covers only the table wrapper */
.table-loader {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	display: none; /* hidden by default */
}

/* Semi-transparent overlay */
.loader-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(2px);
}

/* Spinner + text */
.loader-content {
	text-align: center;
	color: #333;
}

.main-spinner {
	width: 50px;
	height: 50px;
	border: 5px solid rgba(0, 0, 0, 0.2);
	border-top: 5px solid #4984B0;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px;
}

.loader-text {
	font-size: 16px;
	font-weight: 500;
	margin: 0;
	color: #000;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Blur table when loading */
.tableWrapper.loading #tableWrapper, .tableWrapper.loading #newstableWrapper{
	filter: blur(2px);
	opacity: 0.4;
}

/* Small devices (phones, tablets) */
@media only screen and (max-width: 480px) {
    .manager-card {
        width: 100%;
    }

    .manager-info {
        padding: 10px;
		flex-direction: column;
		align-items: flex-start;
    }

    .manager-position h3 {
        margin-bottom: 1px;
        font-size: 18px;
    }

    .manager-position p {
        font-size: 12px;
        line-height: 15px;
    }

    #sectorTableWrapper {
        flex-direction: column;
    }

    .left-sector,
    .right-sector {
        width: 100%;
    }

    .document-item {
        width: 100%;
    }

    .btn-wrapper {
        margin-right: 8px;
    }

    a.fancy-text-link::after {
        width: 12px !important;
        height: 12px !important;
        right: -5px !important;
    }
	a.fancy-text-link {
        font-size: 16px !important;
    }

	.manager-stats div {
		text-align: left;
	}

    .manager-stats h4 {
        margin-bottom: -5px;
    }

    .manager-stats p {
        line-height: 0.9rem;
    }

    .modal-content {
        margin: 20% auto;
        width: 90%;
        padding: 0px;
        height: 85%;
    }

    .bio-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .right-bio {
        width: 90%;
    }

    .left-bio {
        height: auto;
    }

    .bio-desc {
        line-height: 1.5rem;
        font-size: 14px;
    }
}

/* Medium devices (tablets, laptops) */
@media only screen and (min-width: 481px) and (max-width: 767px) {
    .manager-card {
        width: 100%;
    }

    .manager-info {
        padding: 10px;
		flex-direction: column;
		align-items: flex-start;
    }

    .manager-position h3 {
        margin-bottom: 1px;
        font-size: 18px;
    }

    .manager-position p {
        font-size: 12px;
        line-height: 15px;
    }

    #sectorTableWrapper {
        flex-direction: column;
    }

    .left-sector,
    .right-sector {
        width: 100%;
    }

    .document-item {
        width: 100%;
    }

    .btn-wrapper {
        margin-right: 8px;
    }

   a.fancy-text-link::after {
        width: 12px !important;
        height: 12px !important;
        right: -5px !important;
    }
	a.fancy-text-link {
        font-size: 16px !important;
    }

	.manager-stats div{
		text-align: left;
	}

    .manager-stats h4 {
        margin-bottom: -5px;
    }

    .manager-stats p {
        line-height: 0.9rem;
    }

    .modal-content {
        margin: 20% auto;
        width: 90%;
        padding: 0px;
        height: 85%;
    }

    .bio-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .right-bio {
        width: 90%;
    }

    .left-bio {
        height: auto;
    }

    .bio-desc {
        line-height: 1.5rem;
        font-size: 14px;
    }

    .document-name {
        width: 250px;
    }
}

/* Large devices (laptops, desktops) */
@media only screen and (min-width: 768px) {

    .modal-content {
        width: 90%;
        height: 70%;
    }

    .right-bio {
        margin-left: 20px;
    }

	.manager-stats {
        height: 100px;
    }

    .manager-stats h4 {
        margin-bottom: -5px;
    }

    .manager-stats p {
        line-height: 0.9rem;
    }

    .manager-info {
        padding: 10px;
    }

    .manager-position h3 {
        margin-bottom: 5px;
        font-size: 18px;
    }

    .manager-position p {
        font-size: 12px;
        line-height: 15px;
    }
}

/* Extra large devices (large desktops) */
@media only screen and (min-width: 1200px) {
    .modal-content {
        height: 75%;
        margin: 8% auto;
    }
}

/* ── Fixes after local review ─────────────────────────────────────────── */
/* live sets every h1 to 30px (shortcode headings like "Number of Days At") */
.fund h1, .srh-dialog h1 { font-size: 30px; line-height: 1.1; font-weight: 500; margin-bottom: 10px; }


/* Section spacing as on live (Divi heading modules: 10px below, 40px for holdings/sector/documents/news) */
.fund-section__heading { margin-bottom: 10px; }
.fund-section:has(#holdingsTableWrapper, #sectorTableWrapper, #fund-docs, #fund-news) .fund-section__heading { margin-bottom: 40px; }
.fund-section .tableWrapper > table:first-child,
.fund-section #performTable { margin-top: 0; }

/* Button rows (premium chart / show all / download) stay in the flow like live, overlapping the table's bottom margin */
.fund-section .btn-wrapper { float: right; display: flex; margin: -20px 20px 0 0; }
/* Divi's base table rules the live tables inherit */
.fund-section .tableWrapper tbody td { border-top: 1px solid #eee; }
.fund-section #distributionsTableWrapper table { margin: 0 0 15px; }
.fund-note { line-height: 22.4px; }
.fund-note p { margin: 0; padding-bottom: 12px; }
.fund-note p:last-child { padding-bottom: 0; }
/* Live tables: margin 0 0 15px (Divi base), no top margin */
.fund-section .tableWrapper table { margin: 0 0 15px; }
.fund-section #fundDetailsTableWrapper .bottom-table { margin-top: 0; }
.fund-tile { min-height: 140px; }

.fund-section { display: flow-root; } /* Divi rows clearfix their floated button rows */
.fund-section .tableWrapper { overflow-x: auto; }

.fund-split__copy h3 { margin-bottom: 9px; }
.fund-split__copy ul { padding-bottom: 14px; margin-bottom: 0; }
.fund-split__copy li p { margin: 0; }

.document-item .document-name { margin: 0; }
.fund-section:has(#holdingsTableWrapper) .fund-note { margin-top: 43px; }
.manager-info h3, .manager-stats h4 { padding-bottom: 10px; }
@media (min-width: 981px) { .fund--srhr .fund-objective .fund-h1 { margin-top: 50px; } }
/* Divi/normalize sup: no line-box growth */
.fund sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; top: -0.5em; }
.fund-section table + .fund-note, .fund-section .tableWrapper + .fund-note { margin-top: 38px; }
.fund-note + table { margin-top: 37.44px !important; }
.fund-note p.sub-disclosure { padding-bottom: 0; }
.fund--stew .fund-section:has(#fund-docs, #fund-news) .fund-section__heading { margin-bottom: 10px; }
table.tableWrapper { border-collapse: collapse; width: 100%; }
.fund-section #fundDetailsTableWrapper + .fund-note { margin-top: 22px; }

/* ── Tablet parity with live (≤980px) ─────────────────────────────────── */
@media (max-width: 980px) {
    .fund-head { flex-direction: column; gap: 30px; padding-top: 80px; }
    .fund-head .btn { align-self: flex-end; }
    .fund-tiles { grid-template-columns: 1fr 1fr; gap: 30px 5.5%; padding: 30px 0 0; }
    .fund-split__media { min-height: 183px; padding: 20px; }
    .fund-objective { margin-top: 30px; }
    .fund-objective__head { padding: 40px 40px 20px; }
    .fund-objective__copy { padding: 20px 40px 20px; }
    .fund-objective + .fund-section { margin-top: 100px; }
    .fund-split { margin-top: 33px; }
}

/* Overflow indicator — shown by assets/js/table-overflow.js while a table scrolls sideways */
.tableOverflowIndicator.is-visible { display: block !important; line-height: 33px; margin: 10px 0 30px; animation: srh-swipe-hint 2s ease forwards; }
@keyframes srh-swipe-hint {
    0% { opacity: 1; color: #353536; } 25% { opacity: .01; color: #353536; } 26% { color: #990000; }
    50% { opacity: 1; color: #990000; } 75% { opacity: .01; color: #990000; } 76% { color: #0000ff; }
    100% { opacity: 1; color: #0000ff; }
}
@media (max-width: 980px) { .fund-section:has(#holdingsTableWrapper) .fund-note { margin-top: 29px; } }

/* ── Phone parity with live (≤767px) ──────────────────────────────────── */
@media (max-width: 767px) {
    .fund-head { align-items: stretch; }
    .fund-tiles { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
    .fund-split { margin-top: 0; }
    .fund-objective__head .fund-h1 { font-size: 25px; line-height: 27.5px; }
}
@media (max-width: 980px) { .fund-tile { min-height: 131px; } .fund-tile:first-child { min-height: 136px; } }
@media (max-width: 767px) {
    .fund-section a.fancy-text-link { font-size: 16px; line-height: 27.2px; padding: 4.8px 16px; }
    .fund-section a.fancy-text-link::after { right: -5px; width: 12px; height: 12px; }
    .fund-section .btn-wrapper { margin-right: 8px; }
}
@media (max-width: 980px) { .fund--srhr .fund-objective__head { padding-top: 18px; padding-bottom: 42px; } }
@media (max-width: 980px) {
    .fund--stew .fund-objective__head, .fund--stew .fund-objective__copy { padding: 40px; }
    .fund-section #fundDetailsTableWrapper + .fund-note { margin-top: 15px; }
    .fund-note + table { margin-top: 30px !important; }
    .fund-section table + .fund-note { margin-top: 30px; }
}
a.fancy-text-link::after { background: var(--img-arrow-black) center / contain no-repeat; -webkit-mask: none; mask: none; }
.tab-container .tab, .tab-container button { font-family: var(--font-body); }
.full-bio::after { background: var(--img-arrow-white) center / contain no-repeat !important; -webkit-mask: none !important; mask: none !important; }

/* Sub-nav bar: live = full-width black bar, 40px tall, plain white links (no active underline) */
@media (min-width: 981px) {
    .fund-subnav { width: 100%; padding: 5px 0; }
    .fund-subnav__list { gap: 122px; height: 30px; align-items: flex-start; }
    .fund-subnav a { padding: 8px 0 0; font-size: 16px; line-height: 14px; border-bottom: 0; transition: opacity .3s ease; }
    .fund-subnav a:hover { opacity: .7; }
}
.fund-subnav a, .fund-subnav a.is-active { border-bottom: 0; }

/* Manager bio pop-up (fund pages) — live values */
#bioModal .bio-name { font-weight: 500; margin-top: 29px; padding-bottom: 10px; }
#bioModal .bio-position, #bioModal .bio-workingFor { padding-bottom: 10px; }
#bioModal .bio-desc p { line-height: 33px; }

/* BOLDEN-744: wide tables scroll sideways with a finger on phones (momentum scrolling, no page bounce) */
.tableHorizontalScroll, .fund-section .tableWrapper {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
}
@media (max-width: 980px) { .tableHorizontalScroll { overflow-x: auto !important; } }

/* ── Tablet/phone section menu, like live's Divi mobile menu: a full-width black bar with a
      centred white "≡ SUBMENU" toggle that drops the section links down in a black panel ── */
@media (max-width: 980px) {
    .fund-subnav { width: 100%; height: 48px; margin-top: -8px; top: calc(var(--header-h) - 8px); }   /* live: bar at 150px, overlapping the header's 8px bottom gap */
    .admin-bar .fund-subnav { top: calc(var(--header-h) - 8px + 32px); }
    .fund-subnav__toggle {
        display: flex; align-items: center; height: 32px; margin: 0 auto; padding: 11px 0 5px;
        box-sizing: content-box; border: 0; background: none; cursor: pointer;
        color: var(--white); font: 400 20px/1 var(--font-body); text-transform: uppercase;
    }
    .fund-subnav__icon { position: relative; flex: none; width: 32px; height: 32px; }
    .fund-subnav__icon span {
        position: absolute; left: 6px; width: 20px; height: 2px; border-radius: 1px;
        background: currentColor; transition: transform var(--ease), opacity var(--ease);
    }
    .fund-subnav__icon span:nth-child(1) { top: 9px; }
    .fund-subnav__icon span:nth-child(2) { top: 15px; }
    .fund-subnav__icon span:nth-child(3) { top: 21px; }
    .fund-subnav.is-open .fund-subnav__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .fund-subnav.is-open .fund-subnav__icon span:nth-child(2) { opacity: 0; }
    .fund-subnav.is-open .fund-subnav__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .fund-subnav__label { position: relative; left: 13.3px; }   /* live: ::after { left: 10% } */

    .fund-subnav__list {
        display: none;
        position: absolute; left: 0; right: 0; top: 100%;
        height: auto; padding: 5%; gap: 0;
        background: var(--black);
        border-top: 2.4px solid var(--white);
        box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    }
    .fund-subnav.is-open .fund-subnav__list { display: block; }
    .fund-subnav__list a {
        display: block; padding: 10px 5%;
        font-size: 16px; line-height: 26px;
        border-bottom: .8px solid rgba(0, 0, 0, .03);
        opacity: 1;
    }
    .fund [id] { scroll-margin-top: calc(var(--header-h) + 48px); }
}
@media (max-width: 782px) { .admin-bar .fund-subnav { top: calc(var(--header-h) - 8px + 46px); } }
@media (max-width: 600px) { .admin-bar .fund-subnav { top: calc(var(--header-h) - 8px); } }

/* Distributions: "Section 19a" notice links in live's link blue (they inherited the grey table text) */
#distributionsTableWrapper a.notice-anchor { color: var(--blue-700, #1c5797); text-decoration: none; }
#distributionsTableWrapper a.notice-anchor:hover,
#distributionsTableWrapper a.notice-anchor:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
