/*
 * FUP Classic: the look of Форум Української Правди (oldschool theme, 2015–2024) on SMF 2.1.
 *
 * Loaded after the default theme's index.css and responsive.css. Values come from the
 * archived Themes/oldschool/css/main.css (capture 20240902030733) unless marked otherwise;
 * see docs/FUP_DESIGN_SYSTEM.md for the evidence behind each token.
 *
 * Sections: tokens, page, publisher strip, head (user line, breadcrumb, forum menu),
 * titles, tables, page bar, posts, quotes and code, online block, footer,
 * SMF 2.1 components in FUP colours, phones.
 */

/* Tokens
------------------------------------------------------- */
:root {
	--fup-page: #cccccc;
	--fup-text: #000000;
	--fup-link: #dd0000;
	--fup-link-visited: #770000;
	--fup-border: #808080;
	--fup-panel: #ffffff;
	--fup-panel-alt: #eeeeee;
	--fup-bar: #f0f0f0;
	--fup-head: #cccccc;
	--fup-rule: #b6b6b6;
	--fup-muted: #808080;
	--fup-mobile-muted: #929292;
	--fup-quote-bg: #f9f9f9;
	--fup-quote-border: #cccccc;
	--fup-quote-head: #888888;
	--fup-quote-link: #555555;
	--fup-new: #ff0000;
	--fup-code-bg: #feffec;
	--fup-code-border: #c6a2a2;
	--fup-ok-bg: #e6ffe6;
	--fup-ok-border: #62a762;
	--fup-bad-bg: #ffd1d1;
	--fup-bad-border: #a76262;
	--fup-font: Verdana, Arial, Clean, Helvetica, sans-serif;
	--fup-font-boards: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
	--fup-size: 10pt;
	--fup-size-small: 11px;
	--fup-focus: #1a5fb4; /* not from the archive: a visible keyboard focus ring */
	/* Accessibility deviations (WCAG AA for small text; FUP's values in brackets):
	   links on the grey page background (#dd0000 on #ccc is 3.21:1) and the quote header
	   (#888 on #f9f9f9 is 3.37:1). Set them to #dd0000 and #888888 for the exact FUP look. */
	--fup-link-on-grey: #b00000;
	--fup-quote-head-text: #666666;
}

/* Page
------------------------------------------------------- */
html {
	background: var(--fup-page);
}
body.fup {
	display: block;
	min-height: 0;
	margin: 4px;
	background: var(--fup-page);
	color: var(--fup-text);
	font: var(--fup-size)/normal var(--fup-font);
}
a:link {
	color: var(--fup-link);
	text-decoration: none;
}
a:visited {
	color: var(--fup-link-visited);
	text-decoration: none;
}
a:hover {
	color: var(--fup-link);
	text-decoration: underline;
}
.fup :focus-visible {
	outline: 2px solid var(--fup-focus);
	outline-offset: 1px;
}
.fup-forum {
	max-width: 100%;
	min-height: 600px;
	color: var(--fup-text);
}
.fup-main {
	display: block;
}
#main_content_section {
	padding: 0;
}
.fup-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.fup-show-mobile {
	display: none;
}
.fup img {
	max-width: 100%;
}

/* Publisher strip (FUP: #menulogo-top)
------------------------------------------------------- */
.fup-network {
	display: flow-root;
	margin: 0 0 1px;
}
/* No logo set: the strip only carries the phone menu button, so it is not shown on desktop. */
.fup-network--bare {
	display: none;
}
.fup-network__logo {
	float: left;
}
.fup-network__logo img {
	display: block;
	width: 124px;
	height: 20px;
}
.fup-network__nav {
	position: absolute;
	top: -2px;
	right: 5px;
	padding: 10px;
	font: 0.6rem var(--fup-font);
}
.fup-network__menu li {
	display: inline-block;
	padding: 0 5px;
}
.fup .fup-network__menu a {
	color: var(--fup-text);
}

/* Head: user line, breadcrumb, forum menu
------------------------------------------------------- */
.fup-menu-toggle {
	display: none;
}
.fup-userbar {
	position: relative;
	margin: 0 0 -9px;
	font-size: var(--fup-size-small);
	text-align: right;
}
.fup-userbar__list,
.fup-userbar #top_info {
	display: inline;
	float: none;
	margin: 0;
	padding: 0;
}
.fup-userbar__list > li,
.fup-userbar #top_info > li {
	display: inline;
	float: none;
	position: relative;
	margin: 0;
	padding: 0;
}
.fup-userbar__list > li + li::before {
	content: "\00bb\00a0";
}
.fup-userbar__list > li > a,
.fup-userbar #top_info > li > a {
	display: inline;
	padding: 4px 10px 2px 0;
	font-weight: normal;
	white-space: nowrap;
	background: none;
	border: 0;
}
/* SMF 2.1 paints active, hovered and open user-menu links orange or blue with a text shadow. */
.fup .fup-userbar #top_info > li > a,
.fup .fup-userbar #top_info > li > a.active,
.fup .fup-userbar #top_info > li:hover > a,
.fup .fup-userbar #top_info > li > a:focus,
.fup .fup-userbar #top_info > li > a.open {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--fup-link-on-grey);
	text-shadow: none;
}
.fup .fup-userbar #top_info > li > a.active {
	font-weight: bold;
}
.fup .fup-userbar #top_info > li:hover > a,
.fup .fup-userbar #top_info > li > a.open {
	text-decoration: underline;
}
.fup .fup-userbar #top_info .amt {
	background: var(--fup-link);
	color: #fff;
}
.fup-userbar__hello {
	white-space: normal;
}
.fup-userbar .amt {
	display: inline;
	margin: 0;
	padding: 0 3px;
	background: var(--fup-link);
	border-radius: 2px;
	color: #fff;
	font-size: 0.9em;
	font-weight: bold;
	line-height: 1.3;
	box-shadow: none;
}

