/* Forum refresh, 2026-10. Scoped to Phorum; original icons and layouts remain. */
#phorum {
    --forum-ink: #000000;
    --forum-muted: #627084;
    --forum-link: #20476e;
    --forum-line: #d9e1e9;
    --forum-soft: #f5f7fa;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: var(--forum-ink);
    min-width: 0;
    padding-bottom: 24px;
}
#phorum a { color: var(--forum-link); text-underline-offset: 2px; }
#phorum a:hover { color: #a52626; text-decoration: underline; }
#phorum a[href*="profile.php"] { text-decoration: none; }
#phorum a:focus-visible, #phorum button:focus-visible,
#phorum input:focus-visible, #phorum textarea:focus-visible,
#phorum select:focus-visible {
    outline: 2px solid #267ab3;
    outline-offset: 3px;
}
#phorum #post input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus,
#phorum #post textarea:focus, #phorum #post select:focus {
    outline: none;
}
#phorum .forum-top-infoline-block { margin-bottom: 12px; }
#phorum .forum-top-infoline-left h3,
#phorum .forum-top-infoline-left h4 { line-height: 1.45; }
#phorum div.nav {
    height: auto !important; /* Some legacy templates set a fixed 30px height. */
    min-height: 32px;
    margin: 8px 0;
    padding: 5px 8px;
    border: 1px solid var(--forum-line);
    border-radius: 6px;
    background: var(--forum-soft);
    font-size: 13px;
    line-height: 1.5;
    display: flow-root;
}
#phorum a.icon {
    display: inline-block;
    box-sizing: border-box;
    min-height: 30px;
    padding: 6px 10px 6px 22px;
    background-position: 2px center;
    vertical-align: middle;
    line-height: 18px;
}
#phorum .fi_name > span { display: inline-block; }
#phorum a.new_thread_btn {
    color: #fff;
    background-color: #315c88;
    border: 1px solid #315c88;
    border-radius: 5px;
    padding: 6px 12px 6px 28px;
    background-position: 7px center;
    font-size: 13px;
    text-decoration: none;
    line-height: 18px;
    margin: 0 0 0 8px;
}
#phorum a.new_thread_btn:hover { background-color: #23486e; color: #fff; }
#phorum table.list {
    border: 1px solid var(--forum-line);
    border-radius: 6px;
    border-spacing: 0;
    border-collapse: separate;
    overflow: hidden;
    margin-bottom: 12px;
}
#phorum table.list th {
    background: #5d7795;
    color: #fff;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}
