/*
Theme Name: ncm
*/
/* ====================== ARROW LINK (yellow-arrow.svg) ====================== */
.arrow-link {
	display: flex;
	align-items: baseline;
}
.arrow-link::before {
	content: "";
	display: inline-block;
	flex-shrink: 0;
	width: 8px;
	height: 11px;
	margin-right: 0.5rem;
	background: url('images/yellow-arrow.svg') no-repeat center / contain;
}
.post-content a{
	color:#223c67;
}
.post-content p{
	margin-bottom:20px;
	font-weight: 300;
}
.post-content p{
	font-weight: 300;
}
.post-content ul{
	list-style-type: disc;
  padding-inline-start: 1.625em;
  font-weight: 300;
  margin-bottom:20px;
}
.post-content ul li::marker {
  color: #000;
}
.post-content h1{
  font-size: 3rem;
  line-height: 1;
  color:#223c67;
  margin-bottom: 20px;
}
.post-content h2{
  font-size: 1.875rem;
  line-height: 2.25rem;
  color:#223c67;
  margin-bottom: 20px;
}
.post-content h3{
	font-size: 1.5rem;
  line-height: 2.25rem;
  color:#223c67;
  margin-bottom: 20px;
}
#accordion-list .prose {
	max-width: 100%;
}
#accordion-list img{
	margin-top:0px;
	margin-bottom:0px;
}
#accordion-list p{
	margin-top:0px;
	margin-bottom:10px;
}
.info-block h3{
	font-weight: 600;
}
.info-block p{
	font-weight: 300;
	font-size: 1rem;
    line-height: 1.5rem;
	margin-top:12px;
}
.disclaimer h3{
	font-weight: 600;
}
.disclaimer p{
	font-weight: 300;
	font-size: 1rem;
    line-height: 1.5rem;
	margin-top:12px;
}
#taxTable table{
	font-weight: 300;
	text-align: left;
	--tw-border-opacity: 1;
  border-color: #d1d5db;
  border-top-width: 1px;
  width: 100%;
}
#taxTable table th{
	padding-top: 2rem;
	padding-bottom: 1.25rem;
}
#taxTable table td{
	padding-top: .5rem;
  padding-bottom: .5rem;
}
.download-list img{
	width: 20px;
  height: 20px;
}

.price-performance li.active,
.price-performance li:hover {
    --tw-text-opacity: 1;
    color: rgb(34 60 103 / var(--tw-text-opacity, 1))
}

.price-performance li.active:after,
.price-performance li:hover:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1rem;
    height: .5rem;
    width: 100%;
    --tw-bg-opacity: 1;
    background-color: rgb(65 173 73 / var(--tw-bg-opacity, 1))
}

.price-performanceul thead.section:before {
    content: "";
    display: block;
    padding-top: 1rem
}
.wpcf7-list-item{
	margin-left:0px !important;
}
#fund-popup p{
	padding-bottom:20px;
}
@media (min-width: 768px) {
	.first-row{
		margin-top:0px !important;
	}
	.first-column{
		margin-left:0px !important;
	}
}
/* ====================== PAGINATION ====================== */
.navigation.pagination {
    margin-top: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 1rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
}

.page-numbers.current {
    background-color: #223c67;
    color: white;
    border-color: #223c67;
    font-weight: 600;
}

.page-numbers.dots {
    border: none;
    background: transparent;
    color: #6b7280;
    padding: 0 8px;
    min-width: auto;
    height: auto;
}

/* Next / Previous buttons */
.next.page-numbers,
.prev.page-numbers {
    font-weight: 500;
    padding: 0 20px;
    min-width: 100px;
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
    background-color: #223c67;
    color: white;
    border-color: #223c67;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 6px;
    }
    
    .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* ====================== BUTTON ====================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    color: #111827;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    background-color: #f9fafb;
    color: rgb(65 173 73 / var(--tw-text-opacity, 1));
}

.post-item-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    align-self: flex-start;
}

@media (min-width: 768px) {
    .post-item-thumb {
        width: 22rem;
        flex-shrink: 0;
    }
}