.fup-userbar .top_menu {
	text-align: left;
	color: var(--fup-text);
}
/* "Профіль ▼": one menu, one item per line (owner, 2026-10-22). One colour for every item in every
   state (no visited shade, no text shadow); the current page is bold, hover underlines. */
.fup-usermenu {
	position: relative;
}
.fup .fup-userbar #top_info > li > a.fup-usermenu__toggle {
	font-weight: normal;
	text-decoration: none;
}
.fup .fup-userbar #top_info > li > a.fup-usermenu__toggle--current {
	font-weight: bold;
}
.fup .fup-userbar #top_info > li > a.fup-usermenu__toggle:hover,
.fup .fup-userbar #top_info > li.fup-usermenu--open > a.fup-usermenu__toggle {
	text-decoration: underline;
}
.fup-usermenu__toggle::after {
	content: "\00a0\25BC";
	font-size: 0.8em;
}
.fup-usermenu__list {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 90;
	min-width: 15em;
	margin: 3px 0 0;
	padding: 3px 0;
	background: var(--fup-panel);
	border: 1px solid var(--fup-border);
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
	text-align: left;
}
.fup-usermenu--open .fup-usermenu__list {
	display: block;
}
.fup-usermenu__list li {
	display: block;
}
.fup .fup-userbar .fup-usermenu__link:link,
.fup .fup-userbar .fup-usermenu__link:visited {
	display: block;
	padding: 4px 12px;
	color: var(--fup-link-on-grey); /* the same red as "Профіль" above it */
	font-size: var(--fup-size);
	font-weight: normal;
	text-decoration: none;
	text-shadow: none;
	white-space: nowrap;
}
.fup .fup-userbar .fup-usermenu__link:hover,
.fup .fup-userbar .fup-usermenu__link:focus-visible {
	background: var(--fup-panel-alt);
	text-decoration: underline;
}
.fup .fup-userbar .fup-usermenu__link--current:link,
.fup .fup-userbar .fup-usermenu__link--current:visited {
	font-weight: bold;
}
.fup-breadcrumb {
	padding: 5px;
	border-bottom: 1px solid var(--fup-rule);
	font-size: var(--fup-size-small);
}
.fup .fup-breadcrumb a:link,
.fup .fup-forums-menu a:link,
.fup .fup-userbar a:link,
.fup .fup-title a:link,
.fup .fup-footer a:link {
	color: var(--fup-link-on-grey);
}
.fup-breadcrumb__list {
	display: inline;
}
.fup-breadcrumb__item {
	display: inline;
}
.fup-breadcrumb__item + .fup-breadcrumb__item::before {
	content: " > ";
}
.fup-forums-menu {
	padding: 5px 5px 0;
	font-size: var(--fup-size-small);
}
.fup-forums-menu__list {
	display: flex;
	flex-wrap: wrap;
}
.fup-forums-menu__item {
	max-width: 150px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	line-height: 1.3em;
}
.fup-forums-menu__item + .fup-forums-menu__item::before {
	content: "|";
	padding: 0 10px;
	color: var(--fup-text);
}
.fup-news {
	margin: 4px 0;
	padding: 4px 8px;
	background: var(--fup-panel-alt);
	border: 1px solid var(--fup-border);
	font-size: var(--fup-size-small);
}

/* Titles (FUP: #top, h1, #description)
------------------------------------------------------- */
/* On FUP the forum menu's links float over the title block's top padding (h1 at y=74). */
.fup-title {
	margin: -3px 16px 4px 0;
	padding: 0 8px 8px 0;
}
/* A stray BOM line before FUP's board index table added 16px here. */
.fup-title--index {
	margin-bottom: 20px;
}
.fup-title__name {
	margin: 5px 0 0;
	color: var(--fup-text);
	font-size: 16px;
	font-weight: bold;
}
.fup-title--topic .fup-title__name {
	margin-top: 12px;
}
.fup-title__desc,
.fup-title__meta {
	margin: 8px 8px 0 0;
	padding-right: 32px;
	font-size: var(--fup-size-small);
}
.fup-title__back {
	font-size: 0.8em;
}

/* Tables (FUP: table.list)
------------------------------------------------------- */
.fup-table {
	width: 100%;
	margin-bottom: 4px;
	border: 1px solid var(--fup-border);
	border-bottom: 0;
	border-collapse: collapse;
	border-spacing: 0;
}
.fup-table th {
	padding: 2px;
	background: var(--fup-head);
	border-bottom: 1px solid var(--fup-border);
	color: var(--fup-text);
	font-size: var(--fup-size-small);
	font-weight: bold;
	text-align: center;
}
.fup-table th.fup-table__name,
.fup-table th.fup-table__last {
	text-align: left;
}
.fup-table td {
	padding: 4px;
	background: var(--fup-panel);
	font-size: var(--fup-size-small);
}
.fup-table--boards {
	font-family: var(--fup-font-boards);
}
.fup-table--boards .fup-table__name {
	width: 55%;
}
.fup-table--boards .fup-table__num {
	width: 12%;
	text-align: center;
	white-space: nowrap;
}
.fup-table--boards .fup-table__last {
	width: 21%;
	white-space: nowrap;
}
/* FUP printed the last-post date as plain text; it stays a link here, in the text colour. */
.fup .fup-table--boards .fup-table__last a:link,
.fup .fup-table--boards .fup-table__last a:visited {
	color: var(--fup-text);
}
.fup-table__category th {
	text-align: left;
	background: var(--fup-panel-alt);
}
.fup-table__category-desc {
	font-weight: normal;
}
.fup-table__empty {
	text-align: center;
}
.fup-board__name {
	margin: 0;
	color: var(--fup-text);
	font-size: 1.17em;
	font-weight: bold;
}
.fup-board__desc,
.fup-board__mods,
.fup-board__children {
	margin: 4px 8px 16px 4px;
}
.fup-board__mods,
.fup-board__children {
	margin-top: -12px;
}
.fup-board__readers {
	display: block;
	margin: 1em 0;
	font-size: 90%;
}
/* "нове" after a forum or topic name, raised and small (owner, 2026-10-22).
   FUP: red (#ff0000, 4.0:1 on white); the link red passes AA. line-height 0 keeps the row height. */
