/* ZF-Forum: the look of the old zombfort.de (WoltLab's blue style with Barlow), rebuilt. */

/* Barlow by Jeremy Tribby, SIL Open Font License 1.1 */
@font-face { font-family: "Barlow"; font-weight: 300; font-display: swap; src: url("/assets/barlow-light.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("/assets/barlow-regular.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("/assets/barlow-medium.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("/assets/barlow-semibold.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-display: swap; src: url("/assets/barlow-bold.woff2") format("woff2"); }

:root {
  --nav: #065c94;
  --nav-active: #044873;
  --header: #0b78bf;
  --crumbs: #eceff1;
  --page: #fafafa;
  --box: #fff;
  --box-line: #e0e0e0;
  --sidebar: #ecf1f7;
  --text: #3a3a3a;
  --muted: #7d8287;
  --link: #0b78bf;
  --link-hover: #b52e00;
  --title: #044873;
  --button: #cfd8dc;
  --button-text: #212121;
  --button-hover: #78909c;
  --primary: #0b78bf;
  --primary-hover: #044873;
  --footer-boxes: #eceff1;
  --footer: #065c94;
  --copyright: #044873;
  --red: #cc0001;
  --green: #3c763d;
  --yellow: #8a6d3b;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--page); color: var(--text);
  font: 400 14px/1.48 "Barlow", Helvetica, Verdana, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.28; }
p { margin: 0; }
p + p { margin-top: 1em; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.layout { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.icon { font-family: FontAwesome; font-style: normal; display: inline-block; line-height: 1; }
.visuallyHidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }

/* ---- header: menu bar, logo band, breadcrumbs ---- */
.topBar { background: var(--nav); color: #fff; position: sticky; top: 0; z-index: 50; }
.topBarInner { display: flex; align-items: stretch; min-height: 50px; }
.mainMenu ul, .userPanel { list-style: none; margin: 0; padding: 0; display: flex; }
.mainMenu { flex: 1; min-width: 0; }
.mainMenu a, .userPanel > li > a, .userPanel > li > button, .userPanel summary {
  display: flex; align-items: center; height: 50px; padding: 0 15px; color: #fff; font-size: 15px;
  background: none; border: 0; font-family: inherit; cursor: pointer; white-space: nowrap;
}
.mainMenu a:hover, .mainMenu a.active, .userPanel > li > a:hover, .userPanel summary:hover, .userPanel details[open] > summary { background: var(--nav-active); color: #fff; }
.userPanel { margin-left: auto; }
.userPanel .fa { font-size: 20px; }
.userPanel .counter { position: relative; }
.badgeCount {
  position: absolute; top: 8px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
.userPanel .userAvatarImage { width: 24px; height: 24px; margin-right: 8px; }
.userPanel details { position: relative; }
.userPanel summary { list-style: none; }
.userPanel summary::-webkit-details-marker { display: none; }
.dropdown {
  position: absolute; right: 0; top: 100%; min-width: 220px; background: #fff; color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2); border-radius: var(--radius); padding: 5px 0; z-index: 60;
}
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 7px 20px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--sidebar); color: var(--link-hover); }
.dropdown hr { border: 0; border-top: 1px solid var(--box-line); margin: 5px 0; }
.dropdownHeader { padding: 7px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.notificationDropdown { width: 340px; max-width: calc(100vw - 20px); }
.notificationItem { display: flex; gap: 10px; padding: 8px 15px; color: var(--text); }
.notificationItem.unread { background: #f1f6fb; }
.notificationItem .userAvatarImage { flex: none; }
.menuToggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; padding: 0 15px; cursor: pointer; }

.logoBar { background: var(--header); }
.logoBar .layout { padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-block; }
.logo img { display: block; height: 80px; width: auto; }

.breadcrumbs { background: var(--crumbs); min-height: 40px; display: flex; align-items: center; font-size: 13px; }
.breadcrumbs .layout { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumbs a + a::before { content: "/"; color: var(--muted); margin: 0 12px; }

/* ---- main area ---- */
.main { flex: 1 0 auto; padding-top: 30px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
.main.withSidebar { grid-template-columns: minmax(0, 1fr) 310px; }
.content { min-width: 0; }
.contentHeader { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.contentHeader .userAvatarImage { flex: none; }
.contentHeaderTitle { flex: 1; min-width: 0; }
.contentTitle { font-size: 28px; font-weight: 300; line-height: 1.05; color: var(--text); overflow-wrap: anywhere; }
.contentHeaderMeta { color: var(--muted); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 15px; }
.contentHeaderDescription { color: var(--muted); margin-top: 5px; }
.contentHeaderNavigation, .contentInteraction { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.contentInteraction { margin-bottom: 20px; }
.section { background: var(--box); border: 1px solid var(--box-line); padding: 20px; }
.section + .section, .section + h2, .sectionTitle { margin-top: 30px; }
.sectionTitle { font-size: 20px; color: var(--text); margin-bottom: 15px; }
.section > .sectionTitle:first-child, form.section > .sectionTitle:first-child { margin-top: 0; }
.notice { padding: 10px 15px; border-left: 4px solid var(--link); background: #e9f2f9; margin-bottom: 20px; }
.notice.success { border-color: var(--green); background: #eaf4e5; }
.notice.error { border-color: var(--red); background: #fbeaea; color: #8a1f11; }
.notice.warning { border-color: #c69500; background: #fcf5e0; }
.layout > .notice { margin: 20px 0 0; }

/* ---- buttons and forms ---- */
.button, button.button, input[type=submit] {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius); border: 0;
  background: var(--button); color: var(--button-text); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; line-height: 1.48;
}
.button:hover, button.button:hover { background: var(--button-hover); color: #fff; }
.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-hover); color: #fff; }
.button.small { padding: 4px 8px; font-size: 13px; }
.button.danger:hover { background: var(--red); }
.button:disabled { opacity: .5; cursor: default; }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 7px 10px; font: inherit; color: var(--text); background: #fff;
  border: 1px solid #cfd8dc; border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 1px var(--link); }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 15px; }
.field small, .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 400; }
.formSubmit { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin-top: 15px; }
.formNarrow { max-width: 480px; }
.website { position: absolute; left: -9999px; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 5px 15px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

/* ---- forum: categories and boards ---- */
.boardList { list-style: none; margin: 0; padding: 0; }
.category + .category { margin-top: 20px; }
.categoryHeader { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--link); padding: 10px 0; color: var(--link); }
.categoryHeader h2 { font-size: 20px; }
.categoryHeader h2 a { color: var(--link); }
.categoryToggle { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0 4px; font-size: 14px; }
.category.collapsed .categoryToggle .fa { transform: rotate(-90deg); }
.category.collapsed > .boards { display: none; }
.boards { list-style: none; margin: 0; padding: 0; }
.boardRow { display: grid; grid-template-columns: 50px minmax(0, 1fr) 120px 260px; align-items: center; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--box-line); }
.boardIcon { text-align: center; font-size: 22px; color: var(--link); }
.boardRow.unread .boardIcon { color: var(--red); }
.boardTitle { font-size: 20px; }
.boardRow.unread .boardTitle { font-weight: 600; }
.boardDescription { color: var(--muted); margin-top: 2px; }
.subBoards { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 15px; }
.subBoards .fa { margin-right: 4px; }
.subBoards .unread a { font-weight: 600; }
.boardStats { color: var(--muted); text-align: center; white-space: nowrap; }
.boardLast { display: flex; align-items: center; gap: 10px; min-width: 0; }
.boardLast > div { min-width: 0; }
.boardLast a.title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boardLast .meta { color: var(--muted); font-size: 13px; }
.teamOnly { font-size: 12px; color: var(--muted); }

/* ---- threads in a board ---- */
.threadList { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--link); }
.threadListHeader { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; color: var(--link); }
.threadRow { display: grid; grid-template-columns: 58px minmax(0, 1fr) 40px 100px 220px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--box-line); }
.threadRow:last-child { border-bottom: 0; }
.threadAvatar { position: relative; }
.threadAvatar .stickyMark {
  position: absolute; top: -4px; right: 0; width: 22px; height: 22px; border-radius: 50%; background: #424242; color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.threadTitle { font-size: 18px; overflow-wrap: anywhere; }
.threadRow.unread .threadTitle { font-weight: 600; }
.threadMeta { color: var(--muted); font-size: 13px; }
.threadMeta a { color: var(--link); }
.threadPages { display: inline-flex; gap: 4px; margin-left: 8px; font-size: 12px; }
.threadFlags { color: var(--muted); text-align: center; }
.threadStats { color: var(--muted); text-align: center; white-space: nowrap; }
.threadLast { display: flex; align-items: center; gap: 10px; font-size: 13px; min-width: 0; }
.threadLast .meta { color: var(--muted); }
.threadRow.deleted { opacity: .55; }

/* ---- posts ---- */
.messageList { list-style: none; margin: 0; padding: 0; }
.message { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 30px; background: var(--box); border: 1px solid var(--box-line); padding: 20px; }
.message + .message { margin-top: 20px; }
.message.deleted { background: #fdf3f3; }
.messageSidebar { background: var(--sidebar); padding: 20px; text-align: center; align-self: start; }
.messageSidebar .userAvatarImage { width: 128px; height: 128px; }
.messageAuthor { font-size: 20px; margin-top: 10px; overflow-wrap: anywhere; }
.rank { display: inline-block; margin-top: 6px; padding: 1px 7px; border-radius: var(--radius); background: var(--red); color: #fff; font-size: 13px; }
.mcName { color: var(--muted); font-size: 13px; margin-top: 4px; }
.mcName .fa { margin-right: 3px; }
.authorStats { display: grid; grid-template-columns: 1fr auto; gap: 4px; text-align: left; margin-top: 15px; font-size: 13px; }
.authorStats dt { color: var(--text); }
.authorStats dd { margin: 0; }
.messageContent { min-width: 0; display: flex; flex-direction: column; }
.messageHeader { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.messageHeader .messageNumber { margin-left: auto; }
.messageText { margin-top: 20px; flex: 1; overflow-wrap: anywhere; }
.messageEdited { color: var(--muted); font-size: 12px; margin-top: 15px; }
.messageFooter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.messageActions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 5px; }
.reactionSummary { display: flex; flex-wrap: wrap; gap: 8px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); }
.reactionSummary .count { margin-left: 2px; font-size: 13px; }
.reactionSummary .mine { color: var(--link); font-weight: 600; }
.reactPicker { position: relative; }
.reactPicker .dropdown { min-width: 0; display: flex; padding: 5px; left: 0; right: auto; bottom: 100%; top: auto; }
.reactPicker .dropdown button { padding: 4px 8px; font-size: 22px; width: auto; border-radius: var(--radius); }
.reactPicker .dropdown button.mine { background: var(--sidebar); }
.reportForm { margin-top: 10px; display: flex; gap: 8px; }
.reportForm input { flex: 1; }
.quoteSource { display: none; }

/* text written by members (and pages) */
.htmlContent { line-height: 1.6; }
.htmlContent > :first-child { margin-top: 0; }
.htmlContent p, .htmlContent ul, .htmlContent ol, .htmlContent blockquote, .htmlContent pre, .htmlContent table { margin: 0 0 1em; }
.htmlContent > :last-child { margin-bottom: 0; }
.htmlContent h1, .htmlContent h2 { font-size: 22px; color: var(--text); margin: 1.2em 0 .5em; }
.htmlContent h3 { font-size: 18px; margin: 1em 0 .4em; font-weight: 500; }
.htmlContent h4, .htmlContent h5, .htmlContent h6 { font-size: 15px; font-weight: 600; margin: 1em 0 .4em; }
.htmlContent blockquote { border-left: 4px solid var(--link); background: var(--sidebar); padding: 10px 15px; margin-left: 0; }
.htmlContent blockquote > :last-child { margin-bottom: 0; }
.htmlContent code { background: #eceff1; padding: 1px 4px; border-radius: var(--radius); font-size: 13px; font-family: Consolas, Menlo, monospace; }
.htmlContent pre { background: #263238; color: #eceff1; padding: 12px 15px; border-radius: var(--radius); overflow-x: auto; }
.htmlContent pre code { background: none; padding: 0; color: inherit; }
.htmlContent table { border-collapse: collapse; display: block; overflow-x: auto; }
.htmlContent th, .htmlContent td { border: 1px solid var(--box-line); padding: 6px 10px; }
.htmlContent th { background: var(--sidebar); }
.htmlContent img.messageImage { max-height: 600px; }
.htmlContent a.mention { font-weight: 600; }
.htmlContent ul.contains-task-list { list-style: none; padding-left: 5px; }
.htmlContent hr { border: 0; border-top: 1px solid var(--box-line); margin: 1.5em 0; }

/* ---- the editor ---- */
.editor { border: 1px solid #cfd8dc; border-radius: var(--radius); background: #fff; }
.editorToolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: #f5f7f8; border-bottom: 1px solid #cfd8dc; }
.editorToolbar button { background: none; border: 0; padding: 5px 9px; border-radius: var(--radius); cursor: pointer; color: #546e7a; font-size: 14px; }
.editorToolbar button:hover { background: var(--button); color: var(--text); }
.editorToolbar .spacer { flex: 1; }
.editorToolbar button.active { background: var(--button); color: var(--text); }
.editor textarea { border: 0; min-height: 220px; border-radius: 0; box-shadow: none; }
.editorPreview { padding: 15px; min-height: 220px; }
.editorHelp { font-size: 12px; color: var(--muted); padding: 6px 10px; border-top: 1px solid #eceff1; }
.replyBox { margin-top: 30px; }

/* ---- pagination ---- */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pagination a, .pagination span { min-width: 32px; padding: 4px 8px; text-align: center; border-radius: var(--radius); }
.pagination a:hover { background: var(--button); color: var(--text); }
.pagination .current { background: var(--primary); color: #fff; }
.contentNavigation { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 20px 0; flex-wrap: wrap; }

/* ---- sidebar boxes ---- */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.box { background: var(--sidebar); padding: 20px; }
.boxTitle { font-size: 20px; color: var(--title); margin-bottom: 20px; }
.boxRegister { background: var(--primary); color: #fff; }
.boxRegister .boxTitle { color: #fff; }
.boxRegister a { color: #fff; }
.boxRegister .registerButton { display: block; text-align: center; margin-top: 20px; padding: 10px; color: #fff; }
.boxRegister .registerButton:hover { background: var(--primary-hover); }
.sidebarList { list-style: none; margin: 0; padding: 0; }
.sidebarList > li { display: flex; gap: 8px; }
.sidebarList > li + li { margin-top: 10px; }
.sidebarList .meta { color: var(--muted); font-size: 13px; }
.sidebarList .userAvatarImage { flex: none; margin-top: 2px; }

/* ---- avatars ---- */
.userAvatarImage { border-radius: 50%; object-fit: cover; background: #eceff1; display: block; image-rendering: auto; }
.userAvatarImage[src*="mc"] { image-rendering: pixelated; }

/* ---- footer ---- */
.footerBoxes { background: var(--footer-boxes); color: #2c3e50; padding: 40px 0; }
.footerBoxes .layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footerBoxes .boxTitle { color: #2c3e50; }
.footerBoxes .box { background: none; padding: 0; }
.inlineList { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.inlineList.dashed > li:not(:last-child)::after { content: "–"; margin: 0 6px; }
.inlineList.comma > li:not(:last-child)::after { content: ","; margin-right: 4px; }
.pageFooter { background: var(--footer); color: #fff; padding: 20px 0; }
.pageFooter a { color: #fff; margin-right: 20px; }
.pageFooter a:hover { color: #d9dcde; }
.copyright { background: var(--copyright); color: #d9dcde; text-align: center; padding: 20px 0; }
.copyright strong { color: #fff; }

/* ---- shoutbox ---- */
.shoutbox { margin-top: 40px; }
.shoutList { list-style: none; margin: 0; padding: 0 5px; max-height: 360px; overflow-y: auto; border-top: 1px solid var(--link); border-bottom: 1px solid var(--link); }
.shout { display: flex; gap: 8px; padding: 6px 5px; align-items: flex-start; }
.shout + .shout { border-top: 1px solid #eceff1; }
.shout .userAvatarImage { flex: none; margin-top: 2px; }
.shout .shoutText { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.shout time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.shout .shoutDelete { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0 4px; }
.shout .shoutDelete:hover { color: var(--red); }
.shoutEmpty { padding: 10px 5px; }
.shoutForm { display: flex; gap: 8px; margin-top: 10px; }
.shoutForm input { flex: 1; }

/* ---- members, profile, team ---- */
.memberList { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.memberCard { display: flex; gap: 12px; align-items: center; background: var(--box); border: 1px solid var(--box-line); padding: 12px; }
.memberCard .name { font-size: 17px; }
.memberCard .meta { color: var(--muted); font-size: 13px; }
.sortLinks { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; align-items: center; }
.sortLinks a { padding: 4px 10px; border-radius: var(--radius); }
.sortLinks a.active { background: var(--primary); color: #fff; }
.sortLinks form { margin-left: auto; display: flex; gap: 5px; }
.profileHeader { display: flex; gap: 20px; align-items: center; }
.profileHeader .userAvatarImage { width: 128px; height: 128px; }
.profileGrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 30px; }
.recentPosts { list-style: none; margin: 0; padding: 0; }
.recentPosts li + li { border-top: 1px solid var(--box-line); margin-top: 10px; padding-top: 10px; }
.teamGroup + .teamGroup { margin-top: 30px; }

/* ---- lists of conversations, notifications, search results, moderation ---- */
.rowList { list-style: none; margin: 0; padding: 0; background: var(--box); border: 1px solid var(--box-line); }
.rowList > li { display: flex; gap: 12px; align-items: center; padding: 12px 15px; }
.rowList > li + li { border-top: 1px solid var(--box-line); }
.rowList > li.unread { background: #f1f6fb; }
.rowList .main-text { flex: 1; min-width: 0; }
.rowList .title { font-size: 16px; }
.rowList li.unread .title { font-weight: 600; }
.rowList .meta { color: var(--muted); font-size: 13px; }
.rowList .preview { margin-top: 4px; overflow-wrap: anywhere; }
.adminBoards td.depth1 { padding-left: 30px; }
.adminBoards td.depth2 { padding-left: 50px; }
.adminBoards td.depth3 { padding-left: 70px; }
table.data { width: 100%; border-collapse: collapse; background: var(--box); }
table.data th { text-align: left; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--link); color: var(--link); }
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--box-line); vertical-align: middle; }
table.data td.actions { white-space: nowrap; text-align: right; }

/* ---- start page ---- */
.homeBox { margin-top: 30px; }
.discordNames { margin-top: 10px; }
.serverAddress { font-family: Consolas, Menlo, monospace; background: #263238; color: #ffeb3b; padding: 2px 8px; border-radius: var(--radius); }

/* ---- dropdowns in the content, small helpers ---- */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.newThreadMenu, .reportMenu { position: relative; display: inline-block; }
.newThreadMenu .dropdown { min-width: 260px; }
.reportMenu .reportForm { position: absolute; right: 0; bottom: 100%; margin-bottom: 6px; width: 320px; max-width: 80vw; background: #fff; padding: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); z-index: 20; }
.modBar summary { color: var(--link); font-weight: 500; }
.modBar[open] summary { margin-bottom: 10px; }
.modBar .formSubmit { margin-top: 8px; align-items: center; }
.modBar .formSubmit input[type=text] { max-width: 420px; }
.modBar select { width: auto; max-width: 320px; }
.reactorList { width: 100%; color: var(--muted); }
button.link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }
.flash { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: 420px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
code { background: #eceff1; padding: 1px 4px; border-radius: var(--radius); font-size: 13px; }

/* ---- members and team, like the old lists ---- */
.countBadge { display: inline-block; vertical-align: middle; background: #cfd8dc; color: #fff; font-size: 12px; font-weight: 400; padding: 0 6px; line-height: 20px; border-radius: var(--radius); position: relative; top: -3px; }
.listHeader { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--link); padding-bottom: 10px; }
.sortSelect { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--link); margin: 0; }
.sortSelect select { border: 0; color: var(--link); background: transparent; padding: 2px 4px; width: auto; }
.memberRows { list-style: none; margin: 0; padding: 0; }
.memberRow { display: flex; gap: 15px; align-items: flex-start; padding: 15px 10px; border-bottom: 1px solid var(--box-line); }
.memberRow:last-child { border-bottom: 0; }
.memberAvatar .userAvatarImage { width: 48px; height: 48px; }
.memberText { min-width: 0; }
.memberName { font-size: 20px; overflow-wrap: anywhere; }
.memberDetails, .memberStats { font-size: 13px; margin-top: 2px; }
.memberStats .statLabel { color: var(--link); }
.badge.userTitleBadge, .rank { display: inline-block; padding: 0 6px; line-height: 20px; border-radius: var(--radius); font-size: 13px; font-weight: 400; vertical-align: middle; position: relative; top: -2px; background: var(--red); color: #fff; }
.memberName .rank, .profileName .rank { margin-top: 0; }
.teamGroup .sectionTitle { color: var(--title); }
.teamGroup + .teamGroup { margin-top: 30px; }

/* ---- profile ---- */
.profileCover { position: relative; height: 200px; background: #263238 url("/assets/header.jpg") center / cover no-repeat; }
.profileCover.defaultCover::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.profileCover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.profileCoverImage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profileCoverAvatar { position: absolute; left: 10px; bottom: -64px; z-index: 2; }
.profileCoverAvatar .userAvatarImage { width: 128px; height: 128px; border: 3px solid #fff; background: #fff; }
.profileName { position: absolute; left: 158px; bottom: 6px; z-index: 2; color: #fff; font-size: 28px; font-weight: 300; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); overflow-wrap: anywhere; }
.profileInfo { margin-left: 158px; padding-top: 12px; color: var(--muted); min-height: 70px; }
.profileInfo p { margin: 0 0 4px; }
.profileButtons { margin-top: 15px; }
.profileButtons .dropdownForm { padding: 15px; min-width: 280px; }
.profileButtons .dropdownForm .button { display: inline-flex; width: auto; }
.tabMenu { display: flex; flex-wrap: wrap; gap: 5px 25px; border-bottom: 1px solid var(--link); margin-bottom: 20px; }
.tabMenu a { font-size: 24px; font-weight: 300; padding-bottom: 6px; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabMenu a.active { border-bottom-color: var(--link); }
.wallForm { margin-bottom: 20px; }
.wallForm textarea { min-height: 70px; }
.wallList { list-style: none; margin: 0; padding: 0; }
.wallEntry { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--box-line); }
.wallEntry:last-child { border-bottom: 0; }
.wallEntry .userAvatarImage { width: 48px; height: 48px; }
.wallText { min-width: 0; flex: 1; }
.wallHead { color: var(--muted); font-size: 13px; }
.wallAuthor { font-size: 20px; }
.wallBody { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.wallDelete button { margin-left: 8px; color: var(--muted); }
.avatarStack { list-style: none; margin: 0; padding: 0 0 0 8px; display: flex; flex-wrap: wrap; }
.avatarStack li { margin-left: -8px; }
.avatarStack .userAvatarImage { width: 40px; height: 40px; border: 2px solid var(--sidebar); }
.coverPreview { display: block; width: 100%; max-width: 800px; aspect-ratio: 4 / 1; object-fit: cover; margin-bottom: 10px; }

/* ---- the Discord box on the start page (looks like Discord's own widget) ---- */
.discordWidget { max-width: 660px; border-radius: 6px; overflow: hidden; background: #1e1f22; color: #dbdee1; margin: 10px 0 20px; }
.discordHeader { display: flex; justify-content: space-between; align-items: center; background: #5865f2; color: #fff; padding: 18px 20px; }
.discordLogo { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.discordOnline { font-size: 14px; }
.discordBody { max-height: 380px; overflow-y: auto; padding: 14px 20px; scrollbar-color: #1a1b1e #2b2d31; }
.discordChannels, .discordMembers { list-style: none; margin: 0; padding: 0; }
.discordChannels > li { color: #f2f3f5; font-size: 17px; padding: 3px 0; }
.discordChannels .discordMembers { margin: 2px 0 4px 14px; }
.htmlContent .discordWidget h3.discordSection, .discordSection { font-size: 13px; font-weight: 500; text-transform: uppercase; color: #b5bac1; margin: 18px 0 8px; letter-spacing: .2px; }
.discordMembers li { display: flex; align-items: center; gap: 6px; padding: 2px 10px; font-size: 14px; color: #949ba4; }
.discordPic { position: relative; width: 16px; height: 16px; flex: none; border-radius: 50%; background: #4e5058; }
.discordPic img { width: 16px; height: 16px; border-radius: 50%; display: block; }
.discordPic::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 7px; height: 7px; border-radius: 50%; border: 2px solid #1e1f22; background: #23a55a; }
.discordMembers li.idle .discordPic::after { background: #f0b232; }
.discordMembers li.dnd .discordPic::after { background: #f23f43; }
.discordName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discordGame { margin-left: auto; color: #6d6f78; padding-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.discordFooter { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid #2b2d31; color: #6d6f78; font-size: 14px; }
.discordJoin, .htmlContent a.discordJoin { background: #2b2d31; color: #f2f3f5; padding: 6px 22px; border-radius: 3px; font-size: 14px; }
.discordJoin:hover, .htmlContent a.discordJoin:hover { background: #35373c; color: #fff; }

/* ---- small screens ---- */
@media (max-width: 1024px) {
  .main.withSidebar { grid-template-columns: minmax(0, 1fr); }
  .boardRow { grid-template-columns: 40px minmax(0, 1fr) 90px; }
  .boardLast { display: none; }
  .threadRow { grid-template-columns: 50px minmax(0, 1fr) 80px; }
  .threadFlags, .threadLast { display: none; }
  .message { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .messageSidebar { display: flex; gap: 12px; text-align: left; align-items: center; padding: 10px; }
  .messageSidebar .userAvatarImage { width: 48px; height: 48px; }
  .messageSidebar .authorStats { display: none; }
  .messageAuthor { margin-top: 0; font-size: 17px; }
  .profileGrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .profileCover { height: 140px; }
  .profileCoverAvatar { bottom: -48px; }
  .profileCoverAvatar .userAvatarImage { width: 96px; height: 96px; }
  .profileName { left: 118px; font-size: 22px; }
  .profileInfo { margin-left: 0; padding-top: 56px; }
  .tabMenu a { font-size: 19px; }
  .memberName { font-size: 17px; }
}
@media (max-width: 768px) {
  .layout { padding: 0 16px; }
  .menuToggle { display: block; }
  .mainMenu { display: none; position: absolute; top: 50px; left: 0; right: 0; background: var(--nav); }
  .mainMenu.open { display: block; }
  .mainMenu ul { flex-direction: column; }
  .userPanel .userName { display: none; }
  .logo img { height: 50px; }
  .logoBar .layout { padding-top: 12px; padding-bottom: 12px; }
  .contentTitle { font-size: 23px; }
  .contentHeader { flex-wrap: wrap; }
  .boardRow { grid-template-columns: 34px minmax(0, 1fr); }
  .boardStats { display: none; }
  .boardTitle { font-size: 17px; }
  .threadRow { grid-template-columns: 40px minmax(0, 1fr); }
  .threadStats { display: none; }
  .threadAvatar .userAvatarImage { width: 36px; height: 36px; }
  .footerBoxes .layout { grid-template-columns: 1fr; }
  .message { padding: 12px; }
  .section { padding: 14px; }
  .notificationDropdown { position: fixed; left: 10px; right: 10px; top: 50px; width: auto; }
}
