section {
    background: #FFF;
    padding: 20px 150px;
}
.etf-info h2,
.etf h4 {
    padding: 7px 7px;
    background-color: transparent;
    color: white;
    color: var(--main-color, #324158);
    text-align: left;
    font-family: "Playfair Display";
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    padding-bottom: 25px!important;
    line-height: normal;
}
thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: none;
  border-style: none;
  border-width: 0;
}


.jumbotron.xs {
    display: none;
}

  .navbar-default {
    display:none;
}  

@media(max-width:991px){
      .navbar-default {
    display:block;
}  
}

.top-title {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
    justify-content: space-between;
}

.top-title h3 {
    color: var(--main-color, #324158);
    font-family: "Playfair Display";
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
span#top-aum-date {
    color: var(--neutral-color, #222831);
    text-align: center;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.top-title h4 {
    color: #3C3C3C!important;
    font-family: "Playfair Display";
    font-size: 24px;
    font-style: normal;
    background-color: transparent!important;
    font-weight: 400;
    line-height: normal;
    padding: 0!important;
}

.fund-summary-label {
    color: var(--neutral-color, #222831);
    text-align: left;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    gap: 0px;
    line-height: normal;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.fund-summary-value {
    color: #222831;
    /* text-align: center; */
    font-family: Inter;
    font-size: 26px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 50px;
}

section#fund-details {
    background: #E8E6E1;
    padding: 40px 150px;
}

.container-fluid {
    padding: 0!important;
}

section.etf {
    padding: 0;
}

table#details, table#management
    {
    border: 1px solid #C9A66B!important;
    /* border-top: 1px solid #c9a66b; */
}
td#management-title {
    color: #222831;
    text-align: left;
    font-family: Inter;
    font-size: 26px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}



tbody {
    /* margin: 20px!important; */
}
table#details .inceptiondate {
    color: #222831;
    text-align: center;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
h2.table-title {
    color: var(--main-color, #324158)!important;
    text-align: left;
    font-family: "Playfair Display";
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    margin-bottom: 20px;
    background-color: transparent!important;
}

table#details tr  {
    margin: 0px 20px 0 !important;
    border-bottom: 1px solid #C3C2C2;
    color: #222831;
    /* text-align: center; */
    background:#E8E6E1;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: flex;
}

#management tbody {
    display:flex;
    margin:0 30px 20px ;
    flex-flow:column;
}
tr.mgmt-title {
    color: #222831;
    text-align: left;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-top: 20px;
    padding-bottom: 16px;
    display: flex;
}

tr.mgmt-content {
    display: flex;
    color: #222831;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-bottom: 21px;
}

 
table#details tr:first-child {
  margin-top:15px!important;
}
table#management tr:first-child {
  margin-top:15px!important;
  padding-bottom:20px;
    
    border-bottom: 1px solid #C3C2C2;

}

table#management td{
     
}

table#details tr:nth-of-type(5){
    border-bottom:0px;
    margin-bottom:15px!important;
}
div#fund-details-summary {
    flex-wrap: wrap!important;
    display: flex;
    flex-flow: row;
    place-content: space-between;
}

 .fund-details-item:nth-child(2) {
    place-items: center;
}
.fund-details-item:first-child {
    place-items: flex-start;
}
.fund-details-item:last-child {
    place-items: flex-end;
}

 

div#fund-details-summary div {
    width: fit-content;
    max-width: 460px;
}

div#sub-navbar {
    margin: 0;
    background-color: #324158!important;
}

ul.nav.nav-pills {
    background-color: #324158;
    padding: 20px;
}
.nav-pills li {
    background-color:transparent!important;
}
.nav-pills li a {
    color: #FFF;
    background: #324158;
    /* border: 0px solid red!important; */
    font-family: 'Inter';
    padding: 10px;
    font-size: 18px;
}

.nav-pills>li+li {
    margin: 0px;
    margin-right: 30px;
}

.etf-info ul li {margin-bottom:0px!important;}

#details td {
    padding: 14px 20px!important;
    border-top:0px solid red!important;
}

#management td {
     
    border-top:0px solid red!important;
}

td:last-child {
   
    border-bottom:0px solid red!important;
}

td#ticker, td#cusip, td#exchange ,td#distributionfrequency {
    color: #222831;
    text-align: center;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
     
}