.fup-new,
.fup a.fup-new:link,
.fup a.fup-new:visited {
	color: var(--fup-link);
	font-size: 65%;
	font-weight: normal;
	line-height: 0;
	vertical-align: super;
}
.fup-table--topics .fup-table__name {
	width: 59%;
}
.fup-table--topics .fup-table__num {
	width: 8%;
	text-align: center;
	white-space: nowrap;
}
.fup-table--topics .fup-table__author {
	width: 12%;
	text-align: center;
	white-space: nowrap;
}
.fup-table--topics .fup-table__last {
	width: 15%;
	white-space: nowrap;
}
.fup-table__mod {
	width: 1%;
	white-space: nowrap;
	text-align: center;
}
.fup-topic--alt td {
	background: var(--fup-panel-alt);
}
.fup-topic__title {
	margin: 0;
	color: var(--fup-text);
	font-size: 12px;
	font-weight: normal;
}
.fup-topic__marks .main_icons {
	margin: 0 1px;
	vertical-align: -3px;
}
.fup-topic__pages {
	font-size: smaller;
}
.fup-topic__pages .fup-pages__label {
	margin: 0;
}
.fup-topic--unapproved td {
	background: var(--fup-bad-bg);
}

/* Page bar (FUP: div.nav, div.paging)
------------------------------------------------------- */
.fup-nav {
	display: flow-root;
	clear: both;
	margin: 0 0 2px;
	padding: 2px;
	background: var(--fup-bar);
	border: 1px solid var(--fup-border);
	font-size: var(--fup-size-small);
}
.fup .fup-nav a:link,
.fup .fup-nav a:visited {
	color: var(--fup-text);
}
.fup-nav__links a {
	padding-right: 10px;
}
.fup-pages {
	float: right;
}
.fup-pages a {
	margin: 0 1px;
	padding: 0 0 1px;
	font-size: var(--fup-size-small);
	font-weight: normal;
}
.fup-pages__current {
	margin: 0 4px;
}
.fup-pages__expand {
	font-weight: bold;
	cursor: pointer;
}
/* Topic and forum actions, after FUP's #thread-options: a centred grey bar of bold black links. */
.fup-actions {
	margin: 3px 0;
	padding: 2px;
	background: var(--fup-panel-alt);
	border: 1px solid var(--fup-border);
	text-align: center;
}
.fup .fup-actions .buttonlist {
	display: inline;
	float: none;
	padding: 0;
}
.fup .fup-actions .button,
.fup .fup-actions a.button:link,
.fup .fup-actions a.button:visited {
	margin: 0;
	padding: 0 6px;
	background: none;
	border: 0;
	color: var(--fup-text);
	font-weight: bold;
}
.fup .fup-actions .button:hover,
.fup .fup-actions .button:focus {
	background: none;
	color: #990000;
}
.fup .fup-actions .button.active,
.fup .fup-actions a.button.active:link,
.fup .fup-actions a.button.active:visited {
	background: none;
	text-decoration: underline;
}
.fup-legend {
	margin: 6px 0;
	font-size: var(--fup-size-small);
}
.fup-legend__icons .main_icons {
	margin-left: 8px;
	vertical-align: -3px;
}

/* Posts (FUP: div.message, div.generic, div.message-body, div.message-options)
------------------------------------------------------- */
.fup-posts form {
	margin: 0;
}
.fup-post {
	margin: 0 0 2px;
}
.fup-post__head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 4px;
	background: var(--fup-panel);
	border: 1px solid var(--fup-border);
	border-bottom: 0;
}
.fup-post__subject {
	margin: 0;
	color: var(--fup-text);
	font-size: var(--fup-size);
	font-weight: bold;
}
.fup .fup-post__subject a:link,
.fup .fup-post__subject a:visited {
	color: var(--fup-text);
	text-decoration: none;
}
.fup-post__author {
	margin-bottom: 5px;
	font-size: 12px;
	font-weight: bold;
}
.fup-post__warning {
	font-size: var(--fup-size-small);
	font-weight: normal;
}
.fup-post__meta {
	flex: none;
	font-size: var(--fup-size-small);
	text-align: right;
	white-space: nowrap;
}
.fup .fup-post__date:link,
.fup .fup-post__date:visited {
	color: var(--fup-text);
}
.fup-post__ip {
	display: block;
	margin-top: 4px;
}
.fup-post__body {
	/* flow-root, not overflow:hidden: the "Більше…" menu has to show over the next post. */
	display: flow-root;
	background: var(--fup-panel);
	border: 1px solid var(--fup-border);
	border-top: 0;
}
.fup-post__text,
.fup .fup-post__text.inner {
	min-height: 0;
	margin: 0;
	padding: 15px 5px;
	border: 0;
	box-shadow: none;
	overflow-wrap: anywhere;
}
.fup-post__edited {
	margin: 0;
	padding: 0 5px;
	font-size: 10px;
	font-style: italic;
}
.fup-post__edited:empty {
	display: none;
}
.fup-post__signature {
	margin: 0 5px 8px;
	padding-top: 4px;
	border-top: 1px solid var(--fup-panel-alt);
	font-size: var(--fup-size-small);
}
.fup-post__options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 4px 10px;
	padding: 2px;
	background: var(--fup-panel-alt);
	font-size: var(--fup-size-small);
}
.fup .fup-post__options a:link,
.fup .fup-post__options a:visited {
	color: var(--fup-text);
}
.fup-post__likes {
	display: flex;
	gap: 8px;
}
/* Owner, 2026-11-12: post buttons on the left; FUP's share icons stay on the right
   (13px fb.gif / tw.gif, main.css .oldsocialicons). */
