body,
#siteContentOuterPane,
#siteContentInnerPane {
    min-width: 0;
}

body {
    background-color: #f4f6fb;
}

#siteContentInnerPane {
    max-width: none;
    padding: 0;
}

#rmHeader {
    width: 100%;
    min-width: 1000px;
    margin: 0 auto;
}

#headerBackgroundColor {
    min-width: 1000px;
}

#headerBackgroundColor,
#BottomPane {
    background-color: #07294a;
}

#BottomPane {
    margin-top: 0;
}

#TopBarContainer {
    display: none;
}

main {
    display: block;
    background: #f4f6fb;
}

.forum-shell,
.forum-shell * {
    box-sizing: border-box;
}

.forum-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 24px 80px;
    color: #17243a;
    text-align: left;
}

.forum-shell a {
    color: #5269ee;
    text-decoration: none;
}

.forum-shell a:hover,
.forum-shell a:focus {
    color: #2c45d6;
    text-decoration: underline;
}

.forum-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 40px;
    color: #fff;
    background: linear-gradient(135deg, #092f52, #124c78);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(7, 41, 74, .16);
}

.forum-heading h1,
.forum-heading p {
    margin: 0;
}

.forum-heading h1 {
    margin-top: 4px;
    font-size: 34px;
    line-height: 1.2;
}

.forum-heading h1 + p {
    max-width: 760px;
    margin-top: 10px;
    color: #d7e5f3;
}

.forum-thread-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 16px;
}

.forum-thread-views {
    color: #84d4ff;
    font-weight: 600;
}

.forum-thread-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-watch-form {
    display: grid;
    gap: 2px;
    padding: 8px 11px;
    color: #fff;
    font-size: 13px;
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
}

.forum-watch-form label {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.forum-watch-form small,
.forum-watch-form small a {
    color: #cbd9ff;
}

.forum-lock-form {
    margin: 0;
}

.forum-locked-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    color: #6c4912;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
    background: #fff0c9;
    border-radius: 10px;
}

.forum-heading-compact {
    padding-top: 28px;
    padding-bottom: 28px;
}

.forum-eyebrow {
    color: #84d4ff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.forum-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    color: #fff !important;
    font: inherit;
    font-weight: 600;
    background: #5a70fb;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
}

.forum-button:hover,
.forum-button:focus {
    color: #fff;
    background: #4258e8;
    text-decoration: none !important;
}

.forum-button-secondary {
    color: #112c49 !important;
    background: #fff;
}

.forum-button-secondary:hover,
.forum-button-secondary:focus {
    color: #112c49;
    background: #eef3ff;
}

.forum-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 2px 16px;
    color: #697389;
    font-size: 14px;
}

.forum-panel {
    margin-top: 28px;
    background: #fff;
    border: 1px solid #dfe4ed;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(25, 42, 70, .05);
    overflow: hidden;
}

.forum-category > h2 {
    margin: 0;
    padding: 18px 24px;
    font-size: 21px;
    background: #f7f8fc;
    border-bottom: 1px solid #e5e9f0;
}

.forum-table-header,
.forum-table-row {
    display: grid;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.forum-section-table .forum-table-header,
.forum-section-table .forum-table-row {
    grid-template-columns: minmax(260px, 1fr) 78px 78px minmax(220px, .55fr);
}

.forum-topic-table .forum-table-header,
.forum-topic-table .forum-table-row {
    grid-template-columns: minmax(300px, 1fr) 78px 78px minmax(220px, .5fr);
}

.forum-table-header {
    padding: 11px 24px;
    color: #687388;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: #fbfcfe;
}

.forum-table-row {
    padding: 18px 24px;
    border-top: 1px solid #edf0f5;
}

.forum-table-header + .forum-table-row {
    border-top: 0;
}

.forum-primary-cell,
.forum-last-post {
    min-width: 0;
}

.forum-primary-cell h2,
.forum-primary-cell h3 {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.35;
}

.forum-primary-cell p,
.forum-last-post span,
.forum-last-post time {
    margin: 0;
    color: #697389;
    font-size: 13px;
}

.forum-count {
    color: #334057;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.forum-last-post {
    display: flex;
    flex-direction: column;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.forum-mobile-label {
    display: none;
}

.forum-empty {
    margin: 0;
    padding: 28px 24px;
    color: #697389;
}

.forum-panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 24px;
    border-bottom: 1px solid #e5e9f0;
}

.forum-panel-title-row h2 {
    margin: 0;
    font-size: 21px;
}

.forum-recent-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.forum-recent-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 190px;
    gap: 18px;
    padding: 14px 24px;
    border-top: 1px solid #edf0f5;
}