table  caption {
    display: none;
}

#fund-details table tr:nth-child(odd) td,
#annualexpense table tr:nth-child(odd) td,

 

  #fund-details table tr:hover th,
#fund-details table tr:hover td,
#annualexpense table tr:hover th,
#annualexpense table tr:hover td  {
    background-color: #E8E6E1!important;
}  
p.text-right {
    color: #324158;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}
#prices table tr:nth-child(odd) td{
     background-color: #FFF!important;
     border-bottom: 1px solid #C3C2C2!important;
}
#prices td, #prices tr  {
    border-top:none;
    padding:14px 20px!important;
    border-bottom: 1px solid #C3C2C2!important;
}
#prices tr td:first-child, #prices tr:last-child  {
     /* border-bottom:0px solid #C3C2C2!important; */
}
#prices table {
     border:solid 1px #C9A66B!important;
     
}
#prices td:first-child{
     color: #222831;
text-align: left;
font-family: Inter;
font-size: 18px;
font-style: normal;
font-weight: 700;
line-height: normal;
}

#prices td:last-child{
color: #222831;
text-align: center;
font-family: Inter;
font-size: 18px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

#prices tr:last-child {
    color:#FFF!important;
    background-color: #324158;
}

td.total-assets {
    color: #FFF!important;
    align-content: center;
}

td#netassets {
    color: #FFF!important;
    font-size: 25px!important;
}

.btn-class.text-center {
    display: flex;
    justify-content: center;
    margin-top: 45px!important;
    gap: 30px;
}

#nav-performance-view th,
#market-performance-view th,
#all-holdings th {
     padding-bottom: 45px!important;
    border: 0px!important;
}
#nav-performance-view .as-of-nav,
#market-performance-view .as-of-nav,
#all-holdings .as-of-nav {
     text-align: left!important;
     /* display: none; */
     padding-top: 50px;
     border: 0px!important;
}
.navbar .nav>li>a {
    color: #555;
    justify-self: center;
    padding-top: 20px;
    padding-bottom: 20px;
}
#nav-performance-view td:first-child,
#market-performance-view td:first-child,
#all-holdings td:first-child {
     text-align: left!important;
     color: #222831;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
     border: 0px!important;
}
table#nav-performance-view tbody tr td,
table#market-performance-view tbody tr td,
table#all-holdings tbody tr td {
    border: 0px!important;
    /* display: none; */
    padding-bottom: 45px!important;
    /* text-align: left!important; */
}
td#pill-table-nav span {
    border-radius: 38px;
    padding: 10px 60px;
    color: #324158;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border: 1px solid #C9A66B;
}
#nav-performance-view tbody,
#market-performance-view tbody,
#all-holdings tbody {
    /* display: none; */
}

th.nav-right-head {
    width: 46%;
}

.performance-table {
    border-top: none;
    border-left: none;
    border-right: none;
}

#market-performance-view {
    border-bottom:none;
}

table#nav-performance-view,
table#market-performance-view {
    border-radius: 0!important;
}

table {
    box-shadow: none!important;
    border-radius: 30px!important;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

p#performDisclose2 {
    
    padding-top: 60px;
}

p.text-center.btn-line {
    border-top: 1px solid #C3C2C2;
    border-bottom: 1px solid #C3C2C2;
    padding-top: 35px;
    padding-bottom: 31px;
}

/* ========== EXPENSES GRID ========== */
#expenses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid   #C3C2C2;
}
#expenses-grid .expense-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    place-content: space-between;
    /* gap: 0 60px; */
}

#expenses-grid .expense-row:last-child {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    place-content: start;
    gap: 0 90px;
}
#expenses-grid .expense-item {
    flex: 0 0 auto;
    min-width: 200px;
    max-width: 400px;
    margin-bottom: 10px;
}
#expenses-grid .expense-label {
    color: var(--neutral-color, #222831);
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
#expenses-grid .expense-label .footnote-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #C9A66B;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
#expenses-grid .expense-value {
    color: #222831;
    font-family: Inter;
    font-size: 26px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 50px;
}

p#expenseLimitation {
    margin-top: 70px;
}