.fup-post__share {
	margin-left: auto;
}
.fup-post__share a {
	margin-left: 4px;
}
.fup-post__share img {
	height: 13px;
	vertical-align: middle;
}
.fup-post--unapproved .fup-post__head,
.fup-post--unapproved .fup-post__text {
	background: var(--fup-bad-bg);
}
.fup-post__attachments {
	margin: 0 5px 8px;
	padding: 16px;
	background: var(--fup-panel);
	border: 1px solid var(--fup-border);
}
.fup .quickbuttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	margin: 0;
	float: none;
}
.fup .quickbuttons > li {
	float: none;
	position: relative;
}
.fup .quickbuttons > li > a {
	padding: 0;
	min-height: 0;
	border: 0;
	box-shadow: none;
	background: none;
	color: var(--fup-text);
	font-size: var(--fup-size-small);
	line-height: 1.6;
	text-transform: none;
}
.fup .quickbuttons > li > a:hover {
	box-shadow: none;
	text-decoration: underline;
}
.fup .quickbuttons .main_icons {
	display: none;
}
.fup .quickbuttons .post_options ul {
	right: auto;
	left: 0;
}
.fup .quickbuttons li ul {
	background: var(--fup-panel);
	border: 1px solid var(--fup-border);
	border-radius: 0;
	box-shadow: none;
	text-align: left;
}

/* Quotes and code (FUP: blockquote.bbc_standard_quote, .quoteheader, pre.bbcode)
------------------------------------------------------- */
.fup blockquote {
	margin: 0.1em 0 0.4em;
	padding: 0.5em 0.8em;
	overflow: auto;
	background: var(--fup-quote-bg);
	border: 1px dotted var(--fup-quote-border);
	border-left: 2px solid var(--fup-quote-border);
	font-size: 11px;
}
.fup-quote__head,
.fup blockquote cite {
	display: block;
	margin: 0;
	padding: 0 0.3em;
	border: 0;
	color: var(--fup-quote-head-text);
	font-size: x-small;
	font-style: italic;
}
.fup blockquote cite::before {
	content: none;
}
.fup .fup-quote__head a:link,
.fup .fup-quote__head a:visited,
.fup blockquote cite a:link,
.fup blockquote cite a:visited {
	color: var(--fup-quote-link);
}
.fup .fup-quote__head a:hover,
.fup blockquote cite a:hover {
	color: var(--fup-link);
}
.fup-quote__toggle {
	display: none;
}
.fup-js .fup-quote__toggle {
	display: block;
	margin: 0 0 2px;
	padding: 0;
	height: auto;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--fup-quote-link);
	font: italic x-small var(--fup-font);
	cursor: pointer;
}
.fup-js .fup-quote__toggle:hover {
	color: var(--fup-link);
	text-decoration: underline;
}
.fup-js blockquote[data-fup-history]:not(.fup-quote--open) > .fup-quote__head,
.fup-js blockquote[data-fup-history]:not(.fup-quote--open) > blockquote {
	display: none;
}
.fup .bbc_code {
	padding: 8px;
	background: var(--fup-code-bg);
	border: 1px solid var(--fup-code-border);
	border-radius: 0;
	font-size: var(--fup-size-small);
}
.fup .codeheader {
	color: var(--fup-quote-head);
	font-size: x-small;
	font-style: italic;
}
.fup .bbc_link:link,
.fup .bbc_link:visited {
	border-bottom: 0;
}
.fup .bbc_link:hover {
	border-bottom: 0;
	text-decoration: underline;
}
.fup img.smiley {
	margin: 0 3px;
	vertical-align: middle;
}
/* FUP: .yt-wrapper inside a 640×360 box; SMF 2.1's [youtube] gives a 16:9 .videocontainer. */
.fup .videocontainer {
	max-width: 640px;
}

/* Social post cards (FupClassic-Embeds.php, fup.js; owner, 2026-11-12): the link and a "Показати"
   button in a quote-like frame; the network's own post replaces the button after a click.
------------------------------------------------------- */
.fup-embed {
	display: block;
	max-width: 640px;
	margin: 4px 0;
	padding: 6px 8px;
	/* No quote frame or colour (owner, 2026-11-13); was var(--fup-quote-bg) with the quote's
	   1px dotted / 2px solid left border in var(--fup-quote-border). */
	background: transparent;
	border: 0;
}
.fup-embed + br {
	display: none;
}
.fup-embed__link {
	display: block;
	overflow-wrap: anywhere;
	font-size: var(--fup-size-small);
}
.fup .fup-embed__show {
	height: auto;
	margin: 4px 0 0;
	padding: 2px 8px;
	background: var(--fup-panel);
	border: 1px solid var(--fup-border);
	border-radius: 0;
	box-shadow: none;
	color: var(--fup-text);
	font: var(--fup-size-small) var(--fup-font);
	cursor: pointer;
}
.fup .fup-embed__show:hover,
.fup .fup-embed__show:focus-visible {
	color: var(--fup-link);
	text-decoration: underline;
}
.fup-embed__box {
	margin-top: 6px;
	font-size: var(--fup-size-small);
}
.fup-embed__frame {
	display: block;
	width: 100%;
	border: 0;
	background: var(--fup-panel);
}
/* An open Telegram post: the post's own transparent page shows the forum, not a white box
   (owner, 2026-11-12). */