.forum-recent-list li:first-child {
    border-top: 0;
}

.forum-recent-list span,
.forum-recent-list time {
    color: #697389;
    font-size: 13px;
}

.forum-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.forum-pagination a,
.forum-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #d9dfeb;
    border-radius: 7px;
}

.forum-pagination span {
    color: #fff;
    background: #5a70fb;
    border-color: #5a70fb;
}

.forum-post-list {
    margin-top: 28px;
}

.forum-post {
    min-width: 0;
    margin-top: 18px;
    background: #fff;
    border: 1px solid #dfe4ed;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(25, 42, 70, .05);
    overflow: hidden;
}

.forum-post:first-child {
    margin-top: 0;
}

.forum-post-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    color: #59667c;
    font-size: 13px;
    background: #f7f8fc;
    border-bottom: 1px solid #e5e9f0;
}

.forum-post-meta strong {
    color: #17243a;
    font-size: 15px;
}

.forum-post-meta strong a {
    color: inherit;
}

.forum-post-time {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    line-height: 1.35;
    white-space: nowrap;
}

.forum-relative-time {
    color: #334057;
    font-weight: 600;
}

.forum-post-date {
    color: #8b94a6;
    font-size: 11px;
    font-weight: 400;
}

.forum-developer-badge {
    display: inline-block;
    margin-left: 8px;
    color: #697389;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .02em;
    vertical-align: middle;
}

.forum-deleted-label {
    color: #7b8494;
    font-style: italic;
}

.forum-post-body {
    min-height: 90px;
    padding: 24px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.forum-post-body p:first-child {
    margin-top: 0;
}

.forum-post-body p:last-child {
    margin-bottom: 0;
}

.forum-post-deleted-message {
    color: #7b8494;
    font-style: italic;
    background: #fbfbfc;
}

.forum-post-edited {
    margin: -12px 24px 20px;
    color: #697389;
    font-size: 12px;
}

.forum-post-edited .forum-post-date {
    margin-left: 5px;
}

.forum-post-body blockquote {
    margin: 18px 0;
    padding: 12px 18px;
    color: #4d5a70;
    background: #f5f7fb;
    border-left: 4px solid #7184fa;
}

.forum-post-body blockquote cite {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.forum-post-body pre,
.forum-post-body code {
    font-family: Consolas, Monaco, monospace;
}

.forum-post-body pre {
    max-width: 100%;
    padding: 14px;
    background: #152238;
    color: #f2f6ff;
    border-radius: 8px;
    overflow: auto;
    white-space: pre-wrap;
}

.forum-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 0 24px 24px;
}

.forum-attachments img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #d8deea;
    border-radius: 8px;
}

.forum-kill-user {
    padding: 0 24px 20px;
}

.forum-delete-post {
    display: inline-block;
    margin: 0 0 20px 24px;
}

.forum-delete-post button {
    padding: 6px 10px;
    color: #8e2632;
    background: #fff;
    border: 1px solid #d7aeb3;
    border-radius: 6px;
    cursor: pointer;
}

.forum-kill-user button {
    padding: 6px 10px;
    color: #a41324;
    background: #fff3f4;
    border: 1px solid #edbbc1;
    border-radius: 6px;
    cursor: pointer;
}

