/* ==========================================================================
   SRH Funds — content pages: page.php (Privacy Policy), Tax Documents, Fact Sheet,
   Fund Overview landing, 404
   ========================================================================== */

/* ── Title banner (stone) ─────────────────────────────────────────────── */
.title-banner { margin: 20px 0 0; }
.title-banner__row { background: var(--stone); padding: 33.6px 3.33%; }
.title-banner__title { font-size: 30px; line-height: 1.1; font-weight: 500; }

/* ── Rich text from the editor ────────────────────────────────────────── */
.entry-content { padding: 50px 0 80px; font-size: 16px; line-height: 1.7; }
.entry-content h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.entry-content h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.entry-content h4 { font-size: 18px; margin: 1.4em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; }

/* ── Tax Documents (classes used in the page content) ─────────────────── */
.tax-documents__body { padding: 67px 0; font-size: 22px; }   /* live: Divi's 22px body size (sets the gap between the Form 8937 buttons) */
.tax-documents h3.underline,
.tax-documents h4.underline {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
    padding-bottom: 10px;
}
.tax-documents h3.underline { margin: 20px 0; border-bottom: 4.8px solid var(--blue-900); }
.tax-documents h4.underline { margin: 30px 0 10px; border-bottom: 1px solid #6b9dc1; }
.tax-documents .nomargin { margin-top: 20px; }
.tax-documents p { font-size: 16px; margin: 0 0 15px; }
.tax-documents .docLink {
    display: inline-block;
    margin: 0 5px 8px 0;
    padding: 5px;
    border: 1px solid var(--blue-900);
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-700);
    text-decoration: none;
}
.tax-documents .docLink:hover { background: var(--blue-900); color: var(--white); }
.tax-documents table.table { width: 100%; border-collapse: collapse; margin: 0 0 15px; text-align: left; }
.tax-documents table.table th {
    padding: 8px 5px 5px;
    background: #ccddea;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    text-align: left;
    white-space: nowrap;
}
.tax-documents table.table tr:first-child th { white-space: normal; }
.tax-documents table.table td:first-child { padding-left: 8px; }   /* live: Divi table cells, first column 8px */
.tax-documents table.table td {
    padding: 6px 24px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px dotted #ddd;
    font-size: 14px;
    font-weight: 500;
}
.tax-documents .tableHorizontalScroll { overflow-x: auto; }
.tax-documents .tableOverflowIndicator { display: none; font-size: 14px; text-align: center; color: #353536; }
.tax-documents .disclosure { margin: 50px 0 15px; font-size: 16px; font-style: italic; line-height: 1.2; }

/* ── Fact sheet ───────────────────────────────────────────────────────── */
.factsheet__doc { margin: 0 auto; }
.factsheet .pdf-wrapper { display: block; margin: 0; }
.pdf-frame { display: block; width: 100%; max-height: calc(100vh - 160px); min-height: 600px; border: 0; }
.pdf-wrapper__fallback { text-align: center; margin-top: 20px; }

/* ── Fund Overview landing ────────────────────────────────────────────── */
.fund-overview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3%;
    padding: 30px 0 60px;
}

@media (max-width: 980px) {
    .fund-overview__grid { row-gap: 20px; }
    .tax-documents .tableOverflowIndicator { display: block; }
}
/* live Funds page: all three tiles use white text */
.fund-overview .tile { color: var(--white); }
/* old content uses <div class="row"> — don't apply the theme's 90% content row inside the editor content */
.entry-content .row { width: auto; margin-inline: 0; }