.fup-embed--telegram .fup-embed__frame {
	background: transparent;
	/* Telegram's page says ":root { color-scheme: light dark }". When the frame's scheme differs from
	   the page inside, the browser paints an opaque canvas behind it (black on a phone in dark mode).
	   The same scheme on the frame keeps it see-through. */
	color-scheme: light dark;
	/* Telegram's bubble starts 7px in (room for its tail); pulled left to line up with the link. */
	width: calc(100% + 7px);
	margin-left: -7px;
}
.fup-embed__box--video .fup-embed__frame {
	height: auto !important;
	aspect-ratio: 16 / 9;
}

/* Online block (FUP: div.generic.mod_onlineusers)
------------------------------------------------------- */
.fup-info {
	margin-top: 1em;
}
/* The online block follows the page content on every page (FUP: margin-top 1em after the table). */
.fup-main + .fup-online {
	margin-top: 1em;
}
.fup-online,
.fup-panel {
	margin: 0 0 4px;
	padding: 4px;
	background: var(--fup-panel-alt);
	border: 1px solid var(--fup-border);
}
.fup-online__title,
.fup-panel__title {
	margin: 0;
	padding: 0;
	color: var(--fup-text);
	font-size: 1.2em;
	font-weight: bold;
}
.fup .fup-online__title a:link,
.fup .fup-online__title a:visited,
.fup .fup-panel__title a:link,
.fup .fup-panel__title a:visited {
	color: var(--fup-text);
}
.fup-online__users,
.fup-online__groups,
.fup-online__count,
.fup-panel p,
.fup-panel__list {
	font-size: 80%;
}
/* FUP styled ".onlineusers_records" but the markup said "onlineusers_record": the member count stayed 100%. */
.fup-online__count--members {
	font-size: 100%;
}

/* Poll (FUP: style.css #topic_poll)
------------------------------------------------------- */
.fup-poll {
	margin: 0 0 4px;
	padding: 10px;
	background: var(--fup-bar);
	border: 1px solid var(--fup-border);
}
.fup-poll__question {
	margin: 0 0 8px;
	color: var(--fup-text);
	font-size: 12px;
}
.fup-poll .options dt {
	padding-top: 4px;
	border-top: 1px dashed #dddddd;
}

/* Login (FUP: div.information + div.generic, capture 20230703020744)
------------------------------------------------------- */
.fup .fup-login__register {
	margin: 0 0 8px;
}
.fup .fup-login__box {
	min-height: 250px;
	padding: 4px 6px;
	text-align: left;
}
.fup-login__title {
	margin: 0 0 5px;
	font-size: 1em;
	font-weight: bold;
}
.fup-login__field {
	margin: 0 0 1.2em;
}
.fup-login__forgot {
	margin-left: 4px;
}

/* Registration
------------------------------------------------------- */
/* SMF drops the top border of #registration .roundframe (index.css:1647), expecting a bar above;
   the agreement step has no bar now, so its first box gets the line back. */
.fup #registration > .fup-register__text:first-child {
	border-top: 1px solid var(--fup-border);
}

/* Footer (FUP: Phorum #footer-plug)
------------------------------------------------------- */
.fup-footer {
	margin-top: 26px;
	color: var(--fup-text);
	font-size: 9px;
	text-align: center;
}
.fup-footer__links li {
	display: inline;
}
.fup-footer__links li + li::before {
	content: " | ";
}
.fup-footer__load {
	margin-top: 4px;
}

/* SMF 2.1 components in FUP colours (pages FUP's archive does not show)
------------------------------------------------------- */
.fup h1, .fup h2, .fup h3, .fup h4, .fup h5, .fup h6 {
	color: var(--fup-text);
}
.fup .windowbg,
.fup .roundframe,
.fup .information,
.fup .descbox,
.fup #preview_body {
	margin: 0 0 4px;
	padding: 8px;
	background: var(--fup-panel);
	border: 1px solid var(--fup-border);
	border-radius: 0;
	box-shadow: none;
	color: var(--fup-text);
}
.fup .windowbg:nth-of-type(even) {
	background: var(--fup-panel);
}
.fup .roundframe,
.fup .information,
.fup .descbox {
	background: var(--fup-panel-alt);
}
/* FUP: div.cat_bar (main.css) and .catbg / .titlebg on flat #eee images (index.css, catbg2.jpg, titlebg.jpg). */
.fup .cat_bar,
.fup .title_bar {
	margin: 0 0 1px;
	padding: 0 0 0 9px;
	overflow: hidden;
	background: var(--fup-panel-alt);
	border: 1px solid var(--fup-border);
	border-radius: 0;
	box-shadow: none;
}
.fup .catbg,
.fup .titlebg,
.fup .subbg {
	margin-right: 10px;
	padding: 0;
	min-height: 0;
	background: none;
	border: 0;
	color: var(--fup-text);
	font-size: 1em;
	font-weight: bold;
	line-height: 2em;
	text-shadow: none;
}
.fup .catbg a:link, .fup .catbg a:visited,
.fup .titlebg a:link, .fup .titlebg a:visited {
	color: var(--fup-text);
}
/* FUP's bars carried text only. SMF's decorative heading icons go (e.g. profile_hd.png, a blurry
   24 px picture by "Відомості"); help links and collapse toggles stay (owner, 2026-10-22). */
.fup .catbg > span.main_icons,
.fup .titlebg > span.main_icons,
.fup .catbg > img.icon,
.fup .titlebg > img.icon {
	display: none;
}
.fup h3.profile_hd::before {
	content: none;
}
/* SMF's grey "no avatar" silhouette (avatars/default.png); uploaded avatars still show. FUP had none. */
.fup img.avatar[src$="/default.png"],
.fup #basicinfo img.avatar[src$="/default.png"] {
	display: none;
}
/* SMF's online / offline dots (member list, profile) in the theme's colours instead of green and grey
   (owner, 2026-10-22): solid, no outline; online the theme red (links, forum names), offline the grey
   of the table heads. */