/* ========== FUND MANAGER ========== */
#fund-manager .fund-manager-card {
    display: flex;
    gap: 0;
    /* border: 1px solid #E0E0E0; */
    border-radius: 8px;
    overflow: hidden;
    background: #FFF;
}
#fund-manager .fm-photo {
    flex-shrink: 0;
    height: auto;
    width: 266px;
}
#fund-manager .fm-photo img {
    width: 100%;
    height: -webkit-fill-available;
    object-fit: cover;
    display: block;
    border-radius: 30px;
}
#fund-manager .fm-content {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
}
#fund-manager .fm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0;
}
#fund-manager .fm-name {
    margin: 0;
    color: var(--main-color, #324158);
    text-align: left;
    font-family: "Playfair Display";
    font-size: 30px;
    font-style: normal;
    padding: 0;
    font-weight: 700;
    line-height: normal;
    padding-bottom:7px!important;
}
#fund-manager .fm-role {
    margin: 0;
    color: var(--accent-color, #C9A66B);
    text-align: left;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    padding: 0;
    font-weight: 400;
    line-height: normal;
}
#fund-manager .fm-icons {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
#fund-manager .fm-icons li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--main-color, #324158);
    color: var(--main-color, #324158);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}
#fund-manager .fm-icons li a:hover {
    background: var(--main-color, #324158);
    color: #FFF;
}
#fund-manager .fm-bio {
    border-top: 1px solid #C9A66B;
    margin-top: 39px;
    padding-top: 20px;
}
#fund-manager .fm-bio p {
    margin: 0;
    color: #222831;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 133.333% */
}

@media (max-width: 767px) {
    #fund-manager .fund-manager-card {
        flex-direction: column;
    }
    #fund-manager .fm-photo {
        width: 100%;
        /* max-height: 280px; */
    }
    #fund-manager .fm-content {
        padding: 20px 24px;
    }
    #fund-manager .fm-header {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========== DOCUMENTS GRID ========== */
#docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}
#docs-grid .doc-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
#docs-grid .doc-icon {
    flex-shrink: 0;
    width: 52px;
    height: auto;
}
#docs-grid .doc-info {
    display: flex;
    flex-direction: column;
}
#docs-grid .doc-title {
    margin-bottom: 6px;
    color: var(--main-color, #324158);
    font-family: "Playfair Display";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
#docs-grid .doc-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6C5E46;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
#docs-grid .doc-link:hover {
    color: #b08e55;
    text-decoration: underline;
}
#docs-grid .doc-link .arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}
#docs-grid .doc-link:hover .arrow {
    transform: translateX(3px);
}

@media (max-width: 991px) {
    #docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}
@media (max-width: 575px) {
    #docs-grid {
        grid-template-columns: 1fr;
        gap: 24px 0;
    }
}

tr.holding-top th {
    color: #324158;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

table#all-holdings {
    border: none;
}

tbody#holdings-tbody td {
    background-color: #FFF!important;
}

tbody#holdings-tbody {}

tr.holding-top th:first-child {width: 15%;}

tr.holding-top th:nth-child(3) {width: 23%;}

section#beforeInvestSection {
    color: #222831;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 133.333% */
    padding-top: 100px;
}
.footer.wcap {
    background: #324158;
    height: auto;
    position: relative;
    width: 82%;
    padding: 20px;
    justify-self: center;
    /* border-top: 1px solid #164d8a; */
    color: #DDDDDD;
}

.footer.wcap p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5em;
    padding-top: 6px;
    padding-bottom: 10px;
    color: #FFF!important;
    max-width: 100%!important;
}

/* ================================================
   RESPONSIVE — TABLET (max-width: 991px)
   ================================================ */
