:root {
    --portal-white: #ffffff;
    --portal-black: #111111;
    --portal-text: #1f1f1f;
    --portal-muted: #62666b;
    --portal-light: #f5f5f5;
    --portal-line: #e7e7e7;
    --portal-line-strong: #111111;
    --portal-accent: #b3261e;
    --portal-header-text-size: 0.95rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    background: var(--portal-white);
    color: var(--portal-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.01rem;
    letter-spacing: 0;
}

a,
button {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--portal-black);
    outline-offset: 3px;
}

.portal-skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1100;
    padding: 0.55rem 0.85rem;
    background: var(--portal-black);
    color: var(--portal-white);
    transform: translateY(-150%);
}

.portal-skip-link:focus {
    transform: translateY(0);
}

.portal-shell {
    min-width: 0;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding-right: clamp(1rem, 2.4vw, 2rem);
    padding-left: clamp(1rem, 2.4vw, 2rem);
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--portal-white);
    border-bottom: 1px solid var(--portal-line-strong);
}

.portal-header-shell {
    width: 100%;
    max-width: 100%;
    min-height: 4.75rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 1.25rem;
}

.portal-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    color: var(--portal-black);
    text-decoration: none;
}

.portal-logo:hover {
    color: var(--portal-black);
}

.portal-logo-mark {
    position: relative;
    width: 2rem;
    height: 2.4rem;
    flex: 0 0 auto;
    border-top: 3px solid var(--portal-black);
    border-bottom: 3px solid var(--portal-black);
    border-left: 3px solid var(--portal-black);
}

.portal-logo-mark::before,
.portal-logo-mark::after {
    content: "";
    position: absolute;
    right: 0;
    width: 0.72rem;
    border-top: 3px solid var(--portal-black);
}

.portal-logo-mark::before {
    top: -3px;
}

.portal-logo-mark::after {
    bottom: -3px;
}

.portal-logo-text {
    display: flex;
    flex-direction: column;
    color: var(--portal-black);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.05;
}

.portal-primary-nav {
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    gap: 0.15rem;
}

.portal-primary-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 0.65rem;
    border: 0;
    background: transparent;
    color: var(--portal-text);
    font-size: var(--portal-header-text-size);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.portal-primary-link:hover,
.portal-primary-link:focus-visible {
    background: var(--portal-light);
    color: var(--portal-black);
}

.portal-primary-link.is-active::after {
    content: "";
    position: absolute;
    right: 0.62rem;
    bottom: 0;
    left: 0.62rem;
    border-bottom: 3px solid var(--portal-black);
}

.portal-header-actions {
    align-items: center;
    gap: 0.75rem;
}

.portal-header-search-form {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) auto;
    align-items: center;
    gap: 0.45rem;
}

.portal-header-search-form input {
    min-width: 0;
    height: 2.75rem;
    padding: 0 0.85rem;
    border: 1px solid var(--portal-line);
    border-radius: 0;
    background: var(--portal-white);
    color: var(--portal-black);
    font-size: 0.9rem;
}

.portal-header-search-form input:focus {
    border-color: var(--portal-black);
    outline: 0;
}

.portal-header-search-form button {
    height: 2.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0.9rem;
    border: 1px solid var(--portal-black);
    border-radius: 0;
    background: var(--portal-black);
    color: var(--portal-white);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.portal-header-search-form button:hover,
.portal-header-search-form button:focus-visible {
    background: #2a2a2a;
}

.portal-icon-button,
.portal-menu-button {
    min-height: 2.75rem;
    border: 1px solid var(--portal-line);
    border-radius: 0;
    background: var(--portal-white);
    color: var(--portal-black);
}

.portal-icon-button {
    width: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.portal-user-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 0.15rem 0 0.55rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--portal-black);
    font-size: var(--portal-header-text-size);
    font-weight: 800;
    text-decoration: none;
}

.portal-icon-button:hover,
.portal-user-button:hover,
.portal-menu-button:hover {
    background: var(--portal-light);
}

.portal-user-button-quiet {
    box-shadow: none;
}

.portal-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: center;
    padding: 0 0.85rem;
    font-size: 0.86rem;
    font-weight: 800;
}

