/* Ambassade Générale, inside the site's panels (templates/_panel.html.twig),
   or in the strategic map's side panel (.forum-embedded, over
   jeu/css/embed.css): the site's blue there, the map's brass and jewel here */
.forum {
    --f-accent: #0099ff;
    --f-accent-dim: rgba(0, 153, 255, .35);
    --f-link: #8fc8ff;
    --f-soft: #aab4c4;
    --f-meta: #8a94a6;
    --f-line: rgba(110, 150, 200, .3);
    --f-hover: rgba(0, 153, 255, .06);
    --f-quote-bg: rgba(0, 153, 255, .08);
    --f-button: linear-gradient(#1c3550, #0d1a2a);
    --f-button-hover: #24507a;
    --f-field: #0a1320;
    --f-field-edge: #3d5a7a;
    --f-tool: #13233a;
}
.forum-embedded {
    --f-accent: #d9b25e;
    --f-accent-dim: rgba(217, 178, 94, .28);
    --f-link: #fff;
    --f-soft: #b8b3a4;
    --f-meta: #9b9686;
    --f-line: rgba(255, 255, 255, .08);
    --f-hover: rgba(217, 178, 94, .05);
    --f-quote-bg: rgba(143, 230, 191, .05);
    --f-button: linear-gradient(180deg, #5d5d55 0, #3a3a35 50%, #2a2a26 100%);
    --f-button-hover: linear-gradient(180deg, #b39553 0, #7a6131 55%, #4b3b1c 100%);
    --f-field: rgba(0, 0, 0, .5);
    --f-field-edge: #5a4a2c;
    --f-tool: linear-gradient(180deg, #4a4a44, #2a2a26);
}
.forum.forum-embedded {
    margin: 0;
}
.forum-embedded .forum-button { border-color: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.forum-embedded .forum-button:hover { text-shadow: 1px 1px 0 #000; }
.forum-embedded .forum-quote { border-left-color: #8fe6bf; }
.forum-embedded .forum-quote cite { color: #8fe6bf; }
.forum-embedded .forum-post { background: rgba(0, 0, 0, .3); }
/* embed.css draws every table as a data grid: posts keep their own frame */
.forum-embedded .forum-post td { border-top: 0; }
.forum-embedded .forum-table th { color: var(--f-meta); }
.forum-embedded .forum-table th.forum-section, .forum-embedded h2 { color: var(--f-accent); text-shadow: 1px 1px 0 #000; }
.forum-embedded .forum-code { background: rgba(0, 0, 0, .5); border-color: #3a3326; }
.forum-embedded .forum-text a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 2px; }
.forum-embedded .forum-text a:hover { color: var(--f-accent); text-decoration-color: currentColor; }
.forum {
    margin: 0 18px 8px;
    font: 12px/1.45 Verdana, Arial, Helvetica, sans-serif;
    color: #fff;
}
.forum a { color: var(--f-link); text-decoration: none; }
.forum a:hover { color: #fff; text-decoration: underline; }

.forum-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 4px 0 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--f-accent-dim);
    font-size: 11px;
}
.forum-viewer { color: var(--f-soft); }

/* What is new for the viewer (Forum\Tracking): a jewel, unlit when nothing
   is, green for new posts, red for replies in the viewer's topics (as the map's) */
.forum-news { margin-left: auto; white-space: nowrap; }
.forum-news b { color: var(--f-accent); }
.forum-news-replies b { color: #ff7a66; }
.forum-jewel {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-radius: 50%;
    vertical-align: middle;
    background: radial-gradient(circle at 35% 30%, #9a9a9a 0, #555 45%, #222 100%);
    box-shadow: 0 0 0 1px #2a2418, 0 0 0 2px #6d5a33;
}
.forum-jewel.on {
    background: radial-gradient(circle at 35% 30%, #e6fff3 0, #8fe6bf 30%, #2f8a66 75%, #10352a 100%);
    box-shadow: 0 0 0 1px #2a2418, 0 0 0 2px #6d5a33, 0 0 6px rgba(143, 230, 191, .55);
}
.forum-jewel.alert {
    background: radial-gradient(circle at 35% 30%, #ffd9d0 0, #ff5a44 35%, #8a140c 100%);
    box-shadow: 0 0 0 1px #2a2418, 0 0 0 2px #6d5a33, 0 0 6px rgba(255, 70, 50, .7);
}
.forum-new { margin-left: 6px; font-size: 10px; color: var(--f-accent) !important; }
.forum-unread .forum-name { color: #fff; }
.forum-topics tr:not(.forum-unread) .forum-name { font-weight: normal; }
.forum-subtitle { margin-top: 14px !important; }

.forum-title { margin: 6px 0; font-size: 16px; color: #fff; }
.forum h2 { font-size: 13px; color: var(--f-accent); margin: 4px 0 8px; }
.forum-desc { color: var(--f-soft); font-size: 11px; margin: 2px 0 0; }
.forum-meta { color: var(--f-meta); font-size: 10px; }
.forum a.forum-meta { color: var(--f-meta); }

.forum-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
}
.forum-table th {
    padding: 4px 6px;
    border-bottom: 1px solid var(--f-accent);
    color: var(--f-link);
    font-size: 10px;
    font-weight: normal;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.forum-table th.forum-section { color: var(--f-accent); font-size: 12px; font-weight: bold; }
.forum-table td {
    padding: 6px;
    border-bottom: 1px solid var(--f-line);
    vertical-align: top;
}
.forum-table tr:hover td { background: var(--f-hover); }
.forum-num { width: 60px; text-align: center !important; }
.forum-last { width: 190px; font-size: 11px; }
.forum-name { font-weight: bold; }

.forum-team, .forum-tag {
    display: inline-block;
    padding: 0 5px;
    border: 1px solid var(--f-accent);
    border-radius: 2px;
    color: var(--f-link);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    vertical-align: middle;
}
.forum-tag-locked { border-color: #c87a3c; color: #e0a070; }
.forum-tag-archived { border-color: var(--f-meta); color: var(--f-soft); }
/* The archived topics, under the living ones (forum.html.twig) */
.forum-archives td {
    padding-top: 14px !important;
    border-top: 2px solid var(--f-accent);
    color: var(--f-link);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.forum-table tr.forum-archives:hover td { background: none; }

.forum-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}
.forum-pages { margin-left: auto; font-size: 11px; }
.forum-pages a, .forum-pages b { padding: 0 3px; }

.forum-button {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--f-accent);
    background: var(--f-button);
    color: #fff !important;
    font: bold 11px Verdana, Arial, sans-serif;
    cursor: pointer;
}
.forum-button:hover { background: var(--f-button-hover); text-decoration: none !important; }
.forum-button-team { border-color: #6b7c93; font-weight: normal; }
.forum-inline { display: inline; margin: 0; }
.forum-link {
    padding: 0;
    border: 0;
    background: none;
    color: #e0a070;
    font: inherit;
    cursor: pointer;
}
.forum-link:hover { text-decoration: underline; }

/* Posts */
.forum-post {
    width: 100%;
    margin-bottom: 8px;
    border-collapse: collapse;
    background: rgba(0, 0, 0, .25);
    border: 1px solid var(--f-line);
    table-layout: fixed;
}
.forum-author {
    width: 130px;
    padding: 8px;
    vertical-align: top;
    border-right: 1px solid var(--f-line);
    overflow-wrap: anywhere;
}
.forum-body { padding: 6px 10px 10px; vertical-align: top; }
.forum-post-head {
    display: flex;
    justify-content: space-between;
    padding-bottom: 4px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--f-line);
}
.forum-post-tools { font-size: 10px; }
.forum-post-tools > * { margin-left: 8px; }
.forum-text { overflow-wrap: anywhere; }
.forum-edited { margin-top: 8px; font-style: italic; }

.forum-quote {
    margin: 6px 0 6px 6px;
    padding: 4px 8px;
    border-left: 3px solid var(--f-accent);
    background: var(--f-quote-bg);
}
.forum-quote cite { display: block; font-style: normal; font-weight: bold; font-size: 11px; color: var(--f-link); }
.forum-code {
    margin: 6px 0;
    padding: 6px;
    background: #050a12;
    border: 1px solid #234;
    color: #cde;
    white-space: pre-wrap;
}
.forum-img { max-width: 100%; height: auto; }
.forum-smiley { vertical-align: middle; }
.forum-text ul, .forum-text ol { margin: 4px 0; padding-left: 24px; }

/* Forms */
.forum-form { margin: 12px 0; }
.forum-form label { display: block; margin-bottom: 8px; }
.forum-input, .forum-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 4px;
    border: 1px solid var(--f-field-edge);
    background: var(--f-field);
    color: #fff;
    font: 12px Verdana, Arial, sans-serif;
}
.forum-form textarea { margin-bottom: 8px; resize: vertical; }
.forum-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-bottom: 4px; }
.forum-toolbar button {
    padding: 1px 6px;
    border: 1px solid var(--f-field-edge);
    background: var(--f-tool);
    color: #fff;
    font: 11px Verdana, Arial, sans-serif;
    cursor: pointer;
}
.forum-smilies { margin-left: 6px; }
.forum-smilies img { cursor: pointer; vertical-align: middle; }
.forum-error { color: #ff9a6a; font-weight: bold; }