@media (max-width: 991px) {
    .no-more-tables td:before {
		display:none;
        content: attr(data-title);
    }
.row.padextra {
    padding: 0 14px;
}
    /* Global section padding */
    section {
        padding: 20px 40px;
    }
    section#fund-details {
        padding: 30px 40px;
    }

    /* Top title stack */
    .top-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .top-title h3 {
        font-size: 36px;
    }
    .top-title h4 {
        font-size: 20px;
    }

    /* Fund details summary */
    div#fund-details-summary {
        gap: 20px;
    }
    div#fund-details-summary div {
        max-width: 100%;
    }
    .fund-summary-value {
        font-size: 22px;
        margin-bottom: 30px;
    }

    /* Details & Management tables side by side still on tablet */
    table#details tr,
    tr.mgmt-title,
    tr.mgmt-content {
        font-size: 16px;
    }

    /* Sub-nav pills */
    ul.nav.nav-pills {
        padding: 12px;
        flex-wrap: wrap;
        display: flex;
        gap: 6px;
    }
    .nav-pills li a {
        font-size: 15px;
        padding: 8px;
    }
    .nav-pills>li+li {
        margin-right: 10px;
    }

    /* Performance tables */
    td#pill-table-nav span {
        padding: 8px 30px;
        font-size: 14px;
    }
    th.nav-right-head {
        width: 30%;
    }

    /* Expenses grid */
    #expenses-grid .expense-row {
        gap: 0 30px;
    }
    #expenses-grid .expense-value {
        font-size: 22px;
        margin-bottom: 30px;
    }

    /* Holdings table scroll */
    #holdings .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer */
    .footer.wcap {
        width: 92%;
    }
}
a#holdings-link {
    display: none;
}

/* ================================================
   RESPONSIVE — MOBILE (max-width: 767px)
   ================================================ */
 
  
@media (max-width: 767px) {
  .table-responsive {
        
        border: none!important;
    }
    /* Global section padding */
    section {
        padding: 16px 20px;
    }
    section#fund-details {
        padding: 24px 20px;
    }

    /* Top title */
    .top-title {
        margin-bottom: 20px;
    }
    .top-title h3 {
        font-size: 30px;
    }
    .top-title h4 {
        font-size: 18px;
    }

    /* Fund details summary — stack vertically */
    div#fund-details-summary {
        flex-direction: column;
        gap: 0;
    }
    .fund-details-item:nth-child(2),
    .fund-details-item:first-child,
    .fund-details-item:last-child {
        place-items: flex-start;
    }
    .fund-summary-label {
        font-size: 16px;
    }
    .fund-summary-value {
        font-size: 20px;
        margin-bottom: 24px;
    }

    /* Details & Management tables — full width stack */
    .row .col-sm-6 {
        width: 100%;
        float: none;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 30px;
    }
    h2.table-title {
        font-size: 24px;
    }
    table#details tr {
        font-size: 15px;
    }
    #details td {
        padding: 10px 14px!important;
    }
    #management tbody {
        margin: 0 14px 14px;
    }
    tr.mgmt-title,
    tr.mgmt-content {
        font-size: 15px;
    }

    /* Sub-nav pills — horizontal scroll */
    div#sub-navbar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    ul.nav.nav-pills {
        flex-wrap: nowrap;
        white-space: nowrap;
        padding: 10px 14px;
        gap: 4px;
    }
    .nav-pills li a {
        font-size: 14px;
        padding: 8px 6px;
    }
    .nav-pills>li+li {
        margin-right: 6px;
    }

    /* Prices section */
    #prices td:first-child,
    #prices td:last-child {
        font-size: 15px;
    }
    td#netassets {
        font-size: 20px!important;
    }

    /* Buttons */
    .btn-class.text-center {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    /* Performance tables — horizontal scroll, undo .no-more-tables stacking */
    #perform .no-more-tables {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #perform .no-more-tables table,
    #perform .no-more-tables thead,
    #perform .no-more-tables tbody,
    #perform .no-more-tables th,
    #perform .no-more-tables td,
    #perform .no-more-tables tr,
    #perform .no-more-tables caption {
        display: revert!important;
    }
    #perform .no-more-tables thead tr {
        position: static!important;
    }
    #perform .no-more-tables .table td {
        text-align: center!important;
        padding: 8px!important;
        font-size: inherit!important;
        min-height: auto!important;
    }
    #perform .no-more-tables td:before {
        content: none!important;
    }
    #perform .no-more-tables table {
        min-width: 550px;
    }
    td#pill-table-nav span {
        padding: 6px 20px;
        font-size: 13px;
    }
    #nav-performance-view td:first-child,
    #market-performance-view td:first-child,
    #all-holdings td:first-child {
        font-size: 15px;
    }
    table#nav-performance-view tbody tr td,
    table#market-performance-view tbody tr td,
    table#all-holdings tbody tr td {
        padding-bottom: 24px!important;
        font-size: 14px;
    }
    #nav-performance-view th,
    #market-performance-view th,
    #all-holdings th {
        padding-bottom: 24px!important;
    }

    /* Expenses grid — 2 cols then 1 */
    #expenses-grid .expense-row {
        flex-direction: column;
    }
    #expenses-grid .expense-row:last-child {
        flex-direction: column;
        gap: 0;
    }
    #expenses-grid .expense-item {
        max-width: 100%;
        min-width: 0;
    }
    #expenses-grid .expense-label {
        font-size: 16px;
    }
    #expenses-grid .expense-value {
        font-size: 20px;
        margin-bottom: 28px;
    }

    /* Holdings table scroll */
    #holdings .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    #holdings .table-responsive table {
        min-width: 600px;
    }
    tr.holding-top th {
        font-size: 13px;
    }

    /* Before invest / risks */
    section#beforeInvestSection {
        font-size: 15px;
        line-height: 22px;
        padding-top: 50px;
    }

    /* Footer */
    .footer.wcap {
        width: 96%;
        padding: 14px;
    }
    .footer.wcap p {
        font-size: 13px;
    }
}

