body.portal-page{
  min-height:100vh;
  background:
    radial-gradient(circle at 88% -4%,rgba(212,175,55,.15),transparent 25rem),
    radial-gradient(circle at -5% 48%,rgba(16,57,67,.08),transparent 30rem),
    linear-gradient(145deg,#f8f7f2,#eef2f3 58%,#f7f5ec);
}
.portal-shell{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:24px 0 34px}
.portal-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;padding:12px 14px;border:1px solid rgba(214,220,226,.82);border-radius:18px;background:rgba(255,255,255,.8);backdrop-filter:blur(16px);box-shadow:var(--shadow-sm)}
.portal-brand{display:flex;align-items:center;gap:12px;min-width:0}.portal-brand-mark{width:46px;height:46px;display:grid;place-items:center;flex:0 0 46px;border-radius:14px;background:linear-gradient(145deg,var(--gold-300),var(--gold-600));color:var(--brand-950);box-shadow:inset 0 0 0 1px rgba(255,255,255,.34)}.portal-brand-mark svg{width:28px;height:28px}.portal-brand-copy strong{display:block;font-size:12px;line-height:1.18;letter-spacing:.045em}.portal-brand-copy span{display:block;margin-top:3px;color:var(--ink-500);font-size:9px;letter-spacing:.08em;text-transform:uppercase}.portal-status{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:999px;background:var(--gold-100);color:var(--gold-700);font-size:9px;font-weight:850;white-space:nowrap}.portal-status:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--gold-600);box-shadow:0 0 0 4px rgba(184,134,11,.10)}
.portal-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:30px;align-items:end;padding:42px;border-radius:30px;background:linear-gradient(118deg,var(--brand-950),var(--brand-800));color:#fff;box-shadow:var(--shadow-lg)}
.portal-hero:before{content:"";position:absolute;width:420px;height:420px;right:-105px;top:-180px;border:1px solid rgba(234,210,123,.2);border-radius:50%;box-shadow:0 0 0 34px rgba(212,175,55,.055),0 0 0 70px rgba(212,175,55,.025)}
.portal-hero:after{content:"";position:absolute;inset:auto -9% -58% auto;width:460px;height:460px;background:radial-gradient(circle,rgba(212,175,55,.12),transparent 64%);pointer-events:none}
.portal-hero-copy,.portal-hero-side{position:relative;z-index:1}.portal-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--gold-300);font-size:9px;font-weight:900;letter-spacing:.15em;text-transform:uppercase}.portal-kicker:before{content:"";width:28px;height:1px;background:currentColor}.portal-hero h1{max-width:780px;margin:13px 0 14px;font-size:clamp(34px,5vw,62px);line-height:.99;letter-spacing:-.055em}.portal-hero p{max-width:720px;margin:0;color:rgba(255,255,255,.72);font-size:13px;line-height:1.72}.portal-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}.portal-pill{padding:7px 9px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.06);color:rgba(255,255,255,.8);font-size:9px;font-weight:750}.portal-hero-side{display:grid;gap:10px}.portal-summary-card{padding:16px;border:1px solid rgba(255,255,255,.12);border-radius:17px;background:rgba(255,255,255,.075);backdrop-filter:blur(10px)}.portal-summary-card span{display:block;color:var(--gold-300);font-size:8px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}.portal-summary-card strong{display:block;margin-top:7px;font-size:13px;line-height:1.35}.portal-summary-card p{margin-top:6px;font-size:10px;line-height:1.55;color:rgba(255,255,255,.62)}
.portal-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:26px 2px 12px}.portal-section-head span{display:block;color:var(--gold-700);font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.portal-section-head h2{margin:5px 0 0;font-size:clamp(22px,3vw,30px);letter-spacing:-.035em}.portal-section-head p{max-width:500px;margin:0;color:var(--ink-600);font-size:11px;line-height:1.55;text-align:right}
.portal-gates{display:grid;grid-template-columns:1fr 1fr;gap:14px}.portal-gate{position:relative;overflow:hidden;display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:14px;align-items:center;padding:21px;border:1px solid var(--line);border-radius:21px;background:rgba(255,255,255,.92);text-decoration:none;box-shadow:var(--shadow-sm);transition:transform .18s var(--ease),border-color .18s var(--ease),box-shadow .18s var(--ease)}.portal-gate:hover{transform:translateY(-2px);border-color:#d8c36f;box-shadow:var(--shadow-md)}.portal-gate-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:var(--brand-100);color:var(--brand-800);font-size:21px;font-weight:900}.portal-gate.jemaah .portal-gate-icon{background:var(--gold-100);color:var(--gold-700)}.portal-gate small{display:block;color:var(--gold-700);font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.portal-gate h3{margin:5px 0 5px;font-size:18px}.portal-gate p{margin:0;color:var(--ink-600);font-size:10px;line-height:1.55}.portal-gate-arrow{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--surface-soft);color:var(--brand-800);font-size:17px}
.portal-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.portal-feature{padding:18px}.portal-feature-number{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--gold-100);color:var(--gold-700);font-size:9px;font-weight:900}.portal-feature h3{margin:13px 0 6px;font-size:13px}.portal-feature p{margin:0;color:var(--ink-600);font-size:10px;line-height:1.55}
.portal-identity{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;margin-top:12px}.portal-identity-main{padding:20px}.portal-identity-main h2{margin:0;font-size:16px}.portal-identity-main>p{margin:7px 0 16px;color:var(--ink-600);font-size:10px;line-height:1.55}.identity-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.identity-item{padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--surface-soft)}.identity-item span{display:block;color:var(--ink-500);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.identity-item strong{display:block;margin-top:5px;font-size:11px;line-height:1.35}.portal-tech{padding:20px;background:linear-gradient(145deg,var(--brand-900),var(--brand-950));color:#fff;border-color:transparent}.portal-tech span{display:block;color:var(--gold-300);font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.portal-tech strong{display:block;margin:8px 0 4px;font-size:17px}.portal-tech p{margin:0;color:rgba(255,255,255,.64);font-size:10px;line-height:1.55}.portal-tech a{display:inline-flex;margin-top:14px;color:var(--gold-300);font-size:10px;font-weight:800;text-decoration:none}.portal-note{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:13px 15px;border:1px dashed #d8c46d;border-radius:14px;background:#fffaf0;color:#705600;font-size:9px;line-height:1.55}.portal-note strong{white-space:nowrap}.portal-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 2px 0;color:var(--ink-500);font-size:9px}.portal-footer strong{color:var(--ink-800)}
@media(max-width:900px){.portal-shell{width:min(100% - 28px,1180px)}.portal-hero{grid-template-columns:1fr;padding:32px}.portal-hero-side{grid-template-columns:1fr 1fr}.portal-section-head{align-items:flex-start}.portal-section-head p{text-align:left}.portal-identity{grid-template-columns:1fr}.portal-tech{display:grid;grid-template-columns:1fr auto;align-items:center}.portal-tech a{margin-top:0}}
@media(max-width:680px){.portal-shell{width:min(100% - 20px,1180px);padding-top:10px}.portal-topbar{padding:10px}.portal-status{font-size:8px}.portal-brand-copy strong{font-size:11px}.portal-hero{padding:26px 20px;border-radius:23px}.portal-hero h1{font-size:36px}.portal-hero-side,.portal-gates,.portal-feature-grid,.identity-list{grid-template-columns:1fr}.portal-section-head{display:block;margin-top:21px}.portal-section-head p{margin-top:7px}.portal-gate{grid-template-columns:44px 1fr auto;padding:16px}.portal-gate-icon{width:44px;height:44px}.portal-identity-main,.portal-tech{padding:16px}.portal-tech{display:block}.portal-tech a{margin-top:12px}.portal-footer{display:block;line-height:1.7}.portal-note{display:block}.portal-note strong{display:block;margin-bottom:3px}}
@media(max-width:420px){.portal-status{display:none}.portal-hero h1{font-size:32px}.portal-gate{grid-template-columns:42px 1fr}.portal-gate-arrow{display:none}.portal-pills{gap:5px}.portal-pill{font-size:8px}}

.portal-feature-link{text-decoration:none;transition:transform .18s var(--ease),border-color .18s var(--ease),box-shadow .18s var(--ease)}.portal-feature-link:hover{transform:translateY(-2px);border-color:#d8c36f;box-shadow:var(--shadow-md)}.portal-feature-cta{display:inline-flex;margin-top:12px;color:var(--gold-700);font-size:9px;font-weight:900}

/* Visual Asset System V1 integration */
.portal-gate-icon .ui-icon{width:1.25rem;height:1.25rem}
.portal-feature-number .ui-icon{width:1.15rem;height:1.15rem}
.identity-item>.visual-chip{margin-right:.7rem}
.identity-item{display:flex;align-items:center;gap:.2rem;flex-wrap:wrap}
.identity-item>span:not(.visual-chip),.identity-item>strong{min-width:0}
.portal-tech>.visual-chip{margin-bottom:.8rem}
/* Keep identity pictograms aligned with existing portal typography rules. */
.identity-item{display:grid;grid-template-columns:2.4rem minmax(0,1fr);grid-template-rows:auto auto;column-gap:.7rem;align-items:center}
.identity-item>.visual-chip{grid-column:1;grid-row:1/3;display:inline-flex;margin:0}
.identity-item>span:not(.visual-chip){grid-column:2;grid-row:1}
.identity-item>strong{grid-column:2;grid-row:2}
.portal-tech>.visual-chip{display:inline-flex;margin:0 0 .8rem;color:var(--gold-300)}
.portal-tech>.visual-chip .ui-icon{display:inline-block;width:1.15em;height:1.15em}


/* V3.9.0 Step 5B — optional Portal public media */
.portal-media{margin:14px 0 0;padding:7px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-sm);overflow:hidden}.portal-media[hidden]{display:none!important}.portal-media img{display:block;width:100%;height:auto;max-height:640px;object-fit:cover;border-radius:14px;background:var(--surface-soft)}.portal-media figcaption{padding:8px 8px 2px;color:var(--ink-500);font-size:9px;line-height:1.5;text-align:center}@media(max-width:680px){.portal-media{padding:5px;border-radius:16px}.portal-media img{border-radius:11px}}