.fup .on,
.fup .off {
	width: 10px;
	height: 10px;
	border: 0;
}
.fup .on {
	background: var(--fup-link);
}
.fup .off {
	background: var(--fup-head);
}
/* Member list header: black links on the grey head, as in the topic list (owner, 2026-10-22). */
.fup table.table_grid th a:link,
.fup table.table_grid th a:visited {
	color: var(--fup-text);
}
.fup table.table_grid th.selected a:link,
.fup table.table_grid th.selected a:visited {
	text-decoration: underline;
}
.fup .sub_bar {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--fup-border);
}
.fup .button,
.fup a.button:link,
.fup a.button:visited,
.fup input[type="submit"],
.fup input[type="button"],
.fup button.button {
	height: auto;
	min-height: 0;
	margin: 2px 2px 2px 0;
	padding: 1px 8px;
	background: var(--fup-panel-alt);
	border: 1px solid var(--fup-border);
	border-radius: 0;
	box-shadow: none;
	color: var(--fup-text);
	font: var(--fup-size-small)/1.6 var(--fup-font);
	text-transform: none;
	text-shadow: none;
	cursor: pointer;
}
.fup .button:hover,
.fup .button:focus,
.fup input[type="submit"]:hover,
.fup input[type="button"]:hover {
	background: var(--fup-panel);
	border-color: var(--fup-border);
	box-shadow: none;
	color: var(--fup-link);
	text-decoration: none;
}
.fup .button.active,
.fup a.button.active:link,
.fup a.button.active:visited {
	background: var(--fup-head);
	border-color: var(--fup-border);
	color: var(--fup-text);
	font-weight: bold;
	text-shadow: none;
}
.fup input[type="text"],
.fup input[type="password"],
.fup input[type="email"],
.fup input[type="search"],
.fup input[type="number"],
.fup input[type="url"],
.fup input[type="date"],
.fup input[type="time"],
.fup select,
.fup textarea {
	margin: 1px 0;
	padding: 2px 4px;
	height: auto;
	background: var(--fup-panel);
	border: 1px solid var(--fup-border);
	border-radius: 0;
	box-shadow: none;
	color: var(--fup-text);
	font: var(--fup-size-small) var(--fup-font);
}
.fup textarea {
	font-size: 12px;
	line-height: 1.3;
}
.fup .errorbox,
.fup .noticebox,
.fup .infobox {
	margin: 0 0 8px;
	padding: 8px;
	border: 1px solid;
	border-radius: 0;
	box-shadow: none;
	background-image: none;
	color: var(--fup-text);
	font-size: var(--fup-size-small);
}
/* FUP's div.information / div.notice / div.warning had no icon. */
.fup .errorbox::before,
.fup .noticebox::before,
.fup .infobox::before {
	content: none;
}
.fup .errorbox {
	background-color: var(--fup-bad-bg);
	border-color: var(--fup-bad-border);
}
.fup .noticebox {
	background-color: var(--fup-panel-alt);
	border-color: var(--fup-border);
}
.fup .infobox {
	background-color: var(--fup-ok-bg);
	border-color: var(--fup-ok-border);
	font-size: 0.9em;
	line-height: 1.5em;
}
/* SMF's page bar (member list, unread, recent, search results, messages…): the page list and the
   buttons float, so they sit at different heights. As a flex row they are centred vertically
   (owner, 2026-10-22); the page list goes left and the buttons right, whatever the markup order. */
.fup .pagesection {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	margin: 0 0 2px;
	padding: 2px 4px;
	background: var(--fup-bar);
	border: 1px solid var(--fup-border);
	font-size: var(--fup-size-small);
}
.fup .pagesection > .pagelinks,
.fup .pagesection > .floatleft {
	order: -1;
	float: none;
	margin: 0;
	padding: 0;
}
.fup .pagesection > .buttonlist,
.fup .pagesection > .floatright {
	float: none;
	margin: 0 0 0 auto;
	padding: 0;
}
.fup .pagesection > .pagelinks + .buttonlist,
.fup .pagesection > .floatleft ~ .floatright {
	margin-left: auto;
}
.fup .pagesection .button,
.fup .pagelinks .button {
	margin: 0 4px 0 0;
}
.fup .nav_page:link,
.fup .nav_page:visited,
.fup .pagelinks a:link,
.fup .pagelinks a:visited {
	color: var(--fup-text);
}
.fup .current_page {
	font-weight: bold;
	color: var(--fup-text);
}
.fup table.table_grid {
	border: 1px solid var(--fup-border);
	border-collapse: collapse;
}
.fup table.table_grid th,
.fup table.table_grid .title_bar th,
.fup tr.title_bar th {
	padding: 2px 4px;
	background: var(--fup-head);
	border-bottom: 1px solid var(--fup-border);
	color: var(--fup-text);
	font-size: var(--fup-size-small);
}
.fup table.table_grid td {
	padding: 4px;
	border: 0;
	font-size: var(--fup-size-small);
}
.fup table.table_grid tr.windowbg {
	background: var(--fup-panel);
	border: 0;
	box-shadow: none;
}
.fup table.table_grid tr.windowbg:nth-of-type(even) {
	background: var(--fup-panel-alt);
}
.fup .generic_list_wrapper {
	border: 0;
	box-shadow: none;
}
.fup .popup_window,
.fup .top_menu,
.fup .dropmenu li ul {
	background: var(--fup-panel);
	border: 1px solid var(--fup-border);
	border-radius: 0;
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
	color: var(--fup-text);
}
.fup .popup_heading {
	background: var(--fup-head);
	color: var(--fup-text);
}
.fup .dropmenu li a,
.fup .dropmenu li a:link,
.fup .dropmenu li a:visited {
	border-radius: 0;
	color: var(--fup-text);
}
.fup .dropmenu li a.active,
.fup .dropmenu li a.active:hover,
.fup .dropmenu li:hover a.active,
.fup .dropmenu li:hover > a,
.fup .dropmenu li a:focus {
	background: var(--fup-head);
	border-color: var(--fup-border);
	border-radius: 0;
	box-shadow: none;
	color: var(--fup-text);
	text-shadow: none;
}
.fup .amt {
	background: var(--fup-link);
	color: #fff;
	box-shadow: none;
}
.fup .bbc_standard_quote,
.fup .bbc_alternate_quote {
	background: var(--fup-quote-bg);
}