/* ================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ================================================ */
@media (max-width: 480px) {

    section {
        padding: 14px 14px;
    }
    section#fund-details {
        padding: 20px 14px;
    }

    .top-title h3 {
        font-size: 26px;
    }
    .top-title h4 {
        font-size: 16px;
    }

    .fund-summary-label {
        font-size: 15px;
    }
    .fund-summary-value {
        font-size: 18px;
        margin-bottom: 20px;
    }

    h2.table-title {
        font-size: 22px;
    }

    /* Performance — narrower min-width */
    #perform .no-more-tables table {
        min-width: 480px;
    }

    /* Expenses */
    #expenses-grid .expense-value {
        font-size: 18px;
        margin-bottom: 22px;
    }

    /* Fund Manager */
    #fund-manager .fm-name {
        font-size: 22px;
    }
    #fund-manager .fm-bio p {
        font-size: 14px;
    }
    #fund-manager .fm-content {
        padding: 16px;
    }

    /* Documents */
    #docs-grid .doc-title {
        font-size: 18px;
    }

    /* Footer */
    .footer.wcap {
        width: 100%;
        border-radius: 0;
    }
}

/* ========== MODALS ========== */
.modal-dialog {
    max-width: 750px;
    margin: 60px auto;
}
.modal-content {
    background: #E8E6E1!important;
    border: none!important;
    border-radius: 16px!important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15)!important;
}
.modal-header {
    border-bottom: none!important;
    padding: 30px 36px 10px!important;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.modal-header .modal-title {
    color: var(--main-color, #324158);
    font-family: "Playfair Display";
    font-size: 30px;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    flex: 1;
    order: 1;
}
.modal-header .close {
    font-size: 28px;
    color: #222831;
    opacity: 1;
    font-weight: 300;
    padding: 0;
    margin: 0;
    line-height: 1;
    background: none;
    border: none;
    order: 2;
}
.modal-header .close:hover {
    color: #C9A66B;
}
.modal-body {
    padding: 20px 36px 30px!important;
}
.modal-footer {
    border-top: none!important;
    padding: 10px 36px 30px!important;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Modal tables — performance table style */
.modal-body .table {
    background: transparent!important;
    border: none!important;
    border-radius: 0!important;
    box-shadow: none!important;
    margin-bottom: 20px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.modal-body .table thead th {
    color: var(--main-color, #324158);
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    border: none!important;
    padding: 14px 16px 45px!important;
    text-align: center;
    background: transparent!important;
}
.modal-body .table thead th:first-child {
    text-align: left;
    width: 46%;
}
.modal-body .table thead th:not(:first-child) {
    text-align: center;
    font-weight: 400;
}
/* Pill-style column headers — only for spans inside th */
.modal-body .table thead th:not(:first-child) span {
    border: 1px solid #C9A66B;
    border-radius: 38px;
    padding: 10px 30px;
    font-weight: 400;
    font-size: 16px;
    display: inline-block;
    color: #324158;
    font-family: Inter;
}
/* Premium/Discount table — pill on th text directly (no inner span) */
#premTableModal #premium-thead th:not(:first-child) {
    border: 1px solid #C9A66B;
    border-radius: 38px;
    padding: 10px 20px!important;
    font-weight: 400;
    font-size: 16px;
    color: #324158;
    font-family: Inter;
    background: transparent!important;
    /* keep table-cell display so columns stay in line */
}
/* Dividend History table — pill on th directly */
#dividendHistoryModal #dividends thead th {
    border: 1px solid #C9A66B;
    border-radius: 38px;
    padding: 10px 20px!important;
    font-weight: 400;
    font-size: 16px;
    color: #324158;
    font-family: Inter;
    background: transparent!important;
    text-align: center;
}
.modal-body .table tbody td {
    color: #222831;
    font-family: Inter;
    font-size: 18px;
    font-weight: 400;
    padding: 14px 16px 45px!important;
    border: none!important;
    vertical-align: middle;
}
.modal-body .table tbody td:first-child {
    font-weight: 700;
    text-align: left;
}
.modal-body .table tbody td:not(:first-child) {
    text-align: center;
}
.modal-body .table tbody tr:last-child td {
    border-bottom: none!important;
}
.modal-body .table tbody td.number {
    text-align: center;
    font-weight: 400;
}

/* Modal buttons */
.modal-footer .button,
.modal-body .button,
.modal-body a#chart-download-link {
    background: #C9A66B;
    color: #FFF!important;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-family: Inter;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s ease;
    cursor: pointer;
}
.modal-footer .button:hover,
.modal-body .button:hover,
.modal-body a#chart-download-link:hover {
    background: #b08e55;
}

/* Premium table modal — download link at bottom */
#premTableModal a#chart-download-link {
    display: block;
    text-align: center;
    margin: 20px auto 0;
    width: fit-content;
}