.portal-user-menu {
    min-width: 16rem;
    padding: 0.45rem 0;
    border: 1px solid var(--portal-line-strong);
    border-radius: 0;
    box-shadow: none;
}

.portal-user-menu-head {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--portal-line);
}

.portal-user-menu-head strong,
.portal-user-menu-head span {
    display: block;
}

.portal-user-menu-head span {
    margin-top: 0.2rem;
    color: var(--portal-muted);
    font-size: 0.82rem;
}

.portal-user-menu .dropdown-item {
    padding: 0.52rem 1rem;
    font-size: 0.9rem;
}

.portal-user-menu .dropdown-divider {
    border-color: var(--portal-line);
}

.portal-offcanvas {
    border-left: 1px solid var(--portal-line-strong);
    border-radius: 0;
}

.portal-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--portal-line-strong);
}

.portal-close-button {
    border-radius: 0;
}

.portal-mobile-nav,
.portal-mobile-actions {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--portal-line);
}

.portal-mobile-link,
.portal-mobile-actions a,
.portal-mobile-actions button {
    min-height: 3.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding: 0.72rem 0;
    border: 0;
    border-bottom: 1px solid var(--portal-line);
    background: transparent;
    color: var(--portal-black);
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.portal-mobile-link span {
    color: var(--portal-muted);
    font-size: 0.78rem;
}

.portal-mobile-user {
    padding: 1.1rem 0;
}

.portal-mobile-user strong,
.portal-mobile-user span {
    display: block;
}

.portal-mobile-user span {
    margin-top: 0.2rem;
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.portal-main {
    min-width: 0;
    background: var(--portal-white);
}

.portal-messages {
    border-bottom: 1px solid var(--portal-line);
    background: var(--portal-white);
}

.portal-message {
    margin: 0.85rem 0;
    padding: 0.75rem 0.9rem;
    border-left: 4px solid var(--portal-black);
    background: var(--portal-light);
    color: var(--portal-black);
    font-weight: 800;
}

.portal-message-error {
    border-left-color: var(--portal-accent);
}

.portal-hero {
    margin-top: 0;
}

.portal-important {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.portal-section {
    margin-top: clamp(2rem, 3vw, 2.75rem);
}

.portal-hero-grid,
.portal-two-column,
.portal-lower-top {
    max-width: 100%;
}

.portal-hero-title-wrap {
    min-height: 20rem;
    height: 100%;
    display: flex;
    align-items: center;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 4vw, 3rem);
    background: var(--portal-black);
}

.portal-hero h1 {
    max-width: none;
    margin: 0;
    color: var(--portal-white);
    font-size: clamp(2.15rem, 2.4vw, 2.75rem);
    font-weight: 850;
    line-height: 1.08;
    overflow-wrap: normal;
}

.portal-hero-image,
.portal-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 20rem;
    object-fit: cover;
    background: var(--portal-light);
}

.portal-important-feature-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 0 0.9rem;
    color: var(--portal-black);
}

.portal-important-feature-head h2 {
    margin: 0;
    font-size: 1.48rem;
    font-weight: 850;
}

.portal-important-feature-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.1rem 0.5rem;
    background: var(--portal-accent);
    color: var(--portal-white);
    font-size: 0.76rem;
    font-weight: 850;
}

.portal-important-feature-count {
    margin-left: auto;
    color: var(--portal-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.portal-important-list {
    background: var(--portal-white);
    border-left: 4px solid var(--portal-accent);
    border-top: 1px solid var(--portal-line);
}

.portal-important-link {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.85rem 1rem;
    padding: 1.05rem 1.1rem;
    border-bottom: 1px solid var(--portal-line);
    color: var(--portal-black);
    text-align: left;
    text-decoration: none;
}

.portal-important-link:last-child {
    border-bottom: 0;
}

.portal-important-link:hover,
.portal-important-link:focus-visible {
    background: var(--portal-light);
}

.portal-section-head,
.portal-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 1rem;
}

.portal-section-head h2,
.portal-panel-head h2,
.portal-panel-head h3 {
    margin: 0;
    color: var(--portal-black);
    font-weight: 850;
}

.portal-section-head h2 {
    font-size: 1.46rem;
}

.portal-panel-head {
    padding: 0.68rem 0.95rem;
}

.portal-panel-head h2,
.portal-panel-head h3 {
    font-size: 1.08rem;
}

.portal-panel-head-dark {
    background: var(--portal-black);
    color: var(--portal-white);
}

.portal-panel-head-dark h2,
.portal-panel-head-dark h3,
.portal-panel-head-dark .portal-text-link {
    color: var(--portal-white);
}

.portal-panel-head-dark .portal-text-link {
    opacity: 0.86;
}

.portal-panel-head-dark .portal-text-link:hover,
.portal-panel-head-dark .portal-text-link:focus-visible {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

.portal-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    color: var(--portal-black);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.portal-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}

.portal-black-label,
.portal-muted-label,
.portal-row-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 800;
}

