.portal-page-flow { min-width: 0; }
.portal-page-flow > .portal-layout { gap: 20px; }
.portal-page-flow .portal-main,
.portal-full-sections { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.portal-full-sections { margin-top: 20px; }
.portal-module { min-width: 0; padding: 24px; background: #fff; border: 1px solid #e1e9f4; border-radius: 18px; box-shadow: 0 5px 20px #243f6a05; }
.portal-module > :first-child,
.portal-module > :first-child > .section-head:first-child { margin-top: 0; }
.portal-module > :last-child { margin-bottom: 0; }
.portal-module .section-head { margin: 0 0 20px; gap: 12px; }
.portal-module .section-head h2 { font-size: 22px; line-height: 1.5; color: #1b2d47; }
.portal-module .section-head .more { white-space: nowrap; font-size: 13px; }
.portal-module-hero { padding: 0; border: 0; background: none; box-shadow: none; }
.portal-module-hero .hero-v2 { border: 1px solid #dce8f6; border-radius: 18px; }
.portal-module-hero .announcement { margin: 14px 0 0; }
.portal-module .portal-feed { margin: 0; }
.portal-module .topics { gap: 12px; }
.portal-module .topic { padding: 15px 14px; border: 1px solid #e6edf6; box-shadow: none; background: #f9fbfe; border-radius: 12px; }
.portal-module .topic strong { font-size: 15px; color: #304c6a; }
.portal-module .topic:hover { background: #eef5ff; border-color: #b6d3fb; }
.portal-module .card { box-shadow: none; border: 1px solid #e2eaf4; border-radius: 12px; }
.portal-module .card h3 { color: #233850; font-size: 16px; line-height: 1.6; }
.portal-module .card p { color: #536780; font-size: 14px; line-height: 1.8; }
.portal-module .portal-feed-posts { padding: 0; border: 0; box-shadow: none; }
.portal-module .post-row { padding-block: 20px; }
.portal-module .creator-controls { margin-top: -4px; }
.portal-full-sections .st-resource-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-page-flow .portal-layout > .widget-zone { max-height: var(--portal-side-limit, none); overflow: auto; scrollbar-width: thin; scrollbar-color: #c7d8ef transparent; }
.portal-page-flow .portal-sticky > .widget-zone { position: sticky; top: var(--portal-side-top, 92px); height: auto; align-self: start; }
.portal-page-flow .widget-stack { gap: 16px; }
.portal-side-scrollhint { position: sticky; bottom: 0; display: block; width: 100%; height: 40px; margin-top: -40px; padding: 12px 6px 6px; color: #3164a3; font-size: 12px; font-weight: 600; background: linear-gradient(transparent, #fff 35%); border: 0; visibility: hidden; }
.portal-side-scrollhint.is-needed { visibility: visible; }
.portal-page-flow .sidebar-card { flex-shrink: 0; background: #fff; border-color: #e0e9f4; box-shadow: 0 4px 18px #243f6a04; border-radius: 16px; }
.portal-page-flow .sidebar-card-heading h3 { font-size: 15px; color: #263d59; }
.portal-page-flow .sidebar-card-intro { font-size: 13px; line-height: 1.7; color: #5b7089; }
.portal-page-flow .widget-text-body { font-size: 14px; color: #50667e; }
.portal-page-flow .member-kicker,
.portal-page-flow .member-cover-word { font-size: 9px; }
.portal-page-flow .member-card-note { white-space: normal; }
.portal-module:has(> .mod-dark) { background: #1d344d; }
.portal-module > .mod { margin: 0; }
.portal-module > .mod-dark .section-head h2 { color: #fff; }
.portal-flow-settings { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid #e2eaf4; }
.portal-flow-settings h4 { margin: 0 0 12px; font-size: 14px; color: #263d59; }
.portal-flow-settings label { display: block; font-size: 13px; color: #526780; margin: 12px 0 6px; }
.portal-flow-settings select { width: 100%; min-height: 40px; padding: 9px 10px; font: inherit; font-size: 13px; color: #233850; border: 1px solid #cddbea; background: #fff; border-radius: 9px; }
.portal-flow-settings select:disabled { background: #f1f5fa; color: #75859a; }
.portal-flow-settings p { font-size: 12px; line-height: 1.8; color: #5c7087; margin: 10px 0 0; }
@media (max-width: 1100px) {
    .portal-module { padding: 20px; }
    .portal-module-hero { padding: 0; }
    .portal-full-sections .st-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .portal-page-flow .portal-main,
    .portal-full-sections { gap: 16px; }
    .portal-full-sections { margin-top: 16px; }
    .portal-page-flow .portal-layout > .widget-zone { position: static; height: auto; max-height: none; overflow: visible; }
    .portal-module { padding: 18px; border-radius: 15px; }
    .portal-module-hero { padding: 0; }
    .portal-module .section-head h2 { font-size: 20px; }
}
@media (max-width: 540px) {
    .portal-full-sections .st-resource-grid { grid-template-columns: 1fr; }
    .portal-module .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .portal-module .topic { padding: 12px 10px; gap: 8px; }
    .portal-module .topic strong { font-size: 14px; }
    .portal-module .section-head { flex-wrap: wrap; }
}