/* Buy ETF modal */
.modal-body.buy-modal > div {
    margin-bottom: 12px;
}
.modal-body.buy-modal a {
    color: var(--main-color, #324158);
    font-family: Inter;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 14px 20px;
    border: 1px solid #C9A66B;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s ease;
}
.modal-body.buy-modal a:hover {
    border-color: #b08e55;
    background: #ddd9d3;
}

/* Dividend History modal */
#dividendHistoryModal .dividend-caption {
    color: #222831;
    font-family: Inter;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 20px;
    padding: 0 16px;
}
#dividendHistoryModal .no-more-tables table,
#dividendHistoryModal .no-more-tables thead,
#dividendHistoryModal .no-more-tables tbody,
#dividendHistoryModal .no-more-tables tr,
#dividendHistoryModal .no-more-tables th,
#dividendHistoryModal .no-more-tables td {
    display: revert!important;
    position: static!important;
}
#dividendHistoryModal .table-responsive {
    border: none!important;
}

/* Chart modal */
#chartModal .modal-dialog {
    max-width: 850px;
}
#chartModal .chart-container {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

/* Modal close footer button hide (use X instead) */
#chartModal .modal-footer,
#premTableModal .modal-footer {
    display: none;
}

@media (max-width: 767px) {
    /* Center modal vertically when open */
    .modal.in {
        display: flex!important;
        align-items: center!important;
        justify-content: center!important;
    }
    .modal-dialog {
        margin: 0 auto!important;
        max-width: calc(100% - 30px);
        width: 100%;
    }
    .modal-header {
        padding: 20px 20px 8px!important;
    }
    .modal-header .modal-title {
        font-size: 24px;
    }
    .modal-body {
        padding: 14px 20px 20px!important;
    }
    .modal-footer {
        padding: 8px 20px 20px!important;
    }
    /* Modal table headers on mobile */
    .modal-body .table thead th {
        padding: 10px 6px 20px!important;
        font-size: 13px;
    }
    .modal-body .table thead th:first-child {
        width: 30%;
    }
    .modal-body .table thead th:not(:first-child) span {
        padding: 6px 12px;
        font-size: 12px;
    }
    #premTableModal #premium-thead th:not(:first-child) {
        padding: 6px 10px!important;
        font-size: 12px;
    }
    #dividendHistoryModal #dividends thead th {
        padding: 6px 10px!important;
        font-size: 12px;
    }
    /* Modal table body on mobile */
    .modal-body .table tbody td {
        font-size: 15px;
        padding: 10px 6px 20px!important;
    }
    /* Download link on mobile */
    #premTableModal a#chart-download-link {
        padding: 12px 28px;
        font-size: 14px;
    }
    /* Chart modal smaller */
    #chartModal .modal-dialog {
        max-width: calc(100% - 30px);
    }
}