.portal-black-label {
    background: var(--portal-black);
    color: var(--portal-white);
}

.portal-muted-label,
.portal-row-meta span {
    border: 1px solid var(--portal-line);
    color: var(--portal-muted);
}

.portal-accent-label {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.05rem 0.42rem;
    background: var(--portal-accent);
    color: var(--portal-white);
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1;
}

.portal-new-label {
    display: inline-flex;
    align-items: center;
    min-height: 1.22rem;
    margin-right: 0.38rem;
    padding: 0.02rem 0.34rem;
    background: var(--portal-accent);
    color: var(--portal-white);
    font-size: 0.66rem;
    font-weight: 850;
    line-height: 1;
    vertical-align: 0.14rem;
}

.portal-soft-label {
    border: 0 !important;
    padding: 0 !important;
    color: var(--portal-muted);
    font-weight: 700;
}

.portal-muted,
.portal-row-meta time {
    color: var(--portal-muted);
}

.portal-important-title {
    display: block;
    min-width: 0;
    font-weight: 800;
    font-size: 1.03rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.portal-important-main {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.portal-category-scroll-wrap {
    position: relative;
}

.portal-category-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--portal-muted) var(--portal-light);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.portal-category-scroll-button {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.88);
    color: var(--portal-black);
}

.portal-category-scroll-button-prev {
    left: 0;
}

.portal-category-scroll-button-next {
    right: 0;
}

.portal-category-scroll-button:hover,
.portal-category-scroll-button:focus-visible {
    background: var(--portal-white);
    border-color: var(--portal-black);
}

.portal-category-track {
    min-width: 100%;
    display: flex;
    gap: 1px;
    background: transparent;
}

.portal-category-item {
    flex: 1 0 11.5rem;
    min-width: 0;
    min-height: 9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0.9rem;
    border: 1px solid var(--portal-line);
    background: var(--portal-white);
    color: var(--portal-black);
    text-align: center;
    text-decoration: none;
    scroll-snap-align: start;
}

.portal-category-item:hover {
    background: var(--portal-light);
}

.portal-category-item i {
    font-size: 1.85rem;
    line-height: 1;
}

.portal-category-item span {
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.portal-panel {
    min-width: 0;
    background: var(--portal-white);
}

.portal-two-column,
.portal-lower-top {
    --bs-gutter-x: clamp(1rem, 2vw, 1.5rem);
    --bs-gutter-y: clamp(1rem, 2vw, 1.5rem);
}

.portal-row {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--portal-line);
    color: var(--portal-black);
    text-decoration: none;
}

.portal-row:hover,
.portal-row:focus-visible {
    background: var(--portal-light);
}

.portal-row:last-child {
    border-bottom: 0;
}

.portal-row h3,
.portal-row h4 {
    margin: 0;
    color: var(--portal-black);
    font-size: 1.03rem;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.portal-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.32rem;
    color: var(--portal-muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.portal-empty {
    padding: 1.6rem 1.15rem;
    color: var(--portal-muted);
}

.portal-placeholder {
    min-height: 7.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem;
    color: var(--portal-muted);
}

.portal-shortcut-panel {
    margin-top: clamp(0.85rem, 1.6vw, 1.2rem);
}

.portal-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--portal-line);
}

.portal-shortcut-card {
    position: relative;
    min-width: 0;
    min-height: 9.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.62rem;
    padding: 1.15rem 0.9rem;
    background: var(--portal-white);
    color: var(--portal-black);
    text-align: center;
    text-decoration: none;
}