#phorum table.list th a { color: #fff; }
#phorum table.list td {
    background: #fff;
    border-bottom: 1px solid var(--forum-line);
    padding: 10px;
    font-size: 13px;
    line-height: 1.45;
}
#phorum table.list td.alt { background: #f7f9fb; }
#phorum table.list tr:last-child > td { border-bottom: 0; }
#phorum table.list td.current { background: #edf5fc; }
@media (hover: hover) {
    #phorum table.list tr:hover > td { background-color: #f1f6fb; }
}
#phorum table.list td h3, #phorum table.list td h4 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    overflow-wrap: anywhere;
}
#phorum table.list td p {
    margin: 5px 0 7px;
    color: var(--forum-muted) !important;
    line-height: 1.45;
}
#phorum .fi_threads, #phorum .fi_new_messages,
#phorum .fl_views, #phorum .fl_thread_count { font-variant-numeric: tabular-nums; }
#phorum .fi_last_subject, #phorum .fl_last_post { line-height: 1.5; overflow-wrap: anywhere; }
#phorum a.forum-last-post-link { text-decoration: none; }
#phorum table.list .topic-pages {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    margin-left: 6px;
    color: var(--forum-muted);
    font-size: 11px;
    vertical-align: middle;
}
#phorum table.list .topic-pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 22px;
    min-height: 22px;
    padding: 0 5px;
    border: 1px solid #dce4eb;
    border-radius: 4px;
    color: #5b6f84;
    background: #eef2f6;
    font-size: 11px;
    line-height: 18px;
    text-decoration: none;
}
#phorum table.list .topic-pages a:hover {
    color: var(--forum-link);
    background: #e2eaf2;
    border-color: #c5d2df;
}
#phorum span.new-flag, #phorum table.list td span.new-indicator { color: #bc2929; }
#phorum table.list td span.new-indicator { font-size: 12px; white-space: nowrap; }
#phorum .message { margin: 12px 0; scroll-margin-top: 16px; }
#phorum .message > .generic > h1 { margin-bottom: 14px; }
#phorum div.message > div.generic {
    padding: 12px 16px;
    border: 1px solid var(--forum-line);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(to bottom, var(--forum-soft) 0%, var(--forum-soft) 50%, #fff 100%);
}
#phorum div.message-author { line-height: 1.45; }
#phorum div.message-author.icon-user {
    min-height: 20px;
    padding-left: 26px;
    background-image: url("images/user-outline.svg");
    background-repeat: no-repeat;
    background-position: 0 0.25em;
    background-size: 18px 18px;
}
#phorum td.message-user-info { color: var(--forum-muted); font-size: 12px; }
#phorum div.message-body {
    background: #fff;
    border: 1px solid var(--forum-line);
    border-top: 0;
    border-radius: 0 0 6px 6px;
    padding: 16px;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    display: flow-root;
}
#phorum .message-body p { line-height: 1.5; }
#phorum div.message-options {
    padding-top: 10px;
    margin-top: 16px;
    border-top: 1px solid #e8edf2;
    font-size: 13px;
}
#phorum blockquote.bbcode { margin: 10px 0 10px 12px; font-size: 14px; }
#phorum blockquote.bbcode > div {
    padding: 10px 12px;
    border: 0;
    border-left: 3px solid #9aafc5;
    background: var(--forum-soft);
    border-radius: 0 4px 4px 0;
}
#phorum pre.bbcode { max-width: 100%; overflow: auto; white-space: pre; }
#phorum div.generic, #phorum #post-body, #phorum div.attachments,
#phorum div.message-moderation, #phorum #thread-options {
    border-color: var(--forum-line);
    border-radius: 6px;
}
#phorum div.generic, #phorum div.message-moderation,
#phorum #thread-options { background-color: var(--forum-soft); }
#phorum .paging-mobile-pages, #phorum .paging-label-mobile { display: none; }
#phorum .paging-desktop-pages { display: contents; }
#phorum div.paging {
    float: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin: 4px 0;
}
#phorum div.paging a, #phorum div.paging strong.current-page {
    display: inline-flex;
    min-width: 30px;
    min-height: 30px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px 6px;
    border: 1px solid var(--forum-line);
    background: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
}
#phorum div.paging strong.current-page { color: #fff; background: #315c88; border-color: #315c88; }
#phorum > div.paging { margin: 10px 0; }
#phorum div.paging a.paging-arrow {
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}
#phorum input[type="text"], #phorum input[type="password"],
#phorum input[type="email"], #phorum input[type="search"],
#phorum textarea, #phorum select {
    box-sizing: border-box;
    max-width: 100%;
    border: 1px solid #b7c5d3;
    border-radius: 4px;
    padding: 7px 9px;
    color: var(--forum-ink);
    background-color: #fff;
    font: inherit;
}
#phorum textarea.body { padding: 10px; line-height: 1.6; }
#phorum input[type="submit"], #phorum input[type="button"],
#phorum button, #phorum .asbtn {
    box-sizing: border-box;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #b7c5d3;
    border-radius: 4px;
    color: var(--forum-link);
    background: #f5f8fb;
    font-size: 14px;
    cursor: pointer;
}
#phorum #post { max-width: 100%; }
#phorum #search-form { max-width: 100%; box-sizing: border-box; }
#phorum #post-buttons input[name="finish"] {
    color: #355b3f;
    background: #e8f3e8;
    border-color: #b8cfb8;
}
#phorum #post-buttons input[name="finish"]:hover { background: #dcecdd; }
#phorum #post-buttons input[name="cancel"] {
    color: #8b4545;
    background: #fbecec;
    border-color: #e3c5c5;
}
#phorum #post-buttons input[name="cancel"]:hover { background: #f5dede; }