/* SMF 2.1 topic lists on other pages (unread, recent, search) in FUP's topic-list style. */
.fup #display_head {
	margin: 0 16px 4px 0;
	padding: 0 8px 8px 0;
	background: none;
	border: 0;
}
.fup .display_title {
	margin: 5px 0 0;
	color: var(--fup-text);
	font-size: 16px;
	font-weight: bold;
}
.fup #topic_header,
.fup .title_bar#topic_header {
	background: var(--fup-head);
	font-size: var(--fup-size-small);
}
.fup #topic_header a:link,
.fup #topic_header a:visited {
	color: var(--fup-text);
}
.fup #topic_container > div:nth-of-type(even) {
	background: var(--fup-panel-alt);
}
.fup .new_posts,
.fup a.new_posts:link,
.fup a.new_posts:visited {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--fup-link);
	font-size: 80%;
	font-weight: normal;
	text-transform: none;
	text-shadow: none;
}

/* Phones (FUP: @media screen and (max-width: 45.9375em) in main.css)
------------------------------------------------------- */
@media screen and (max-width: 45.9375em) {
	body.fup {
		margin: 4px 0;
	}
	.fup-forum {
		position: relative;
		text-align: center;
	}
	.fup-hide-mobile {
		display: none !important;
	}
	.fup-show-mobile {
		display: inline;
	}
	p.fup-show-mobile {
		display: block;
	}

	/* Phones (owner, 2026-11-12): no logo row. The strip takes no height; the menu button it holds
	   sits in the same row as the page title (the first thing in the forum frame), on the right.
	   Desktop keeps the logo strip unchanged. */
	.fup-network,
	.fup-network--bare {
		display: block;
		position: relative;
		height: 0;
		margin: 0;
	}
	.fup-network__logo {
		display: none;
	}
	.fup-network__nav {
		position: static;
		display: none;
		text-align: center;
	}
	.fup-network__menu li {
		margin: 4px;
		padding: 0;
	}
	.fup-head {
		display: none;
		padding: 20px 30px 0;
		text-align: center;
	}
	/* FUP kept #menulogo hidden on phones even with the menu open. */
	.fup-menu-open .fup-head {
		display: block;
	}
	.fup-menu-toggle {
		display: block;
		position: absolute;
		top: 0;
		right: 8px;
		z-index: 2;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
		color: var(--fup-link-visited);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent; /* no blue flash over the bars after a tap */
	}
	.fup .fup-menu-toggle:hover,
	.fup .fup-menu-toggle:focus,
	.fup .fup-menu-toggle:active {
		background: none;
		border: 0;
		box-shadow: none;
		color: var(--fup-link-visited);
	}
	.fup-menu-toggle__bars,
	.fup-menu-toggle__bars::before,
	.fup-menu-toggle__bars::after {
		display: block;
		width: 24px;
		height: 3px;
		margin: 0 auto;
		background: currentColor;
		content: "";
	}
	.fup-menu-toggle__bars {
		position: relative;
	}
	.fup-menu-toggle__bars::before {
		position: absolute;
		top: -8px;
	}
	.fup-menu-toggle__bars::after {
		position: absolute;
		top: 8px;
	}
	.fup-userbar {
		margin: 0;
		text-align: center;
	}
	.fup-userbar__list > li > a,
	.fup-userbar #top_info > li > a {
		display: inline-block;
		padding: 6px 4px;
	}
	/* On phones the open "Профіль ▼" list goes into the flow under the user line. */
	.fup-usermenu__list {
		position: static;
		margin: 4px auto 8px;
		max-width: 20em;
		text-align: center;
	}
	.fup .fup-userbar .fup-usermenu__link:link,
	.fup .fup-userbar .fup-usermenu__link:visited {
		padding: 10px 12px;
	}
	.fup-breadcrumb {
		margin: 10px 0 0;
		text-align: center;
	}
	.fup-forums-menu__list {
		justify-content: center;
	}
	.fup-forums-menu__item {
		padding: 4px;
	}
	.fup-forums-menu__item + .fup-forums-menu__item::before {
		content: none;
	}
	.fup-title {
		margin: 0;
		padding: 0;
		text-align: center;
	}
	/* Room for the menu button on both sides, so a centred title never runs under it. */
	.fup-title__name {
		min-height: 44px;
		padding: 10px 52px 0;
		box-sizing: border-box;
	}
	.fup-title__desc {
		margin: 0;
		padding: 10px 0;
	}
	/* Pages that do not start with the theme's title block (login, profile, messages, admin, errors):
	   an empty row for the menu button, so it never covers content. */
	.fup-main {
		display: flow-root; /* keeps the margin below inside, so the button stays at the top */
	}
	.fup-main > :first-child:not(.fup-title) {
		margin-top: 52px;
	}
	/* The title row comes first (it shares the row with the menu button); "Всі форуми" goes under it. */
	.fup-title {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.fup-title__back {
		display: inline-block;
		order: 2;
		margin: 6px 0 10px;
	}
	.fup-title__name,
	.fup-title--topic .fup-title__name {
		margin-top: 5px;
		width: 100%;
	}

	/* Board index rows become centred blocks. */
	.fup-table--boards thead {
		display: none;
	}
	.fup-table--boards tr,
	.fup-table--boards td.fup-table__name {
		display: block;
		width: 100%;
		text-align: center;
	}
	.fup-board__name {
		padding: 20px 0 5px;
		font-size: 1.4em;
	}
	.fup-board__desc {
		margin: 0;
		padding: 0 30px;
	}
	.fup-board__readers {
		margin: 10px 0 0;
		opacity: 0.5;
	}

	/* Topic list: title on the left, a link to the last post on the right. */
	.fup-table--topics thead {
		display: none;
	}
	.fup-table--topics .fup-topic__main {
		position: relative;
		width: auto;
		padding: 9px 50px 9px 9px;
		text-align: left;
	}
	.fup-topic__title {
		font-size: 1.15em;
	}
	.fup-topic__mobile {
		margin: 4px 0 0;
	}
	.fup .fup-topic__last-link:link,
	.fup .fup-topic__last-link:visited {
		position: absolute;
		top: 5px;
		right: 5px;
		padding: 7px 7px 22px 15px;
		color: var(--fup-mobile-muted);
		font-size: 1.3em;
	}
	.fup-pages {
		display: block;
		float: none;
		padding: 15px 8px 8px;
	}
	.fup-pages a,
	.fup-pages strong {
		font-size: 1.23em;
	}
	.fup-pages__link {
		letter-spacing: 4px;
	}
	.fup-nav {
		padding: 0 0 10px;
	}
	.fup-nav__links a {
		display: inline-block;
		padding: 4px 5px;
		font-size: 1.1em;
		opacity: 0.6;
	}

	/* Posts: no subject line, author left, smaller muted meta, larger text. */
	.fup-post__head {
		align-items: flex-start;
	}
	.fup-post__subject {
		display: none;
	}
	.fup-post__author {
		margin: 3px 0 0 5px;
		font-size: 1em;
		text-align: left;
	}
	.fup-post__meta {
		font-size: 0.75em;
		opacity: 0.7;
	}
	.fup-post__text {
		padding: 5px 12px 12px;
		font-size: 1.15em;
		text-align: left;
	}
	.fup .quickbuttons > li > a {
		padding: 10px 6px;
		font-size: 0.9em;
	}
	/* FUP .newsocialicons: font-size 1.4em, padding 14px 4px, opacity .3 */
	.fup-post__share a {
		display: inline-block;
		padding: 10px 4px;
		opacity: 0.3;
	}
	.fup-post__share img {
		height: 20px;
	}
	.fup-actions {
		padding: 10px;
	}
	.fup .fup-actions .button {
		display: inline-block;
		padding: 5px;
		font-weight: normal;
	}
	.fup-js .fup-quote__toggle {
		padding: 8px 0;
	}
	.fup-post__share a {
		display: inline-block;
		padding: 8px 6px;
	}

	.fup .fup-login__box {
		min-height: 0;
	}
	.fup-online {
		font-size: 0.9em;
		opacity: 0.7;
	}
	.fup-online__title {
		display: none;
	}
}