.portal-shortcut-card:hover,
.portal-shortcut-card:focus-visible {
    background: var(--portal-light);
}

.portal-shortcut-card--default {
    background: var(--portal-white);
}

.portal-shortcut-card--accent {
    background: #fff0ef;
}

.portal-shortcut-card--info {
    background: #edf5fb;
}

.portal-shortcut-card--support {
    background: #eef8f1;
}

.portal-shortcut-card--warning {
    background: #fff8df;
}

.portal-shortcut-card--default:hover,
.portal-shortcut-card--default:focus-visible {
    background: var(--portal-light);
}

.portal-shortcut-card--accent:hover,
.portal-shortcut-card--accent:focus-visible {
    background: #ffe3e0;
}

.portal-shortcut-card--info:hover,
.portal-shortcut-card--info:focus-visible {
    background: #dfeefa;
}

.portal-shortcut-card--support:hover,
.portal-shortcut-card--support:focus-visible {
    background: #e0f2e6;
}

.portal-shortcut-card--warning:hover,
.portal-shortcut-card--warning:focus-visible {
    background: #ffefbd;
}

.portal-shortcut-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    color: var(--portal-black);
    font-size: 1.55rem;
}

.portal-shortcut-card-title {
    min-width: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.portal-shortcut-card-description {
    min-width: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--portal-muted);
    font-size: 0.83rem;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.portal-shortcut-card-mark {
    position: absolute;
    top: 0.6rem;
    right: 0.65rem;
    color: var(--portal-muted);
    font-size: 0.82rem;
    line-height: 1;
}

.portal-utility-rail {
    position: fixed;
    z-index: 1010;
    top: var(--portal-home-header-height, 4.75rem);
    right: 0;
    bottom: 0;
    width: 260px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 1px solid var(--portal-line-strong);
    background: var(--portal-white);
    box-shadow: -0.4rem 0 1.4rem rgb(0 0 0 / 12%);
    transition: transform 180ms ease, visibility 180ms;
}

.portal-utility-head {
    display: flex;
    justify-content: flex-end;
    min-height: calc(1.25rem + 88px);
    padding-top: 1.25rem;
}

.portal-utility-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 88px;
    border: 1px solid var(--portal-line-strong);
    border-right: 0;
    border-radius: 0.35rem 0 0 0.35rem;
    background: var(--portal-white);
    box-shadow: -0.25rem 0 0.8rem rgb(0 0 0 / 10%);
    font-size: 1.15rem;
    cursor: pointer;
}

.portal-utility-section {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--portal-line);
}

.portal-utility-section h2 {
    margin: 0 0 0.75rem;
    color: var(--portal-black);
    font-size: 0.94rem;
    font-weight: 800;
}

