/* ---------------------------------------------------------------------- *
 * Homepage sections below the hero (template-parts/home-editorial.php):
 * Find a fund, the commentary/consultants band, newsletter, disclosures
 * and the slim footer bar. Dark ("Signal") is the design; light
 * ("Clarity") swaps the palette through the same variables.
 * ---------------------------------------------------------------------- */

.ss-hf, .ss-hb, .ss-hn, .ss-hd, .ss-hfoot{
	--hf-page:#0a1030; --hf-card:#0e1538; --hf-card-hover:#131c47; --hf-line:rgba(255,255,255,.12); --hf-line-soft:rgba(255,255,255,.08);
	--hf-ink:#fff; --hf-text:#c4c9d4; --hf-muted:#8b93a6; --hf-teal:#00abba; --hf-link:#00abba;
	--hf-pos:#46b985; --hf-neg:#e5707d;
	--hf-pad:max(clamp(16px,5vw,44px),calc((100% - 1152px)/2));
}
body:not(.ss-fund-dark) .ss-hf{
	--hf-page:#fff; --hf-card:#fff; --hf-card-hover:#f3f5f9; --hf-line:#dfe4ee; --hf-line-soft:#e8ebf2;
	--hf-ink:#1a2c5b; --hf-text:#57555f; --hf-muted:#7d7a85; --hf-link:#2d7abf; --hf-pos:#316f51; --hf-neg:#ac2a37;
}

/* ---- Find a fund ---- */
.ss-hf{ background:var(--hf-page); color:var(--hf-text); padding:clamp(56px,7vw,88px) var(--hf-pad) clamp(48px,6vw,72px); }
.ss-hf__head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; padding-bottom:22px; border-bottom:1px solid var(--hf-line); }
.ss-hf__kicker{ margin:0 0 10px; font-size:11px; font-weight:700; letter-spacing:.18em; color:var(--hf-teal); }
.ss-hf__title{ margin:0; font-size:clamp(28px,3.6vw,40px); line-height:1.08; font-weight:700; letter-spacing:-.025em; color:var(--hf-ink); }
.ss-hf__meta{ text-align:right; font-size:12px; line-height:1.6; color:var(--hf-muted); }
.ss-hf__meta p{ margin:0 0 4px; }
.ss-hf__meta a{ font-weight:700; color:var(--hf-link); text-decoration:none; }
.ss-hf__meta a:hover{ text-decoration:underline; text-underline-offset:3px; }

.ss-hf__role{ display:grid; grid-template-columns:minmax(200px,260px) minmax(0,1fr); gap:clamp(20px,3vw,40px); padding:28px 0; border-bottom:1px solid var(--hf-line-soft); }
.ss-hf__rolename{ display:flex; align-items:center; gap:12px; margin:0 0 10px; font-size:19px; font-weight:700; color:var(--hf-ink); letter-spacing:-.01em; }
.ss-hf__icon{ display:inline-flex; width:75px; height:75px; flex:none; }
.ss-hf__icon svg{ width:100%; height:100%; display:block; }
.ss-hf__roleintro p{ margin:0; font-size:14px; line-height:1.55; color:var(--hf-text); max-width:30ch; }

