.portal-help {
    --help-ink: #273238;
    --help-link: #006879;
    --help-rule: #dce4e7;
    color: var(--help-ink);
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.portal-help-header {
    max-width: 820px;
    margin-bottom: 32px;
}

.portal-help h1 {
    font-size: 32px;
    line-height: 1.3;
    font-weight: 500;
}

.portal-help h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 500;
}

.portal-help h3 {
    margin: 24px 0 10px;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 500;
}

.portal-help p,
.portal-help li,
.portal-help dd {
    font-size: inherit;
    line-height: inherit;
}

.portal-help a:not(.btn) {
    color: var(--help-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.portal-help a:focus-visible {
    outline: 2px solid var(--help-link);
    outline-offset: 4px;
}

.portal-help-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px;
    border-top: 1px solid var(--help-rule);
    padding-top: 28px;
}

.portal-help-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 4px 8px;
}

.portal-help-toc h2 { font-size: 18px; }
.portal-help ol,
.portal-help ul { padding-left: 24px; }
.portal-help li { margin-bottom: 10px; padding-left: 3px; }
.portal-help section,
.portal-help-toc { scroll-margin-top: 100px; }

.portal-help section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--help-rule);
}

.portal-help-note {
    padding: 12px 16px;
    border-left: 3px solid var(--help-link);
    background: #f0f6f7;
    margin: 20px 0;
}

.portal-help dd { margin-bottom: 16px; }
.portal-help .btn { max-width: 100%; white-space: normal; }

@media (max-width: 991px) {
    .portal-help-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .portal-help-toc { position: static; max-height: none; }
}

@media print {
    .navbar,
    .wrapper > .header,
    .footer,
    .portal-help-toc,
    .portal-help-back,
    .portal-help .btn { display: none !important; }
    .main.main-raised { margin: 0; box-shadow: none; }
    .section { padding: 0; }
    .container { width: auto; }
    .portal-help { font-size: 11pt; color: #000; }
    .portal-help-layout { display: block; border: 0; padding: 0; }
    .portal-help section { margin-bottom: 16px; padding-bottom: 12px; }
    .portal-help h2,
    .portal-help h3 { break-after: avoid; }
    .portal-help li,
    .portal-help-note { break-inside: avoid; }
    .portal-help a[href]:after { content: none; }
}