.portal-utility-placeholder,
.portal-utility-empty {
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.portal-utility-links {
    display: grid;
    gap: 0.25rem;
}

.portal-utility-link {
    min-width: 0;
    display: grid;
    grid-template-columns: 1.3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.45rem;
    color: var(--portal-black);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.portal-utility-link:hover,
.portal-utility-link:focus-visible {
    color: var(--portal-black);
}

.portal-utility-link > .bi:first-child {
    font-size: 1.05rem;
    text-align: center;
}

.portal-utility-external {
    color: var(--portal-muted);
    font-size: 0.72rem;
}

.portal-utility-edge {
    position: fixed;
    z-index: 1010;
    top: calc(var(--portal-home-header-height, 4.75rem) + 1.25rem);
    right: 0;
    width: 40px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--portal-line-strong);
    border-right: 0;
    border-radius: 0.35rem 0 0 0.35rem;
    background: var(--portal-white);
    box-shadow: -0.25rem 0 0.8rem rgb(0 0 0 / 10%);
    font-size: 1.15rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.portal-home-utility[data-state="closed"] .portal-utility-rail {
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
}

.portal-home-utility[data-state="closed"] .portal-utility-edge {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 1199.98px) {
    .portal-home-utility {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-utility-rail {
        transition: none;
    }
}

.portal-page-shell {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: 3rem;
}

.portal-page-heading {
    padding-bottom: 1.1rem;
}

.portal-page-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem 1rem;
}

.portal-page-title-row h1 {
    min-width: 0;
    flex: 1 1 18rem;
    overflow-wrap: anywhere;
}

.portal-public-edit-button {
    flex: 0 0 auto;
}

.portal-content-grid {
    display: grid;
    grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.portal-side-nav,
.portal-search-block {
    border-top: 1px solid var(--portal-line);
}

.portal-side-nav a,
.portal-search-item {
    display: block;
    padding: 0.82rem 0.85rem;
    border-bottom: 1px solid var(--portal-line);
    color: var(--portal-black);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.portal-side-nav a:hover,
.portal-search-item:hover {
    background: var(--portal-light);
}

.portal-side-nav .is-current {
    background: var(--portal-black);
    color: var(--portal-white);
}

.portal-child-link {
    padding-left: 1.55rem !important;
}

.portal-content-main {
    min-width: 0;
}

.portal-body {
    line-height: 1.85;
    max-width: 52rem;
}

.portal-rich-content {
    display: flow-root;
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: anywhere;
    isolation: isolate;
}

.portal-rich-content > *:first-child {
    margin-top: 0;
}

.portal-rich-content h2,
.portal-rich-content h3,
.portal-rich-content h4,
.portal-rich-content h5,
.portal-rich-content h6 {
    margin: 1.8em 0 0.7em;
    color: var(--portal-black);
    font-weight: 850;
    line-height: 1.35;
}

.portal-rich-content h2 {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--portal-line);
    font-size: 1.55rem;
}

.portal-rich-content h3 {
    font-size: 1.3rem;
}

.portal-rich-content h4 {
    font-size: 1.12rem;
}

.portal-rich-content h5 {
    font-size: 1rem;
}

.portal-rich-content h6 {
    font-size: 0.9rem;
}

.portal-rich-content p,
.portal-rich-content ul,
.portal-rich-content ol,
.portal-rich-content dl,
.portal-rich-content blockquote,
.portal-rich-content pre,
.portal-rich-content figure,
.portal-rich-content details,
.portal-rich-content table {
    margin-bottom: 1rem;
}

.portal-rich-content ul,
.portal-rich-content ol {
    padding-left: 1.4rem;
}

.portal-rich-content blockquote {
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--portal-line-strong);
    background: var(--portal-light);
}

.portal-rich-content dt,
.portal-rich-content summary {
    font-weight: 850;
}

.portal-rich-content dd {
    margin-left: 1.4rem;
}

.portal-rich-content figure {
    max-width: 100%;
}

.portal-rich-content figcaption {
    margin-top: 0.45rem;
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.portal-rich-content summary {
    cursor: pointer;
}

.portal-rich-content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem;
    background: var(--portal-light);
}

.portal-rich-content code {
    padding: 0.08rem 0.2rem;
    background: var(--portal-light);
}

.portal-rich-content img,
.portal-rich-content video {
    display: block;
    max-width: 100%;
    height: auto;
}

.portal-rich-content table {
    width: 100%;
    border-collapse: collapse;
}

.portal-rich-content th,
.portal-rich-content td {
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--portal-line);
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.portal-rich-content th {
    background: var(--portal-light);
    font-weight: 850;
}

.portal-rich-content hr {
    margin: 1.6rem 0;
    border: 0;
    border-top: 1px solid var(--portal-line);
}

.portal-rich-content a {
    color: var(--portal-black);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.22rem;
}

.portal-preview-banner {
    margin-bottom: 1.2rem;
    padding: 0.8rem 1rem;
    background: var(--portal-black);
    color: var(--portal-white);
    font-weight: 850;
}

.portal-preview-banner-error {
    background: var(--portal-accent);
}

.portal-manage-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.portal-manage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--portal-line-strong);
}

.portal-manage-tabs a {
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-bottom: 0;
    color: var(--portal-black);
    font-weight: 850;
    text-decoration: none;
}

.portal-manage-tabs a:hover,
.portal-manage-tabs a:focus-visible {
    background: var(--portal-light);
}

.portal-manage-tabs .is-active {
    background: var(--portal-black);
    color: var(--portal-white);
}

.portal-manage-head h1 {
    margin: 0;
    color: var(--portal-black);
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    font-weight: 850;
    line-height: 1.25;
}

.portal-manage-kicker {
    margin: 0 0 0.28rem;
    color: var(--portal-muted);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
}