/* Smiley buttons and windows (scripts/fup.js), after FUP's editor tools (main.css:793-834):
   buttons #eee with a #ddd border, #777 on hover; the window #eee with a #777 border, 5px 10px padding,
   350px wide (450px for the bigger sets); the × after .colorPickerCloseButton. The × floats in the first row
   so no band is left empty above the smileys (owner). */
.fup .fup-smileys-holder {
	position: relative;
}
.fup .sceditor-insertemoticon.fup-smileys {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 3px !important;
}
.fup .fup-smileys__button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 26px;
	margin: 0;
	padding: 2px 6px 2px 6px;
	font: 11px Arial, Helvetica, sans-serif;
	color: #000;
	background: #eee;
	border: 1px solid #ddd;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
}
.fup .fup-smileys__button:hover,
.fup .fup-smileys__button:focus-visible,
.fup .fup-smileys__button[aria-expanded="true"] {
	background: #eee;
	border-color: #777;
}
/* Icons centred on the label: SCEditor's ".sceditor-insertemoticon img" margin (6px 7px 0 0)
   pushed them down (owner, 2026-11-12). Own proportions, at most 20px high, never enlarged. */
.fup .sceditor-insertemoticon .fup-smileys__icon {
	display: block;
	flex: none;
	width: auto;
	height: auto;
	max-width: 36px;
	max-height: 20px;
	margin: 0;
}
.fup .fup-smileys__window {
	position: absolute;
	z-index: 1000;
	box-sizing: border-box;
	width: 350px;
	max-width: 100%;
	max-height: 320px;
	overflow-y: auto;
	padding: 5px 10px;
	text-align: left;
	background: #eee;
	border: 1px solid #777;
}
.fup .fup-smileys__window--wide {
	width: 450px;
}
.fup .fup-smileys__window[hidden] {
	display: none;
}
.fup .fup-smileys__window img {
	margin: 3px;
	vertical-align: middle;
	cursor: pointer;
}
.fup .fup-smileys__window img:focus-visible {
	outline: 1px dotted #000;
}
.fup .fup-smileys__close {
	float: right;
	margin: -4px -9px 2px 4px;
	width: 15px;
	height: 15px;
	padding: 0;
	font: bold 12px/11px Arial, Helvetica, sans-serif;
	text-align: center;
	color: #000;
	background: #eee;
	border: 1px solid #777;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
}
.fup .fup-smileys__close:hover,
.fup .fup-smileys__close:focus-visible {
	background: #fff;
	border-color: #777;
}
@media (max-width: 720px) {
	.fup .fup-smileys__close {
		width: 28px;
		height: 28px;
		font-size: 16px;
		line-height: 26px;
	}
}