/* Both templates can be used on phones. Keep all list data and actions. */
@media screen and (max-width: 760px) {
    #phorum { font-size: 16px; line-height: 1.5; }
    #phorum div.nav { padding: 6px; margin: 10px 0; line-height: 1.5; }
    #phorum div.nav-right { float: none; }
    #phorum a.icon {
        min-height: 44px;
        padding: 12px 10px 12px 23px;
        white-space: normal;
        font-size: 14px;
        line-height: 20px;
    }
    #phorum a.new_thread_btn {
        float: none;
        margin: 4px 0;
        padding: 11px 14px 11px 30px;
        min-height: 44px;
        background-position: 8px center;
    }
    #phorum div.nav a.icon { padding-right: 6px; padding-left: 22px; font-size: 13px; }
    #phorum div.nav a.new_thread_btn { padding-right: 14px; padding-left: 30px; }
    #phorum table.list .topic-pages { display: flex; margin: 6px 0 0; }
    #phorum table.list .topic-pages a { min-width: 26px; min-height: 28px; font-size: 12px; }
    #phorum .forum-top-infoline-block { gap: 8px; }
    #phorum .forum-top-infoline-right { margin-top: 0; }
    #phorum table.forum-categories, #phorum table.forum-topics,
    #phorum table.forum-tree { display: block; border: 0; border-radius: 0; background: transparent; }
    #phorum table.forum-categories > tbody,
    #phorum table.forum-topics > tbody,
    #phorum table.forum-tree > tbody { display: block; }
    #phorum table.forum-categories > tbody > tr,
    #phorum table.forum-topics > tbody > tr,
    #phorum table.forum-tree > tbody > tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border: 1px solid var(--forum-line);
        border-radius: 7px;
        background: #fff;
        margin-bottom: 10px;
        padding: 12px;
        gap: 6px 12px;
    }
    #phorum table.forum-categories th,
    #phorum table.forum-topics th,
    #phorum table.forum-tree th { display: none; }
    #phorum table.forum-categories tr:has(> th),
    #phorum table.forum-topics tr:has(> th),
    #phorum table.forum-tree tr:has(> th) {
        display: block;
        border: 0;
        border-radius: 5px;
        background: #5d7795;
        padding: 0;
    }
    #phorum table.forum-categories th.fi_name,
    #phorum table.forum-topics th.fl_name,
    #phorum table.forum-tree th.fl_name { display: block; font-size: 14px; border-radius: 5px; padding: 10px 12px; }
    #phorum table.forum-categories td,
    #phorum table.forum-topics td,
    #phorum table.forum-tree td {
        display: block;
        min-width: 0;
        width: auto;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: left;
        white-space: normal;
        font-size: 14px !important;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }
    #phorum table.forum-categories td.alt,
    #phorum table.forum-topics td.alt,
    #phorum table.forum-tree td.alt { background: transparent; }
    #phorum table.list td.fl_views { text-align: left; }
    #phorum table.list td.fl_thread_count { grid-column: 2; text-align: right; }
    #phorum table.list td.fl_moderate { padding-top: 4px; }
    #phorum table.list td.fl_moderate a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        min-width: 44px;
        min-height: 44px;
        margin: 4px 8px 4px 0;
        padding: 10px;
        border: 1px solid var(--forum-line);
        border-radius: 5px;
        background: var(--forum-soft);
        font-size: 13px;
        line-height: 20px;
        text-decoration: none;
        vertical-align: middle;
    }
    #phorum table.list td.fl_moderate a:last-child { margin-right: 0; }
    #phorum table.list td.fl_moderate a:hover,
    #phorum table.list td.fl_moderate a:focus-visible {
        background: #e8eef5;
        border-color: #aebfce;
    }
    #phorum table.list td.fl_moderate a img { display: block; width: 16px; height: 16px; }
    #phorum table.forum-categories .fi_name,
    #phorum table.forum-categories .fi_last_subject,
    #phorum table.forum-categories td[colspan],
    #phorum table.forum-topics .fl_name,
    #phorum table.forum-topics .fl_last_post,
    #phorum table.forum-topics .fl_moderate,
    #phorum table.forum-tree .fl_name,
    #phorum table.forum-tree .fl_last_post,
    #phorum table.forum-tree .fl_moderate { grid-column: 1 / -1; }
    #phorum table.list td h3, #phorum table.list td h4 { font-size: 17px; line-height: 1.4; }
    #phorum table.list .fi_name h3 + p { display: block; font-size: 14px; margin: 6px 0; }
    #phorum .fi_threads::before, #phorum .fi_new_messages::before,
    #phorum .fl_views::before, #phorum .fl_thread_count::before {
        content: attr(data-label) ": ";
        color: var(--forum-muted);
        font-size: 12px;
    }
    #phorum .fi_threads br, #phorum .fi_new_messages br { display: none; }
    #phorum .fi_threads .new-flag, #phorum .fi_new_messages .new-flag { display: block; font-size: 12px; }
    #phorum table.forum-categories td.fi_last_subject,
    #phorum table.forum-topics td.fl_last_post {
        border-top: 1px solid #e8edf2;
        padding-top: 8px;
        color: var(--forum-muted);
        font-size: 13px !important;
    }
    #phorum .fl_last_post .forum-last-post-break { display: none; }
    #phorum .fl_last_post .forum-last-post-date { white-space: nowrap; }
    #phorum table.forum-topics tr { position: relative; }
    #phorum .forum-topics .fl_icon { position: absolute; top: 14px; left: 12px; width: 20px; }
    #phorum table.forum-topics td.fl_name { padding-left: 26px; }
    #phorum .forum-topics .fl_icon:empty { display: none; }
    #phorum table.forum-tree tr { gap: 4px 12px; }
    #phorum table.forum-tree tr:has(> td.current) { background: #edf5fc; }
    #phorum table.forum-tree td.current { background: transparent; }
    #phorum table.forum-tree h4 { padding-left: min(48px, var(--forum-indent, 0px)) !important; }
    #phorum .forum-tree .fl_author, #phorum .forum-tree .fl_views { color: var(--forum-muted); font-size: 13px !important; }
    #phorum div.paging { flex-wrap: nowrap; gap: 2px; }
    #phorum .paging-desktop-pages, #phorum .paging-label-full, #phorum .paging-summary { display: none; }
    #phorum .paging-mobile-pages { display: contents; }
    #phorum .paging-label-mobile { display: inline; }
    #phorum .paging-label { flex: 0 0 auto; margin-right: 2px; font-size: 14px; white-space: nowrap; }
    #phorum div.paging a, #phorum div.paging strong.current-page {
        flex: 1 1 0;
        min-width: 24px;
        max-width: 36px;
        min-height: 44px;
        padding: 0;
        font-size: 12px;
    }
    #phorum div.paging a.paging-arrow { flex: 0 0 24px; min-width: 24px; max-width: 24px; }
    #phorum .message[style*="padding-left"] { padding-left: min(24px, var(--forum-indent, 0px)) !important; }
    #phorum div.message > div.generic { padding: 12px; }
    #phorum div.message-body { padding: 12px; font-size: 16px; line-height: 1.4; }
    #phorum .message-body p { line-height: 1.4; }
    #phorum .message h1 { font-size: 20px !important; line-height: 1.35; overflow-wrap: anywhere; }
    #phorum .message > .generic > table,
    #phorum .message > .generic > table > tbody,
    #phorum .message > .generic > table > tbody > tr { display: block; width: 100%; }
    #phorum .message > .generic > table > tbody > tr { display: flex; flex-wrap: wrap; gap: 8px; }
    #phorum .message > .generic > table > tbody > tr > td { display: block; min-width: 0; }
    #phorum .message > .generic > table > tbody > tr > td[width="100%"] { flex: 1; width: auto; }
    #phorum .message td.message-avatar { padding-right: 0 !important; }
    #phorum .message td.message-avatar:not(:has(img)) { display: none; }
    #phorum div.message-author { line-height: 1.3; }
    #phorum div.message-author.icon-user { background-position: 0 1px; }
    #phorum .message-author-line {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 6px;
        line-height: 1.3;
    }
    #phorum .message-author-name, #phorum .message-author-meta {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    #phorum .message-author-meta:empty { display: none; }
    #phorum .message td.message-user-info {
        display: block;
        flex-basis: 100%;
        white-space: normal;
        font-size: 12px;
        line-height: 1.5;
        padding-top: 6px;
        border-top: 1px solid var(--forum-line);
    }
    #phorum .message td.message-user-info:empty { display: none; }
    #phorum .message-author small { display: block; margin: 4px 0; font-size: 12px; }
    #phorum div.message-options {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 6px;
        margin-top: 12px;
        padding-top: 6px;
        text-align: left;
        line-height: 1.2;
    }
    #phorum .message-options > noindex { display: contents; }
    #phorum .message-options a.icon {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
        margin: 0;
        padding: 6px 8px 6px 23px;
        line-height: 20px;
        white-space: nowrap;
    }
    #phorum .message-options .like-dislike-box { float: none; flex: 0 0 100%; width: auto; margin: 0; }
    #phorum .message-options .like-dislike-box:empty { display: none; }
    #phorum .message-body img { max-width: 100% !important; height: auto; }
    #phorum .message-body iframe, #phorum .message-body video { max-width: 100%; }
    #phorum .message-body table { display: block; max-width: 100%; overflow-x: auto; }
    #phorum blockquote.bbcode { margin-left: 4px; }
    #phorum #post, #phorum #search-form { width: 100%; max-width: 100%; }
    #phorum #post #subject { width: 100%; }
    #phorum table.form-table, #phorum table.form-table > tbody,
    #phorum table.form-table > tbody > tr, #phorum table.form-table > tbody > tr > td {
        display: block; width: 100%; box-sizing: border-box;
    }
    #phorum table.form-table > tbody > tr > td { padding: 5px 0; }
    #phorum input[type="text"], #phorum input[type="password"],
    #phorum input[type="email"], #phorum input[type="search"],
    #phorum textarea, #phorum select { font-size: 16px; min-height: 44px; }
    #phorum input[type="submit"], #phorum input[type="button"],
    #phorum button, #phorum .asbtn { min-height: 44px; margin: 4px 0; }
    #phorum .sceditor-container:not(.sceditor-maximize) { width: 100% !important; box-sizing: border-box; }
    #phorum .sceditor-container:not(.sceditor-maximize) iframe,
    #phorum .sceditor-container:not(.sceditor-maximize) textarea { max-width: 100%; box-sizing: border-box; }
    #phorum .sceditor-toolbar a {
        min-width: 36px;
        min-height: 36px;
        padding: 10px;
        box-sizing: border-box;
    }
    #phorum table.menu, #phorum table.menu > tbody, #phorum table.menu > tbody > tr,
    #phorum table.menu > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; }
    #phorum table.menu td.menu { padding: 0 0 12px; }
    #phorum table.menu td.menu li { display: inline-block; margin: 4px 10px 4px 0; }
    #phorum table.menu td.menu li a { display: inline-block; padding: 10px 0; }
    #phorum .recent_messages .options { text-align: left; }
    #phorum .recent_messages .options input,
    #phorum .recent_messages .options select { max-width: 100%; margin: 4px 0; }
    #phorum .recent_messages table.list,
    #phorum .recent_messages table.list > tbody { display: block; border: 0; }
    #phorum .recent_messages table.list tr {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 6px;
        padding: 12px;
        margin-bottom: 8px;
        border: 1px solid var(--forum-line);
        border-radius: 6px;
    }
    #phorum .recent_messages table.list td {
        display: block; width: auto; min-width: 0; padding: 0; border: 0;
        white-space: normal; overflow-wrap: anywhere; text-align: left;
    }
    #phorum .recent_messages table.list td.author { grid-column: 2; font-size: 13px; color: var(--forum-muted); }
    #phorum .recent_messages table.list td[colspan] { grid-column: 1 / -1; }
    #phorum .recent_messages table.list tr:has(> th):not(.footer):not(.loadmore) { display: none; }
    #phorum .recent_messages table.list tr.footer,
    #phorum .recent_messages table.list tr.loadmore { display: block; }
    #phorum .recent_messages table.list tr.footer th,
    #phorum .recent_messages table.list tr.loadmore th { display: block; width: auto; white-space: normal; }
    #phorum .recent_messages .loadmore_link { min-height: 44px; line-height: 44px; }
}
#phorum div.nav a.forum-create-topic {
    padding-left: 12px;
    padding-right: 12px;
    background-image: none;
}