.portal-manage-button {
    min-height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border: 1px solid var(--portal-black);
    border-radius: 0;
    background: var(--portal-black);
    color: var(--portal-white);
    font-weight: 850;
    text-decoration: none;
}

.portal-manage-button:hover,
.portal-manage-button:focus-visible {
    background: #2a2a2a;
    color: var(--portal-white);
}

.portal-manage-button-secondary {
    background: var(--portal-white);
    color: var(--portal-black);
}

.portal-manage-button-secondary:hover,
.portal-manage-button-secondary:focus-visible {
    background: var(--portal-light);
    color: var(--portal-black);
}

.portal-manage-button-link {
    background: transparent;
    color: var(--portal-black);
}

.portal-manage-button-link:hover,
.portal-manage-button-link:focus-visible {
    background: var(--portal-light);
    color: var(--portal-black);
}

.portal-manage-filter {
    display: grid;
    grid-template-columns: minmax(12rem, 1.4fr) repeat(4, minmax(9rem, 1fr)) auto;
    gap: 0.8rem;
    align-items: end;
    margin-bottom: 1.2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--portal-line);
    border-bottom: 1px solid var(--portal-line);
}

.portal-manage-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.portal-manage-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--portal-line-strong);
}

.portal-manage-table {
    width: 100%;
    min-width: 48rem;
    border-collapse: collapse;
}

.portal-manage-table th,
.portal-manage-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--portal-line);
    vertical-align: top;
    text-align: left;
}

.portal-manage-table th {
    color: var(--portal-black);
    font-size: 0.82rem;
    font-weight: 850;
}

.portal-manage-table td {
    color: var(--portal-text);
}

.portal-manage-table td span {
    display: block;
    margin-top: 0.18rem;
    color: var(--portal-muted);
    font-size: 0.82rem;
}

.portal-manage-table a {
    color: var(--portal-black);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.22rem;
}

.portal-manage-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.7rem;
}

.portal-manage-row-actions a {
    white-space: nowrap;
}

.portal-manage-view-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem 1rem;
    margin: 0 0 1.4rem;
}

.portal-manage-view-meta div {
    border-top: 1px solid var(--portal-line);
    padding-top: 0.65rem;
}

.portal-manage-view-meta dt {
    color: var(--portal-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.portal-manage-view-meta dd {
    margin: 0.25rem 0 0;
    font-weight: 700;
}

.portal-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--portal-black);
    text-decoration: none;
    white-space: nowrap;
}

.portal-sort-link:hover,
.portal-sort-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.portal-sort-link.is-active {
    font-weight: 900;
}

.portal-manage-form {
    display: grid;
    gap: 1.4rem;
}

.portal-manage-fieldset {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--portal-line-strong);
}

.portal-manage-fieldset h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 850;
}

.portal-manage-audit dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 0;
}

.portal-manage-audit div {
    min-width: 0;
    padding: 0.8rem 0;
    border-top: 1px solid var(--portal-line);
}

.portal-manage-audit dt {
    color: var(--portal-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.portal-manage-audit dd {
    margin: 0.25rem 0 0;
    color: var(--portal-black);
    overflow-wrap: anywhere;
}

.portal-manage-field {
    display: grid;
    gap: 0.38rem;
}

.portal-manage-field label {
    color: var(--portal-black);
    font-size: 0.88rem;
    font-weight: 850;
}

.portal-manage-field input:not([type="checkbox"]),
.portal-manage-field select,
.portal-manage-field textarea {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.48rem 0.65rem;
    border: 1px solid var(--portal-line);
    border-radius: 0;
    background: var(--portal-white);
    color: var(--portal-black);
}

.portal-manage-field input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
}

.portal-manage-field select[multiple] {
    min-height: 8rem;
}

.portal-manage-field textarea {
    min-height: 10rem;
}

.portal-manage-help,
.portal-manage-errors,
.portal-form-errors {
    color: var(--portal-muted);
    font-size: 0.86rem;
}

.portal-manage-errors,
.portal-form-errors {
    color: var(--portal-accent);
}

.portal-manage-errors ul,
.portal-form-errors ul {
    margin-bottom: 0;
}

.portal-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.4rem;
}

.portal-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.1rem;
}

