/* Scoped styles: never force body/Elementor theme styles. */
.sp-portal { color:var(--sp-text,#f5f5f5) !important; font:inherit; max-width:1200px; margin:0 auto; }
.sp-portal, .sp-portal * {box-sizing:border-box;}
.sp-portal h2,.sp-portal h3,.sp-portal p,.sp-portal strong,.sp-portal span {color:inherit;}
.sp-portal h2 {font-size:clamp(1.6rem,3vw,2.4rem);margin:0 0 1.2rem;line-height:1.2;}
.sp-portal h3 {margin:1.5rem 0 .8rem;line-height:1.25;}
.sp-portal .sp-summary {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0 2rem;}
.sp-portal .sp-summary > div {background:var(--sp-background,#121212);padding:1.25rem;border:1px solid var(--sp-border,#3b3c40);border-radius:14px;min-width:0;}
.sp-portal .sp-summary small {display:block;color:var(--sp-muted,#b5bdc8) !important;margin-bottom:.5rem;}
.sp-portal .sp-summary strong {display:block;font-size:1.7rem;color:var(--sp-text,#f5f5f5) !important;}
.sp-portal .sp-cards {display:grid;grid-template-columns:repeat(var(--sp-columns,2),minmax(0,1fr));gap:1.1rem;align-items:start;}
.sp-portal .sp-card {min-width:0;padding:1.2rem;border:1px solid var(--sp-border,#3b3c40);border-radius:14px;background:var(--sp-card,#202124);color:var(--sp-text,#f5f5f5);overflow:hidden;}
.sp-portal .sp-card h3 {font-size:1.15rem;margin:.2rem 0 .7rem;color:var(--sp-text,#f5f5f5)!important;}
.sp-portal .sp-card p {margin:.45rem 0;color:var(--sp-text,#f5f5f5);}
.sp-portal .sp-description {font-size:.94rem;color:var(--sp-muted,#b5bdc8)!important;}
.sp-portal .sp-description p {color:var(--sp-muted,#b5bdc8)!important;}
.sp-portal img.sp-cover {display:block!important;width:100%!important;max-width:var(--sp-poster-width,170px)!important;height:var(--sp-poster-height,245px)!important;max-height:var(--sp-poster-height,245px)!important;object-fit:contain!important;object-position:left center!important;border-radius:7px;margin:0 0 1rem!important;background:transparent;}
.sp-portal .sp-button {background:var(--sp-accent,#d29ee2)!important;color:#111!important;border:0!important;border-radius:8px;padding:.8rem 1.1rem;display:inline-block;text-decoration:none;cursor:pointer;margin-top:.6rem;font-weight:700;}
.sp-portal .sp-button:hover {filter:brightness(.9);}
.sp-portal .sp-state {color:var(--sp-muted,#b5bdc8)!important;font-weight:600;}
.sp-portal .sp-opportunities-grid{grid-template-columns:repeat(auto-fit,minmax(calc(var(--sp-poster-width,170px) + 2.8rem),max-content));justify-content:start;align-items:stretch;}
.sp-portal .sp-opportunity-card{width:fit-content;max-width:100%;padding:1.15rem;display:flex;justify-content:center;}
.sp-portal .sp-opportunity-inner{width:min(100%,var(--sp-poster-width,170px));display:flex;flex-direction:column;align-items:stretch;}
.sp-portal .sp-opportunity-card h3{margin:.95rem 0 .5rem;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.9rem;}
.sp-portal .sp-opportunity-card .sp-description{font-size:.92rem;line-height:1.45;}
.sp-portal .sp-opportunity-card .sp-description p{margin:.35rem 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;}
.sp-portal .sp-opportunity-card .sp-button{width:100%;text-align:center;margin-top:.85rem;}
.sp-portal .sp-opportunity-card .sp-state{margin-top:.75rem;}
.sp-portal img.sp-cover,.sp-portal .sp-cover-placeholder{display:block!important;width:100%!important;max-width:var(--sp-poster-width,170px)!important;height:var(--sp-poster-height,245px)!important;max-height:var(--sp-poster-height,245px)!important;object-fit:contain!important;object-position:center center!important;border-radius:7px;margin:0 auto 1rem!important;background:transparent;}
.sp-portal .sp-cover-placeholder{background:rgba(255,255,255,.03);border:1px dashed var(--sp-border,#3b3c40);}
.sp-panel {padding:2rem;border:1px solid #555;border-radius:12px;}
@media(max-width:767px){.sp-portal .sp-cards{grid-template-columns:1fr}.sp-portal .sp-opportunities-grid{grid-template-columns:1fr;justify-content:stretch}.sp-portal .sp-opportunity-card{width:100%}.sp-portal .sp-opportunity-inner{width:min(100%,var(--sp-poster-width,170px));margin:0 auto}.sp-portal .sp-summary{grid-template-columns:1fr}.sp-portal img.sp-cover,.sp-portal .sp-cover-placeholder{max-width:min(100%,var(--sp-poster-width,170px))!important}}

/* v0.2.2: uniform cards only in investment opportunities. */
.sp-portal .sp-opportunity-card{min-height:var(--sp-card-height,455px);height:auto;align-self:stretch}
.sp-portal .sp-opportunity-inner{flex:1;min-height:0}
.sp-portal .sp-opportunity-card .sp-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--sp-excerpt-lines,4);overflow:hidden;min-height:0;line-height:1.5;max-height:calc(var(--sp-excerpt-lines,4) * 1.5em)}
.sp-portal .sp-opportunity-card .sp-button,.sp-portal .sp-opportunity-card .sp-state{margin-top:auto}
.sp-portal .sp-opportunity-card form{margin-top:auto;padding-top:.85rem}
.sp-portal .sp-opportunity-card form .sp-button{margin-top:0}
.sp-portal .sp-opportunity-card h3 a{color:inherit!important;text-decoration:none}
.sp-portal .sp-opportunity-card h3 a:hover{text-decoration:underline}
.sp-portal .sp-poster-link{display:block;max-width:100%}
.sp-portal .sp-detail-layout{display:grid;grid-template-columns:minmax(160px,320px) minmax(0,1fr);gap:clamp(1.5rem,4vw,3rem);align-items:start}
.sp-portal .sp-detail-poster{display:block;width:100%;height:auto;object-fit:contain;border-radius:12px}
.sp-portal .sp-detail-main h2{font-size:clamp(2rem,4vw,3.4rem);margin:.25rem 0 1rem}
.sp-portal .sp-detail-main h3{margin:2rem 0 .65rem}
.sp-portal .sp-detail-eyebrow{font-size:.75rem;letter-spacing:.16em;color:var(--sp-muted)!important}
.sp-portal .sp-detail-investment{background:var(--sp-card);border:1px solid var(--sp-border);border-radius:12px;padding:1.2rem;margin:1.4rem 0}
.sp-portal .sp-detail-investment small{display:block;color:var(--sp-muted)}
.sp-portal .sp-detail-investment strong{display:block;font-size:1.7rem;color:var(--sp-text)}
.sp-portal .sp-detail-synopsis{line-height:1.75;overflow-wrap:anywhere;color:var(--sp-text)}
.sp-portal .sp-detail-back{color:var(--sp-muted)!important;text-decoration:none}
@media(max-width:767px){.sp-portal .sp-detail-layout{grid-template-columns:1fr}.sp-portal .sp-detail-art{max-width:260px}.sp-portal .sp-opportunity-card{min-height:var(--sp-card-height,455px)}}

.sp-portal .sp-card h3 a{color:var(--sp-text,#f5f5f5)!important;text-decoration:none}.sp-portal .sp-card h3 a:hover{text-decoration:underline}.sp-portal .sp-updates{margin-top:2rem;border-top:1px solid var(--sp-border,#3b3c40);padding-top:1rem}.sp-portal .sp-update{padding:1.1rem 0;border-bottom:1px solid var(--sp-border,#3b3c40)}.sp-portal .sp-update small{color:var(--sp-muted,#b5bdc8)}.sp-portal .sp-update h4{color:var(--sp-text,#f5f5f5);margin:.5rem 0;font-size:1.12rem}.sp-portal .sp-update div{color:var(--sp-muted,#b5bdc8)}


/* v0.3.1: redesigned investment preview cards */
.sp-portal .sp-investment-list{display:flex;flex-direction:column;gap:1.35rem}
.sp-portal .sp-investment-preview{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr) auto;gap:clamp(1rem,2vw,2.2rem);align-items:center;padding:1.35rem 1.5rem;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.sp-portal .sp-investment-poster-wrap{width:100%}
.sp-portal .sp-investment-poster-link{display:block;width:100%;text-decoration:none}
.sp-portal .sp-investment-poster{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:12px;background:rgba(255,255,255,.03)}
.sp-portal .sp-investment-main{min-width:0}
.sp-portal .sp-investment-main h3{font-size:clamp(1.4rem,2vw,2rem);margin:0 0 .45rem}
.sp-portal .sp-investment-main h3 a{color:var(--sp-text)!important;text-decoration:none}
.sp-portal .sp-investment-main h3 a:hover{text-decoration:underline}
.sp-portal .sp-investment-meta{margin:0 0 .55rem;color:var(--sp-muted)!important;font-size:.96rem;line-height:1.5}
.sp-portal .sp-dot{opacity:.45;padding:0 .35rem}
.sp-portal .sp-investment-finance{display:flex;flex-wrap:wrap;gap:1rem 2.5rem;margin-top:1.1rem}
.sp-portal .sp-investment-kpi small{display:block;color:var(--sp-muted)!important;margin-bottom:.35rem;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem}
.sp-portal .sp-investment-kpi strong{display:block;font-size:clamp(1.35rem,2.2vw,2.2rem);line-height:1.1;color:var(--sp-text)!important}
.sp-portal .sp-investment-actions{display:flex;justify-content:flex-end;align-items:center}
.sp-portal .sp-button-secondary{background:transparent!important;color:var(--sp-text)!important;border:1px solid var(--sp-border)!important;padding:.9rem 1.15rem;display:inline-flex;align-items:center;gap:.85rem}
.sp-portal .sp-button-secondary:before{content:'→';display:inline-grid;place-items:center;width:2rem;height:2rem;border-radius:8px;background:rgba(255,255,255,.08);font-size:1rem}
.sp-portal .sp-detail-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin:1.4rem 0}
@media(max-width:900px){.sp-portal .sp-investment-preview{grid-template-columns:120px minmax(0,1fr);}.sp-portal .sp-investment-actions{grid-column:1/-1;justify-content:flex-start}.sp-portal .sp-button-secondary{width:auto}}
@media(max-width:640px){.sp-portal .sp-investment-preview{grid-template-columns:1fr;gap:1rem;padding:1rem 0}.sp-portal .sp-investment-poster-wrap{max-width:220px}.sp-portal .sp-investment-finance{gap:.85rem 1.4rem}.sp-portal .sp-button-secondary{width:100%;justify-content:center}}

/* v0.3.2: horizontal cards and polished detail; isolated from opportunities */
.sp-portal .sp-investment-preview{grid-template-columns:minmax(110px,var(--sp-investment-poster-width,190px)) minmax(0,1fr) auto;gap:clamp(1.2rem,3vw,3rem);padding:1.35rem 0;border-color:var(--sp-border,#3b3c40)}
.sp-portal .sp-investment-poster{height:var(--sp-investment-poster-height,285px);aspect-ratio:auto;object-fit:contain;object-position:center;background:transparent;border-radius:9px}
.sp-portal .sp-investment-main h3{font-size:clamp(1.4rem,2.4vw,2.15rem)}
.sp-portal .sp-investment-meta{display:flex;align-items:center;gap:.6rem 1.1rem;flex-wrap:wrap}
.sp-portal .sp-meta-item{display:inline-flex;align-items:center;gap:.4rem;color:var(--sp-muted,#b5bdc8);font-size:.88rem}
.sp-portal .sp-meta-item .dashicons{color:var(--sp-accent,#d29ee2);font-size:17px;width:17px;height:17px}
.sp-portal .sp-investment-kpi strong{font-size:clamp(1.15rem,1.8vw,1.65rem)}
.sp-portal .sp-button-secondary{margin:0!important;border-radius:9px!important;white-space:nowrap;min-height:48px;text-decoration:none!important;transition:background .2s,border-color .2s}
.sp-portal .sp-button-secondary::before{background:var(--sp-accent,#d29ee2);color:#101010;width:31px;height:31px;font-weight:700}
.sp-portal .sp-button-secondary:hover{background:var(--sp-card)!important;border-color:var(--sp-accent)!important}
.sp-portal .sp-detail{padding:clamp(.25rem,1.5vw,1.5rem) 0}
.sp-portal .sp-detail-layout{grid-template-columns:minmax(170px,310px) minmax(0,1fr);gap:clamp(1.5rem,5vw,4rem)}
.sp-portal .sp-detail-poster{box-shadow:0 18px 44px rgba(0,0,0,.18)}
.sp-portal .sp-detail-main h2{letter-spacing:-.03em;line-height:1.08}
.sp-portal .sp-detail-stats{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.8rem;margin:1.6rem 0}
.sp-portal .sp-detail-investment{margin:0;padding:1.15rem;border-radius:12px;background:var(--sp-card,#202124)}
.sp-portal .sp-detail-investment strong{font-size:clamp(1.2rem,1.8vw,1.6rem);overflow-wrap:anywhere}
.sp-portal .sp-detail-synopsis{max-width:65ch}
.sp-portal .sp-investment-preview .sp-state{font-size:.87rem}
@media(max-width:900px){.sp-portal .sp-investment-preview{grid-template-columns:minmax(110px,var(--sp-investment-poster-width,190px)) minmax(0,1fr)}.sp-portal .sp-investment-actions{grid-column:2}}
@media(max-width:640px){.sp-portal .sp-investment-preview{grid-template-columns:minmax(100px,135px) minmax(0,1fr);gap:.85rem}.sp-portal .sp-investment-poster{height:200px}.sp-portal .sp-investment-actions{grid-column:1/-1}.sp-portal .sp-investment-main h3{font-size:1.2rem}.sp-portal .sp-investment-finance{gap:.7rem}.sp-portal .sp-investment-kpi strong{font-size:1.12rem}.sp-portal .sp-detail-layout{grid-template-columns:1fr}}

/* v0.3.3: fixed-width opportunities, even when the list contains a single item. */
.sp-portal .sp-cards.sp-opportunities-grid{
 display:grid!important;
 grid-template-columns:repeat(auto-fill,minmax(0,var(--sp-opportunity-card-width,222px)))!important;
 justify-content:start!important;
 align-items:stretch;
 gap:20px;
 width:100%;
}
.sp-portal .sp-opportunities-grid > .sp-card.sp-opportunity-card{
 width:100%!important; max-width:var(--sp-opportunity-card-width,222px)!important;
 min-width:0!important; margin:0!important;
 padding:14px!important;
}
.sp-portal .sp-opportunity-card .sp-opportunity-inner{width:100%!important;min-width:0}
.sp-portal .sp-opportunity-card .sp-poster-link,
.sp-portal .sp-opportunity-card img.sp-cover{width:100%!important;max-width:100%!important}
.sp-portal .sp-opportunity-card img.sp-cover{object-fit:contain!important;object-position:center!important}
.sp-portal .sp-opportunity-card .sp-button{max-width:100%;padding:.7rem .35rem!important;font-size:.76rem!important;white-space:normal}
.sp-portal .sp-update-image img{max-width:100%;width:auto;height:auto;max-height:480px;object-fit:contain;border-radius:10px;margin-top:12px}
@media(max-width:500px){
 .sp-portal .sp-cards.sp-opportunities-grid{grid-template-columns:repeat(auto-fill,minmax(0,min(100%,222px)))!important}
}

/* v0.3.4: logout in private pages, independent from Elementor and theme */
.sp-portal-logout{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 auto 22px;max-width:1200px;box-sizing:border-box;font-family:inherit}
.sp-portal-session-label{font-size:12px;color:#aab0b9}
.sp-portal-logout-button{display:inline-flex;align-items:center;gap:8px;background:transparent!important;border:1px solid #60636a!important;border-radius:9px;padding:10px 16px;color:#f5f5f5!important;font-size:13px;line-height:1.25;font-weight:600;text-decoration:none!important;transition:border-color .2s,background .2s}
.sp-portal-logout-button:hover,.sp-portal-logout-button:focus{background:#292a30!important;border-color:#f5b027!important;color:#fff!important}
@media(max-width:560px){.sp-portal-logout{justify-content:flex-start;flex-wrap:wrap}.sp-portal-session-label{display:none}}