.forum-post-editor {
    margin: 0 24px 22px;
    padding: 12px 15px;
    background: #f7f8fc;
    border: 1px solid #d8deea;
    border-radius: 8px;
}

.forum-post-editor summary {
    color: #3446b8;
    font-weight: 600;
    cursor: pointer;
}

.forum-post-editor[open] summary {
    margin-bottom: 12px;
}

.forum-post-editor textarea {
    min-height: 150px;
}

.forum-composer {
    padding: 24px;
}

.forum-composer h2 {
    margin: 0 0 18px;
    font-size: 23px;
}

.forum-post-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

.forum-post-form label {
    margin-top: 8px;
    font-weight: 600;
}

.forum-post-form label span,
.forum-format-help,
.forum-character-count {
    color: #697389;
    font-size: 13px;
    font-weight: 400;
}

.forum-post-form input[type="text"],
.forum-post-form input:not([type]),
.forum-post-form textarea,
.forum-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font: inherit;
    color: #17243a;
    background: #fff;
    border: 1px solid #bfc8d8;
    border-radius: 7px;
}

.forum-post-form textarea {
    min-height: 190px;
    resize: vertical;
}

.forum-character-count {
    justify-self: end;
}

.forum-format-help {
    margin: 2px 0 8px;
}

.forum-post-form .forum-button {
    justify-self: start;
    margin-top: 7px;
}

.forum-error {
    padding: 12px 15px;
    color: #8f1424;
    background: #fff1f2;
    border: 1px solid #efc1c6;
    border-radius: 7px;
}

.forum-search {
    padding: 24px;
}

.forum-search form > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.forum-search form > div {
    display: flex;
    gap: 10px;
}

.forum-search-results > h2 {
    margin: 0;
    padding: 19px 24px;
    font-size: 21px;
    border-bottom: 1px solid #e5e9f0;
}

.forum-search-results ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.forum-search-results li {
    padding: 20px 24px;
    border-top: 1px solid #edf0f5;
}

.forum-search-results li:first-child {
    border-top: 0;
}

.forum-search-results h3,
.forum-search-results p {
    margin: 0;
}

.forum-search-results h3 {
    margin-bottom: 8px;
}

.forum-search-results li > p:last-child {
    margin-top: 9px;
    color: #697389;
    font-size: 13px;
}

@media (max-width: 760px) {
    #BottomPane {
        box-sizing: border-box;
        min-width: 0;
        height: auto;
        padding: 32px 18px;
    }

    #BottomPane #BottomPaneInner {
        display: block;
        width: 100%;
    }

    #BottomPane #LeftBottomPane,
    #BottomPane #RightBottomPane,
    #BottomPane #RightBottomPane .navigationSection {
        display: block;
        width: 100%;
        margin: 0 0 22px;
    }

    #BottomPane #LastNavSection {
        width: 100% !important;
    }

    #BottomPane #Footer {
        box-sizing: border-box;
        margin-top: 14px;
        padding: 0;
    }

    .forum-shell {
        padding: 22px 14px 54px;
    }

    .forum-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        padding: 25px 22px;
        border-radius: 12px;
    }

    .forum-heading h1 {
        font-size: 27px;
    }

    .forum-thread-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .forum-table-header {
        display: none;
    }

    .forum-section-table .forum-table-row,
    .forum-topic-table .forum-table-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .forum-primary-cell,
    .forum-last-post {
        grid-column: 1 / -1;
    }

    .forum-count {
        text-align: left;
    }

    .forum-mobile-label {
        display: inline;
        margin-right: 7px;
        color: #697389;
        font-size: 12px;
        font-weight: 400;
    }

    .forum-recent-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .forum-post-meta {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .forum-post-meta .forum-post-time {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .forum-search form > div {
        flex-direction: column;
    }

    .forum-search .forum-button {
        align-self: flex-start;
    }
}