.ss-hf__cards{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-content:start; }
.ss-hf__card{
	display:flex; flex-direction:column; gap:6px; min-width:0; padding:18px 18px 16px;
	background:var(--hf-card); border:1px solid var(--hf-line-soft); color:inherit; text-decoration:none;
	transition:background-color .15s ease, border-color .15s ease;
}
.ss-hf__card:hover, .ss-hf__card:focus-visible{ background:var(--hf-card-hover); border-color:var(--hf-line); }
.ss-hf__card:focus-visible{ outline:2px solid var(--hf-teal); outline-offset:2px; }
.ss-hf__tickers{ font-size:11px; font-weight:700; letter-spacing:.08em; color:var(--hf-teal); }
.ss-hf__name{ font-size:16px; font-weight:700; line-height:1.25; color:var(--hf-ink); }
.ss-hf__cat{ font-size:12px; color:var(--hf-muted); }
.ss-hf__perfhead{ margin-top:10px; padding-top:12px; border-top:1px solid var(--hf-line-soft); font-size:10px; font-weight:700; letter-spacing:.12em; color:var(--hf-teal); }
.ss-hf__perf{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.ss-hf__perf > span{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ss-hf__plabel{ font-size:10px; font-weight:700; letter-spacing:.08em; color:var(--hf-muted); }
.ss-hf__pval{ font-size:15px; font-weight:700; color:var(--hf-ink); font-variant-numeric:tabular-nums; }
.ss-hf__line{ display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; font-size:13px; font-variant-numeric:tabular-nums; }
.ss-hf__line:first-of-type{ margin-top:6px; }
.ss-hf__llabel{ min-width:30px; font-size:10px; font-weight:700; letter-spacing:.1em; color:var(--hf-muted); }
.ss-hf__line strong{ color:var(--hf-ink); }
.ss-hf__chg{ font-size:12px; }
.ss-hf__chg.is-pos{ color:var(--hf-pos); }
.ss-hf__chg.is-neg{ color:var(--hf-neg); }
.ss-hf__note{ margin:24px 0 0; max-width:1000px; font-size:12px; line-height:1.6; color:var(--hf-muted); }
.ss-hf__admin, .ss-hn__admin{ margin:0; padding:8px 12px; font-size:12.5px; color:#f1c40f; border:1px dashed rgba(241,196,15,.6); }

/* ---- Commentary / consultants band (always dark) ---- */
.ss-hb{ background:#070b22; border-top:1px solid rgba(255,255,255,.08); }
.ss-hb__inner{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0 var(--hf-pad); }
.ss-hb__tile{ padding:clamp(40px,5vw,64px) clamp(0px,3vw,40px) clamp(40px,5vw,64px) 0; }
.ss-hb__tile + .ss-hb__tile{ padding-left:clamp(20px,3vw,40px); border-left:1px solid rgba(255,255,255,.1); }
.ss-hb__icon{ display:block; width:32px; height:32px; margin-bottom:22px; }
.ss-hb__icon svg{ width:100%; height:100%; display:block; }
.ss-hb__kicker{ margin:0 0 10px; font-size:11px; font-weight:700; letter-spacing:.16em; color:#00abba; }
.ss-hb__title{ margin:0; max-width:24ch; font-size:clamp(22px,2.4vw,28px); line-height:1.2; font-weight:700; letter-spacing:-.02em; color:#fff; }
.ss-hb__link{ display:inline-block; margin-top:16px; font-size:14px; font-weight:700; color:#00abba; text-decoration:none; }
.ss-hb__link:hover{ text-decoration:underline; text-underline-offset:3px; }

/* ---- Newsletter (always dark) ---- */
.ss-hn{ background:radial-gradient(900px 300px at 85% 0%,rgba(45,122,191,.22),transparent 70%),#0a1030; border-top:1px solid rgba(255,255,255,.08); }
.ss-hn__inner{ display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,440px); gap:clamp(24px,4vw,64px); align-items:center; padding:clamp(48px,6vw,72px) var(--hf-pad); }
.ss-hn__kicker{ display:flex; align-items:center; gap:12px; margin:0 0 14px; font-size:11px; font-weight:700; letter-spacing:.18em; color:#00abba; }
.ss-hn__kicker span{ width:32px; height:2px; background:#00abba; display:inline-block; }
.ss-hn__title{ margin:0; max-width:22ch; font-size:clamp(24px,2.8vw,32px); line-height:1.15; font-weight:700; letter-spacing:-.02em; color:#fff; }
.ss-hn__row{ display:flex; }
.ss-hn__row input{ flex:1; min-width:0; height:48px; padding:0 16px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.22); border-right:none; color:#fff; font:inherit; font-size:15px; }
.ss-hn__row input::placeholder{ color:#8b93a6; }
.ss-hn__row input:focus{ outline:2px solid #00abba; outline-offset:-2px; }
.ss-hn__row button{ height:48px; padding:0 24px; background:#00abba; border:none; color:#04262a; font:inherit; font-size:13px; font-weight:700; letter-spacing:.08em; cursor:pointer; }
.ss-hn__row button:disabled{ opacity:.6; cursor:not-allowed; }
.ss-hn__checks{ display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:14px; font-size:13px; color:#c4c9d4; }
.ss-hn__checks label{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.ss-hn__checks input{ accent-color:#00abba; width:15px; height:15px; margin:0; }
.ss-hn__note{ margin:12px 0 0; font-size:12px; color:#8b93a6; }
.ss-hn__admin{ margin-top:12px; }

/* ---- Disclosures + footer bar (always dark) ---- */
.ss-hd{ background:#0a1030; border-top:1px solid rgba(255,255,255,.08); }
.ss-hd__inner{ padding:32px var(--hf-pad) 36px; }
.ss-hd__kicker{ margin:0 0 10px; font-size:11px; font-weight:700; letter-spacing:.16em; color:#fff; }
.ss-hd__text{ margin:0; max-width:1100px; font-size:12px; line-height:1.65; color:#8b93a6; }
.ss-hd__text strong{ color:#c4c9d4; }
.ss-hfoot{ background:#070b22; border-top:1px solid rgba(255,255,255,.08); padding:26px var(--hf-pad) 22px; }
.ss-hfoot__inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.ss-hfoot__links{ display:flex; flex-wrap:wrap; gap:4px 0; font-size:12.5px; }
.ss-hfoot__links > *{ color:#c4c9d4; text-decoration:none; }
.ss-hfoot__links > * + *::before{ content:"·"; margin:0 8px; color:#5a6280; }
.ss-hfoot__links a:hover{ color:#fff; }
.ss-hfoot__copy{ margin:14px 0 0; font-size:11.5px; color:#5a6280; }

/* ---- Responsive ---- */
@media (max-width:1000px){
	.ss-hf__cards{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px){
	.ss-hf__icon{ width:32px; height:32px; }
	.ss-hf__role{ grid-template-columns:minmax(0,1fr); gap:16px; }
	.ss-hf__roleintro p{ max-width:none; }
	.ss-hf__cards{ grid-template-columns:minmax(0,1fr); }
	.ss-hf__meta{ text-align:left; }
	.ss-hb__inner{ grid-template-columns:minmax(0,1fr); }
	.ss-hb__tile{ padding-right:0; }
	.ss-hb__tile + .ss-hb__tile{ padding-left:0; border-left:none; border-top:1px solid rgba(255,255,255,.1); }
	.ss-hn__inner{ grid-template-columns:minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce){ .ss-hf__card{ transition:none; } }
.screen-reader-text{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* Latest research tile (1.4.1): the title links to the piece. */
.ss-hb__title a{ color:inherit; text-decoration:none; }
.ss-hb__title a:hover, .ss-hb__title a:focus-visible{ text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
.ss-hb__tile:first-child .ss-hb__title{ max-width:30ch; }
.ss-hb__sub{ margin:10px 0 0; max-width:52ch; font-size:15px; line-height:1.5; color:#c4c9d4; }

/* ---- All funds in one alphabetical grid (1.4.1): the card is an <article>; its title link covers the
   card, and the fact sheet button sits above that link so both can be clicked. ---- */
.ss-hf__cards--all{ margin-top:30px; grid-template-columns:repeat(4,minmax(0,1fr)); }
.ss-hf__cards--all .ss-hf__card{ position:relative; }
.ss-hf__cards--all .ss-hf__card:hover{ background:var(--hf-card-hover); border-color:var(--hf-line); }
.ss-hf__cards--all .ss-hf__card:focus-within{ border-color:var(--hf-line); }
h3.ss-hf__name{ margin:0; }
.ss-hf__link{ color:inherit; text-decoration:none; }
.ss-hf__link::after{ content:''; position:absolute; inset:0; z-index:1; }
.ss-hf__link:focus-visible{ outline:none; }
.ss-hf__link:focus-visible::after{ outline:2px solid var(--hf-teal); outline-offset:2px; }
.ss-hf__fact{ position:relative; z-index:2; align-self:flex-start; display:inline-flex; align-items:center; gap:8px; margin-top:auto; padding:9px 14px; font-size:13px; font-weight:700; letter-spacing:.04em; color:var(--hf-ink); border:1px solid var(--hf-line); text-decoration:none; background:transparent; }
.ss-hf__fact:hover, .ss-hf__fact:focus-visible{ background:var(--hf-teal); border-color:var(--hf-teal); color:#04262a; }
.ss-hf__fact:focus-visible{ outline:2px solid var(--hf-teal); outline-offset:2px; }
@media (max-width:1100px){ .ss-hf__cards--all{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:860px){ .ss-hf__cards--all{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .ss-hf__cards--all{ grid-template-columns:minmax(0,1fr); } }
/* Full fund names run to one, two or three lines: reserve the longest so each row of cards lines up. */
.ss-hf__cards--all .ss-hf__name{ min-height:calc(1.25em * 3); }
@media (max-width:860px){ .ss-hf__cards--all .ss-hf__name{ min-height:calc(1.25em * 2); } }
@media (max-width:560px){ .ss-hf__cards--all .ss-hf__name{ min-height:0; } }