/* Page header banner (partials/page-banner.php) */
.page-banner {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.page-banner__text {
    display: flex;
    align-items: center;
    padding: 3rem 2rem;
}

.page-banner__title {
    /* one word per line */
    width: min-content;
    margin: 0;
    color: #fff;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.05;
	text-align:right;
}

.page-banner__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.page-banner__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .page-banner {
        position: relative;
        flex-direction: row;
        /* grows when a long title stacks taller than the default height */
        min-height: 21rem;
    }

    /* semi-transparent colour panel laid over the left of the full-width image */
    .page-banner__text {
        position: relative;
        z-index: 1;
        flex: 0 0 37%;
        justify-content: flex-end;
        padding: 2rem 4rem 2rem 2rem;
        --tw-bg-opacity: 0.9;
    }

    .page-banner__title {
        /* scales down on narrower screens so long words fit the panel */
        font-size: clamp(2rem, 4.2vw, 3.75rem);
    }

    .page-banner__image {
        position: absolute;
        inset: 0;
        aspect-ratio: auto;
    }

    /* No featured image: solid panel spans the full width, title aligned with page content */
    .page-banner--no-image .page-banner__text {
        flex: 1;
        justify-content: flex-start;
        padding-left: max(2rem, calc((100% - 1280px) / 2));
        --tw-bg-opacity: 1;
    }
}


/* Know Your Product request form (CF7 form wraps its fields in .kyp-form) */
.kyp-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: rgb(34 60 103);
}

.kyp-form p {
    margin: 0;
}

.kyp-form__field label,
.kyp-form__legend {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.kyp-form__required {
    color: rgb(65 173 73);
}

.kyp-form .wpcf7-form-control-wrap {
    display: block;
}

.kyp-form input[type="text"],
.kyp-form textarea {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgb(126 138 142);
    border-radius: 0;
    background-color: rgb(242 244 245);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #111827;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kyp-form textarea {
    height: 7rem;
    resize: vertical;
}

.kyp-form input[type="text"]:focus,
.kyp-form textarea:focus {
    outline: none;
    border-bottom-color: rgb(65 173 73);
    background-color: #fff;
    box-shadow: inset 0 -1px 0 rgb(65 173 73);
}

.kyp-form__funds {
    border-top: 1px solid rgb(126 138 142 / 0.4);
    padding-top: 1.5rem;
}

.kyp-form .wpcf7-checkbox {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .kyp-form .wpcf7-checkbox {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

.kyp-form .wpcf7-list-item {
    margin: 0;
}

.kyp-form .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.kyp-form input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    accent-color: rgb(65 173 73);
    cursor: pointer;
}

.kyp-form__comparison p.kyp-form__hint {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.kyp-form input[type="submit"] {
    align-self: flex-start;
    border: 0;
    background-color: rgb(65 173 73);
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.kyp-form input[type="submit"]:hover,
.kyp-form input[type="submit"]:focus {
    background-color: rgb(34 60 103);
}

.kyp-form .wpcf7-not-valid-tip {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.kyp-form .wpcf7-spinner {
    margin: 0.75rem 0 0;
}

.wpcf7 form .wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 0.75rem 1rem;
}

/* French KYP form (CF7 #1990) keeps its older markup: Tailwind classes on the wrapper,
   placeholder-only inputs, email + consent fields. Tidy it without touching the English form. */
.kyp-form.space-y-4 {
    gap: 1rem;
}

.kyp-form.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0; /* gap already spaces the rows */
}

.kyp-form.space-y-4 p > br:first-child {
    display: none;
}

.kyp-form.space-y-4 .wpcf7-form-control-wrap > input[type="text"],
.kyp-form.space-y-4 .wpcf7-form-control-wrap > input[type="email"] {
    display: block;
    width: 100%;
    max-width: 36rem;
}

.kyp-form.space-y-4 input[type="email"] {
    border: 0;
    border-bottom: 1px solid rgb(126 138 142);
    border-radius: 0;
    background-color: rgb(242 244 245);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #111827;
}

.kyp-form.space-y-4 input[type="email"]:focus {
    outline: none;
    border-bottom-color: rgb(65 173 73);
    background-color: #fff;
    box-shadow: inset 0 -1px 0 rgb(65 173 73);
}

.kyp-form.space-y-4 .font-light {
    margin-left: 0;
    font-size: 0.875rem;
    color: rgb(126 138 142);
}

.kyp-form.space-y-4 textarea {
    max-width: 36rem;
}

.kyp-form.space-y-4 [data-name="agree_to_contact"] .wpcf7-checkbox {
    grid-template-columns: 1fr;
}

.kyp-form.space-y-4 [data-name="agree_to_contact"] label {
    align-items: flex-start;
}

.kyp-form.space-y-4 [data-name="agree_to_contact"] input[type="checkbox"] {
    margin: 0.125rem 0 0;
}