.portal-pagination a,
.portal-pagination span {
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
    padding: 0 0.8rem;
    border: 1px solid var(--portal-line);
    color: var(--portal-black);
    font-weight: 800;
    text-decoration: none;
}

.portal-pagination a:hover,
.portal-pagination a:focus-visible {
    background: var(--portal-light);
}

.portal-manage-related-section {
    margin-top: 2rem;
}

.portal-attachment-list {
    border-top: 1px solid var(--portal-line);
}

.portal-attachment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--portal-line);
}

.portal-attachment-title {
    font-weight: 700;
}

.portal-attachment-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.portal-link-button {
    border: 0;
    background: transparent;
    color: var(--portal-text);
    padding: 0;
    text-decoration: underline;
}

.portal-link-button:hover,
.portal-link-button:focus-visible {
    color: var(--portal-accent);
}

.portal-attachment-upload-form {
    margin-top: 1.25rem;
}

.portal-detached-form {
    display: none;
}

.portal-file-selection {
    display: grid;
    gap: 0.55rem;
}

.portal-selected-files {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem 0;
}

.portal-selected-file-count {
    margin: 0;
    color: var(--portal-muted);
    font-size: 0.86rem;
}

.portal-selected-file-list {
    display: grid;
    gap: 0.45rem;
}

.portal-selected-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0;
    border-top: 1px solid var(--portal-line);
}

.portal-selected-file-name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.portal-selected-file-meta {
    color: var(--portal-muted);
    font-size: 0.86rem;
    white-space: nowrap;
}

.portal-selected-file-remove {
    border: 1px solid var(--portal-line);
    background: #fff;
    color: var(--portal-black);
    min-height: 2.2rem;
    padding: 0.3rem 0.65rem;
    font-weight: 700;
}

.portal-selected-file-remove:hover,
.portal-selected-file-remove:focus-visible {
    background: var(--portal-light);
}

.portal-document-link-formset {
    display: grid;
    gap: 1rem;
}

.portal-document-link-form {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(6rem, 0.4fr) auto;
    gap: 0.9rem;
    align-items: start;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--portal-line);
}

.portal-related-documents {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--portal-line);
}

.portal-related-documents h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.portal-related-documents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.portal-delivered-attachment-list {
    display: grid;
    gap: 1.75rem;
}

.portal-attachment-item {
    min-width: 0;
}

.portal-attachment-item + .portal-attachment-item {
    padding-top: 1.5rem;
    border-top: 1px solid var(--portal-line);
}

.portal-attachment-name {
    min-width: 0;
    margin: 0;
    color: var(--portal-black);
    font-size: 0.98rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.portal-pdf-preview {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(650px, 75vh, 850px);
    margin-top: 0.75rem;
    border: 1px solid var(--portal-line-strong);
    background: var(--portal-light);
}

.portal-attachment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    align-items: baseline;
    margin-top: 0.75rem;
}

.portal-attachment-item:not(.portal-attachment-item-pdf) .portal-attachment-meta {
    margin-top: 0;
}

@media (max-width: 767.98px) {
    .portal-pdf-preview {
        height: clamp(520px, 72vh, 720px);
    }
}

.portal-preparing {
    margin-top: 1.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--portal-line);
    color: var(--portal-muted);
}

.portal-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
    padding: 1rem 0;
}

.portal-search-form input,
.portal-form-row input {
    min-height: 2.75rem;
    border: 1px solid var(--portal-line-strong);
    border-radius: 0;
}

.portal-search-form button,
.portal-search-button,
.portal-login-button {
    min-height: 2.75rem;
    min-width: 5.5rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 1rem;
    border: 1px solid var(--portal-black);
    border-radius: 0;
    background: var(--portal-black);
    color: var(--portal-white);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.portal-login-body {
    display: grid;
    place-items: center;
    padding: 1rem;
}

.portal-login-shell {
    width: min(100%, 28rem);
}

.portal-login-panel {
    border: 1px solid var(--portal-line-strong);
    padding: 2rem;
    background: var(--portal-white);
}

.portal-login-logo {
    margin-bottom: 2rem;
}

.portal-login-panel h1 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 850;
}

.portal-login-disabled {
    padding: 1rem;
    border: 1px solid var(--portal-line);
    color: var(--portal-muted);
}