/* Tax documents — UI parity with live (Divi body lh 33px, module spacing) */
.tax-documents__body { padding-top: 91px; padding-bottom: 90.75px; line-height: 33px; }   /* live: 60.5px section + 30.25px row padding */
.tax-documents section + section { margin-top: 50px; }
.tax-documents section + section:has(> .row, > h4) { margin-top: 0; }
.tax-documents p { line-height: 41.42px; }
.tax-documents h4.underline + p { padding-bottom: 16px; }
.tax-documents .docLink { line-height: 33px; }
.tax-documents table.table th,
.tax-documents table.table td { line-height: 26.4px; }
.tax-documents table.table td { border-top: 0.8px solid #eee; }
.tax-documents table.table tr:nth-child(2) th { padding: 9px 24px; font-weight: 700; text-align: center; }

/* Privacy policy — UI parity with live */
.page-template-privacy-policy-php .title-banner__row { padding: 30.25px 0 30.25px 45.375px; }
.page-template-privacy-policy-php .title-banner__title { font-size: 80px; line-height: 88px; padding-bottom: 10px; }
.page-template-privacy-policy-php .content-page__body { width: 80%; max-width: none; margin: 0 auto; padding: 110.75px 0 60.5px; font-size: 22px; line-height: 33px; }
.page-template-privacy-policy-php .content-page__body { overflow-wrap: anywhere; }
.page-template-privacy-policy-php .content-page__body p { font-size: 22px; line-height: 33px; margin: 0; padding-bottom: 22px; }
.page-template-privacy-policy-php .content-page__body h4 { font-size: 27px; line-height: 29.7px; margin: 0; padding-bottom: 10px; }
.page-template-privacy-policy-php .content-page__body ul { margin: 0 0 0 20px; padding: 0 0 22px 22px; font-size: 22px; line-height: 26px; }
.page-template-privacy-policy-php .content-page__body li { line-height: 30.8px; margin: 0 0 12px; padding: 0; }

/* Fact sheet — live: Divi section 60.5px + row 90% with 30.25px padding (plus 32px offset under header) */
.factsheet__doc { width: 90%; max-width: none; padding: 91px 0; }
.factsheet .pdf-wrapper { padding: 40px 16px 89px; }
.factsheet .pdf-wrapper iframe { width: 100%; height: 1400px !important; max-height: none !important; border: 0; display: block; }
.factsheet .pdf-wrapper__fallback { text-align: center; margin-top: 20px; }
@media (min-width: 981px) { .factsheet .pdf-wrapper__fallback { display: none; } }
@media (max-width: 980px) { .factsheet .pdf-wrapper iframe { height: 80vh; } }
.tableOverflowIndicator.is-visible { display: block !important; 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; }
}

/* Funds overview — tablet/phone parity with live: one tile per row, 311px tall, content max 550px centred */
@media (max-width: 980px) {
    .fund-overview__grid { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
    .fund-overview .tile--tall { min-height: 311px; padding-inline: max(20px, calc(50% - 275px)); }
}
@media (max-width: 767px) { .fund-overview .tile__sub { font-size: 22px; } }
@media (max-width: 980px) {
    .page-template-privacy-policy .title-banner__row { padding: 30px 0 30px 3%; }
    .page-template-privacy-policy .content-page__body { padding-top: 100px; }
}
@media (max-width: 980px) {
    .tax-documents__body { padding-top: 80px; padding-bottom: 80px; }
    .tax-documents .tableOverflowIndicator.is-visible { margin: 10px 0 30px; line-height: 33px; }
}
@media (max-width: 980px) {
    .tax-documents table.table th:last-child { white-space: normal; }
}
/* Live tax page text uses "Lato, helvetica, sans-serif" (Lato is not loaded there, so visitors see Helvetica/Arial) — same stack here */
.tax-documents h3.underline, .tax-documents h4.underline, .tax-documents p { font-family: Lato, helvetica, sans-serif; }
/* Live (Divi) superscript: raised without growing the table row */
.tax-documents sup { position: relative; bottom: .8em; vertical-align: baseline; font-size: 19.2px; line-height: 19.2px; }
/* Live: the "Total Ordinary Dividends" group header is centred with a 1px white rule under it */
.tax-documents table.table tr:first-child th:nth-child(4) { border-bottom: 1px solid #fff; text-align: center; }
/* BOLDEN-744: wide tables scroll sideways with a finger on phones */
.tax-documents .tableHorizontalScroll { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }

/* ── 404 — full-width panel, message centred in the viewport ──────────── */
.error-404__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding: 60px 20px;
    background: var(--stone);
    text-align: center;
}
.error-404__inner { max-width: 760px; }
.error-404__title { font-family: var(--font-heading); font-size: 80px; line-height: 1.1; font-weight: 500; margin: 0 0 24px; }
.error-404__text { font-size: 22px; line-height: 1.5; margin: 0; }
@media (max-width: 767px) {
    .error-404__title { font-size: 44px; }
    .error-404__text { font-size: 18px; }
}