.portal-form-row {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.portal-footer {
    padding: 1.2rem 0;
    border-top: 1px solid var(--portal-line-strong);
    color: var(--portal-black);
    font-size: 0.82rem;
    font-weight: 750;
}

@media (max-width: 1199.98px) {
    .portal-header-shell {
        min-height: 4rem;
        display: flex;
        justify-content: space-between;
    }

    .portal-shortcut-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .portal-hero h1 {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (min-width: 1200px) {
    .portal-hero h1 {
        white-space: nowrap;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .portal-header-shell {
        gap: 0.8rem;
    }

    .portal-primary-link {
        padding-right: 0.46rem;
        padding-left: 0.46rem;
    }

    .portal-header-search-form {
        grid-template-columns: minmax(7rem, 9.5rem) auto;
    }
}

@media (max-width: 991.98px) {
    .portal-hero-title-wrap {
        min-height: auto;
    }

    .portal-hero h1 {
        max-width: 100%;
        font-size: clamp(2.15rem, 6vw, 3.8rem);
    }

    .portal-hero-image,
    .portal-hero-image img {
        min-height: 14rem;
        max-height: 20rem;
    }

    .portal-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-manage-filter,
    .portal-manage-audit dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .portal-manage-head {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-manage-table {
        min-width: 42rem;
    }

    .portal-manage-filter,
    .portal-manage-audit dl,
    .portal-manage-view-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-manage-filter-actions {
        flex-wrap: wrap;
    }

    .portal-attachment-row,
    .portal-attachment-actions,
    .portal-document-link-form,
    .portal-selected-file-row {
        display: block;
    }

    .portal-attachment-actions,
    .portal-selected-file-meta,
    .portal-selected-file-remove {
        margin-top: 0.75rem;
    }

    .portal-category-item {
        flex-basis: 10.25rem;
        min-height: 7.6rem;
    }

    .portal-row,
    .portal-search-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-search-form {
        display: grid;
    }

    .portal-shortcut-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .portal-shell {
        width: 100%;
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }

    .portal-logo-mark {
        width: 1.65rem;
        height: 2rem;
    }

    .portal-logo-text {
        font-size: 0.76rem;
    }

    .portal-hero-title-wrap {
        padding: 2.1rem 1rem;
    }

    .portal-hero h1 {
        font-size: 2.25rem;
        line-height: 1.12;
    }

    .portal-hero-image,
    .portal-hero-image img {
        min-height: 10rem;
        max-height: 12rem;
    }

    .portal-important-link {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.55rem 0.75rem;
        padding: 0.9rem;
    }

    .portal-important-main {
        min-width: 0;
    }

    .portal-panel-head {
        flex-wrap: wrap;
        padding-right: 0.9rem;
        padding-left: 0.9rem;
    }

    .portal-category-scroll-button {
        display: none;
    }

    .portal-row {
        grid-template-columns: minmax(0, 1fr);
        padding-right: 0.9rem;
        padding-left: 0.9rem;
    }

    .portal-important-feature-head {
        flex-wrap: wrap;
    }

    .portal-important-feature-count {
        margin-left: 0;
    }

    .portal-shortcut-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.portal-email-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    color: #2f3437;
}

.portal-email-modal-error {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d9a3a3;
    background: #fff5f5;
    color: #7a1f1f;
}

.portal-email-recipient-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #e1e4e8;
    background: #fafafa;
}

.portal-email-recipient-list dt,
.portal-email-recipient-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.portal-email-recipient-list dt {
    font-weight: 600;
}

.portal-email-recipient-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.portal-email-recipient-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    margin: 0;
}

.portal-email-recipient-option + .portal-email-recipient-option {
    padding-top: 0.65rem;
    border-top: 1px solid #e1e4e8;
}

.portal-email-recipient-option input {
    margin-top: 0.2rem;
}

.portal-email-recipient-option span {
    display: grid;
    gap: 0.15rem;
    overflow-wrap: anywhere;
}

.portal-email-recipient-option input:disabled + span {
    color: #687076;
}

.portal-compact-list {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.portal-compact-list li {
    overflow-wrap: anywhere;
}

.portal-email-resend-warning {
    margin-top: 0.75rem;
    color: #8a4b00;
}
