/*  X-Silver
    --------------------------------------------------------------
    Based on style:   prosilver
    Original author:  Tom Beddard ( http://www.subBlue.com/ )
    --------------------------------------------------------------
    Load order: the unmodified prosilver layers come from the parent
    style, then X-Silver's own layers (tokens first, then layout,
    components and the page-specific files).

    Child styles of X-Silver start their stylesheet.css with
        @import url("../../x-silver/theme/stylesheet.css");
    and then add only their own overrides.
*/
@import url("../../prosilver/theme/normalize.css");
@import url("../../prosilver/theme/base.css");
@import url("../../prosilver/theme/utilities.css");
@import url("common.css?v=1.7.0");
@import url("../../prosilver/theme/links.css");
@import url("../../prosilver/theme/content.css");
@import url("../../prosilver/theme/buttons.css");
@import url("../../prosilver/theme/cp.css");
@import url("../../prosilver/theme/forms.css");
@import url("../../prosilver/theme/icons.css");
@import url("colours.css?v=1.7.0");
@import url("../../prosilver/theme/responsive.css");
@import url("tokens.css?v=1.7.0");
@import url("layout.css?v=1.7.0");
@import url("components.css?v=1.7.0");
@import url("status-icons.css?v=1.7.0");
@import url("topic.css?v=1.7.0");
@import url("posting.css?v=1.7.0");
@import url("ucp.css?v=1.7.0");
@import url("members.css?v=1.7.0");
@import url("search.css?v=1.7.0");
@import url("mcp.css?v=1.7.0");

/* Site name colours (lit from above): base tone and the part after the last dot, taken from this theme's logo */
:root { --x-name-1a: #26364f; --x-name-1b: #111a2b; --x-name-2a: #6ba5ee; --x-name-2b: #2f66b8; --x-fname-1a: #ffffff; --x-fname-1b: #dbe3f0; --x-fname-2a: #8dbcf5; --x-fname-2b: #4a86d8; --x-topbar-bg: color-mix(in srgb, var(--x-surface) 55%, transparent); --x-topbar-line: rgba(15, 23, 42, .08); --x-topbar-h: 60px; --ico-forum-bubble: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1%22/%3E%3C/svg%3E"); --x-header-min-m: 210px; --x-topbar-control-bg: color-mix(in srgb, var(--x-surface) 90%, var(--x-bar-main)); --x-topbar-control-text: var(--x-text); --x-topbar-control-hover-text: var(--x-heading); --x-topbar-control-border: var(--x-border-strong); --x-bar-main: var(--x-bar-bg); --x-topbar-text: var(--x-header-text); --x-header-min: 302px; --x-icon: #111827; --x-approval: #2563eb; --x-logo-ratio: 0.87; --x-logo-h: 105px; --x-topbar-register-bg: #326fca; }

/* Header: a soft silver-and-blue wash instead of flat white. A cool blue glow on the right, a pale silver sheen on the left,
   and a few very faint diagonal highlights (the stroke of the X). Light and quiet, the navy text and logo stay as they are. */
.headerbar::before {
	background:
		radial-gradient(ellipse 46% 130% at 88% 20%, rgba(59, 125, 216, .16), transparent 70%),
		radial-gradient(ellipse 40% 120% at 8% 0%, rgba(176, 190, 212, .30), transparent 72%),
		repeating-linear-gradient(118deg, rgba(255, 255, 255, 0) 0 46px, rgba(255, 255, 255, .55) 46px 48px, rgba(255, 255, 255, 0) 48px 120px),
		linear-gradient(180deg, #ffffff 0%, #eef2f8 100%);
}

/* Bell, messages and the user pill on the washed header: white chips with a hairline and a soft shadow, so they stand out from the tint */
.x-user-icon > a, .x-user-profile .header-avatar {
	background: #ffffff;
	box-shadow: 0 0 0 1px rgba(30, 50, 85, .14), 0 2px 6px rgba(30, 50, 85, .10);
	border-radius: var(--x-radius-control);
}
.x-user-icon > a:hover, .x-user-profile .header-avatar:hover {
	background: #f3f6fb;
	box-shadow: 0 0 0 1px rgba(59, 125, 216, .45), 0 2px 8px rgba(30, 50, 85, .14);
}

/* Align the theme artwork with the board name and description. */
.site-description {
 display: grid;
 grid-template-columns: auto minmax(0, 1fr);
 grid-template-rows: auto auto;
 align-items: center;
 gap: 2px 18px;
 min-width: 0;
 max-width: min(70%, 660px);
 text-align: start;
}
.site-description .logo { display: flex; grid-column: 1; grid-row: 1 / 3; align-items: center; padding: 0; float: none; }
.site-description .site_logo { display: block; width: 128px; max-width: 100%; height: 82px; margin: 0; background-position: left center; }
.site-description p:not(.skiplink) { display: block; grid-column: 2; grid-row: 2; align-self: start; margin: 0; padding: 0; line-height: 1.4; font-size: 1.05em; }
@media (max-width: 700px) {
 .site-description { flex: 1 1 auto; max-width: 100%; width: 100%; gap: 2px 12px; }
 .site-description .site_logo { width: 96px; height: 62px; }
 .site-description h1 { font-size: 1.2em; }
}

/* Allow the brand and account controls room to wrap on narrow screens. */
@media (max-width: 700px) {
 .x-header-top { flex-wrap: wrap; }
 .site-description { flex: 1 0 100%; }
}

/* ===== interface.css: the interface layer (rounded cards, tonal buttons, Tabler icons, new header bars), shared by every theme.
   build.sh appends this file to each theme's stylesheet.css, after the theme's own rules, then the theme's interface-theme.css (if it has one).
   Colours come from the theme's tokens; --x-bar-main is the dark bar colour (default: the theme's --x-cat-bg).
   Maintained by hand now (the X-Silver test theme and the generator script are archived in backups/alt-themes-2026-11-03). ===== */

/* every row (forums, topics) is inset from the panel edges by --x-card-gap and has rounded corners, so the hover
   highlight does not touch the edges either. The 1px line between two rows is drawn as a strip on top of the row,
   the same width as the row, so lines, hover and the category header bar all line up. While a row is hovered, its own
   line and the line of the row below it disappear. */
ul.topiclist li.row {
	margin: 0 var(--x-card-gap, 8px) !important;
	border: 0;
	border-radius: var(--x-bar-radius, 7px);
	background: var(--x-surface) linear-gradient(var(--x-border), var(--x-border)) no-repeat center top / 100% 1px;
}
ul.topiclist li.row:hover { background: var(--x-hover-row); }
ul.topiclist li.row:hover + li.row { background-image: none; }
ul.topiclist li.row:first-child, ul.topiclist li.row:first-child:hover { background-image: none; }
ul.topiclist li.row:last-child { margin-bottom: var(--x-card-gap, 8px) !important; }
/* In a category / topic box the gap under the last row is padding of the list itself (a margin would let the box background show as a dark strip in themes whose list and box have different tones) */
.forabg ul.topiclist:not(:has(> li.header)) > li.row:last-child, .forumbg ul.topiclist:not(:has(> li.header)) > li.row:last-child { margin-bottom: 0 !important; }
.forabg ul.topiclist:not(:has(> li.header)), .forumbg ul.topiclist:not(:has(> li.header)) { padding-bottom: var(--x-card-gap, 8px); }

/* subforums as a short bulleted list under "Subforums:", one per line. */
.x-subforums { margin-top: 6px; }
.x-subforum-list { list-style: disc; margin: 3px 0 0 20px; padding: 0; }
.x-subforum-list li { margin: 1px 0; padding-left: 2px; }
.x-subforum-list li::marker { color: var(--x-text-muted); font-size: .85em; }
.x-subforum-list li:has(a.unread)::marker { color: var(--x-accent); }
.x-subforum-list a.subforum .icon { display: none; }

/* every row icon (forums, topics, messages) is a Tabler icon (MIT, see contrib/icons-licenses.txt),
   with no tile and no pulsing halo. Outline = nothing new, filled or accent colour = unread. Drawn as SVG masks in the icon colour. */
dl.row-item { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M14 3v4a1 1 0 0 0 1 1h4%22 /%3E%0A  %3Cpath d=%22M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z%22 /%3E%0A  %3Cpath d=%22M9 9l1 0%22 /%3E%0A  %3Cpath d=%22M9 13l6 0%22 /%3E%0A  %3Cpath d=%22M9 17l6 0%22 /%3E%0A%3C/svg%3E"); --ico-color: var(--x-icon, var(--x-text)) !important; --tile: 50px; --ico-size: 40px; }
/* default icon of a forum row: written with :where() so its specificity is the lowest and every state rule below wins whatever the order */
dl.row-item:where([class*="forum_"]) { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1%22 /%3E%0A%3C/svg%3E"); }
dl.row-item[class*="_unread"] { --ico-color: var(--x-accent); }
dl.row-item::after { display: none !important; }
dl.row-item::before {
	content: "" !important;
	background: var(--ico-color) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	animation: none !important;
	-webkit-mask: var(--ico) center / var(--ico-size) var(--ico-size) no-repeat;
	mask: var(--ico) center / var(--ico-size) var(--ico-size) no-repeat;
	left: 14px;
}
/* forums */
dl.row-item.forum_unread { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22black%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M5.821 4.91c3.899 -2.765 9.468 -2.539 13.073 .535c3.667 3.129 4.168 8.238 1.152 11.898c-2.841 3.447 -7.965 4.583 -12.231 2.805l-.233 -.101l-4.374 .931l-.04 .006l-.035 .007h-.018l-.022 .005h-.038l-.033 .004l-.021 -.001l-.023 .001l-.033 -.003h-.035l-.022 -.004l-.022 -.002l-.035 -.007l-.034 -.005l-.016 -.004l-.024 -.005l-.049 -.016l-.024 -.005l-.011 -.005l-.022 -.007l-.045 -.02l-.03 -.012l-.011 -.006l-.014 -.006l-.031 -.018l-.045 -.024l-.016 -.011l-.037 -.026l-.04 -.027l-.002 -.004l-.013 -.009l-.043 -.04l-.025 -.02l-.006 -.007l-.056 -.062l-.013 -.014l-.011 -.014l-.039 -.056l-.014 -.019l-.005 -.01l-.042 -.073l-.007 -.012l-.004 -.008l-.007 -.012l-.014 -.038l-.02 -.042l-.004 -.016l-.004 -.01l-.017 -.061l-.007 -.018l-.002 -.015l-.005 -.019l-.005 -.033l-.008 -.042l-.002 -.031l-.003 -.01v-.016l-.004 -.054l.001 -.036l.001 -.023l.002 -.053l.004 -.025v-.019l.008 -.035l.005 -.034l.005 -.02l.004 -.02l.018 -.06l.003 -.013l1.15 -3.45l-.022 -.037c-2.21 -3.747 -1.209 -8.391 2.413 -11.119z%22 /%3E%0A%3C/svg%3E"); }
dl.row-item.forum_read_subforum { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2%22 /%3E%0A%3C/svg%3E"); }
dl.row-item.forum_unread_subforum { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22black%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M9 3a1 1 0 0 1 .608 .206l.1 .087l2.706 2.707h6.586a3 3 0 0 1 2.995 2.824l.005 .176v8a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-11a3 3 0 0 1 2.824 -2.995l.176 -.005h4z%22 /%3E%0A%3C/svg%3E"); }
dl.row-item.forum_link { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M9 15l6 -6%22 /%3E%0A  %3Cpath d=%22M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464%22 /%3E%0A  %3Cpath d=%22M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463%22 /%3E%0A%3C/svg%3E"); }
/* topics and messages (a topic without a filled version keeps its outline and is told apart by the accent colour) */
dl.row-item[class*="_hot"] { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M12 10.941c2.333 -3.308 .167 -7.823 -1 -8.941c0 3.395 -2.235 5.299 -3.667 6.706c-1.43 1.408 -2.333 3.621 -2.333 5.588c0 3.704 3.134 6.706 7 6.706s7 -3.002 7 -6.706c0 -1.712 -1.232 -4.403 -2.333 -5.588c-2.084 3.353 -3.257 3.353 -4.667 2.235%22 /%3E%0A%3C/svg%3E"); }
dl.row-item[class*="_hot"][class*="_unread"] { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22black%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M10 2c0 -.88 1.056 -1.331 1.692 -.722c1.958 1.876 3.096 5.995 1.75 9.12l-.08 .174l.012 .003c.625 .133 1.203 -.43 2.303 -2.173l.14 -.224a1 1 0 0 1 1.582 -.153c1.334 1.435 2.601 4.377 2.601 6.27c0 4.265 -3.591 7.705 -8 7.705s-8 -3.44 -8 -7.706c0 -2.252 1.022 -4.716 2.632 -6.301l.605 -.589c.241 -.236 .434 -.43 .618 -.624c1.43 -1.512 2.145 -2.924 2.145 -4.78%22 /%3E%0A%3C/svg%3E"); }
dl.row-item[class^="sticky_"], dl.row-item[class*=" sticky_"] { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5 -1.5l1.5 -4l4 -4%22 /%3E%0A  %3Cpath d=%22M9 15l-4.5 4.5%22 /%3E%0A  %3Cpath d=%22M14.5 4l5.5 5.5%22 /%3E%0A%3C/svg%3E"); }
dl.row-item[class^="sticky_"][class*="_unread"], dl.row-item[class*=" sticky_"][class*="_unread"] { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22black%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M15.113 3.21l.094 .083l5.5 5.5a1 1 0 0 1 -1.175 1.59l-3.172 3.171l-1.424 3.797a1 1 0 0 1 -.158 .277l-.07 .08l-1.5 1.5a1 1 0 0 1 -1.32 .082l-.095 -.083l-2.793 -2.792l-3.793 3.792a1 1 0 0 1 -1.497 -1.32l.083 -.094l3.792 -3.793l-2.792 -2.793a1 1 0 0 1 -.083 -1.32l.083 -.094l1.5 -1.5a1 1 0 0 1 .258 -.187l.098 -.042l3.796 -1.425l3.171 -3.17a1 1 0 0 1 1.497 -1.26z%22 /%3E%0A%3C/svg%3E"); }
dl.row-item[class^="announce_"], dl.row-item[class*=" announce_"], dl.row-item[class^="global_"], dl.row-item[class*=" global_"] { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M18 8a3 3 0 0 1 0 6%22 /%3E%0A  %3Cpath d=%22M10 8v11a1 1 0 0 1 -1 1h-1a1 1 0 0 1 -1 -1v-5%22 /%3E%0A  %3Cpath d=%22M12 8h0l4.524 -3.77a.9 .9 0 0 1 1.476 .692v12.156a.9 .9 0 0 1 -1.476 .692l-4.524 -3.77h-8a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h8%22 /%3E%0A%3C/svg%3E"); --ico-color: #e0393e !important; }
dl.row-item.topic_moved { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M15 14l4 -4l-4 -4%22 /%3E%0A  %3Cpath d=%22M19 10h-11a4 4 0 1 0 0 8h1%22 /%3E%0A%3C/svg%3E"); }
dl.row-item.pm_read { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M3 9l9 6l9 -6l-9 -6l-9 6%22 /%3E%0A  %3Cpath d=%22M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10%22 /%3E%0A  %3Cpath d=%22M3 19l6 -6%22 /%3E%0A  %3Cpath d=%22M15 13l6 6%22 /%3E%0A%3C/svg%3E"); }
dl.row-item.pm_unread { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22black%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M22 7.535v9.465a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-9.465l9.445 6.297l.116 .066a1 1 0 0 0 .878 0l.116 -.066l9.445 -6.297z%22 /%3E%0A  %3Cpath d=%22M19 4c1.08 0 2.027 .57 2.555 1.427l-9.555 6.37l-9.555 -6.37a2.999 2.999 0 0 1 2.354 -1.42l.201 -.007h14z%22 /%3E%0A%3C/svg%3E"); }
/* locked always shows a padlock */
dl.row-item[class*="_locked"][class*="_unread"] { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22black%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M12 2a5 5 0 0 1 5 5v3a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-10a3 3 0 0 1 -3 -3v-6a3 3 0 0 1 3 -3v-3a5 5 0 0 1 5 -5m0 12a2 2 0 0 0 -1.995 1.85l-.005 .15a2 2 0 1 0 2 -2m0 -10a3 3 0 0 0 -3 3v3h6v-3a3 3 0 0 0 -3 -3%22 /%3E%0A%3C/svg%3E"); }

/* the title icons of the cards under the forum list (statistics, who is online, birthdays) */
.x-community-overview .stat-block.statistics h3 { --x-card-icon: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z%22 /%3E%0A  %3Cpath d=%22M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z%22 /%3E%0A  %3Cpath d=%22M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z%22 /%3E%0A  %3Cpath d=%22M4 20h14%22 /%3E%0A%3C/svg%3E"); }
.x-community-overview .stat-block.online-list h3 { --x-card-icon: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M12 12l0 .01%22 /%3E%0A  %3Cpath d=%22M14.828 9.172a4 4 0 0 1 0 5.656%22 /%3E%0A  %3Cpath d=%22M17.657 6.343a8 8 0 0 1 0 11.314%22 /%3E%0A  %3Cpath d=%22M9.168 14.828a4 4 0 0 1 0 -5.656%22 /%3E%0A  %3Cpath d=%22M6.337 17.657a8 8 0 0 1 0 -11.314%22 /%3E%0A%3C/svg%3E"); }
.x-community-overview .stat-block.birthday-list h3 { --x-card-icon: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M3 20h18v-8a3 3 0 0 0 -3 -3h-12a3 3 0 0 0 -3 3v8z%22 /%3E%0A  %3Cpath d=%22M3 14.803c.312 .135 .654 .204 1 .197a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1a2.4 2.4 0 0 0 2 -1a2.4 2.4 0 0 1 2 -1a2.4 2.4 0 0 1 2 1a2.4 2.4 0 0 0 2 1c.35 .007 .692 -.062 1 -.197%22 /%3E%0A  %3Cpath d=%22M12 4l1.465 1.638a2 2 0 1 1 -3.015 .099l1.55 -1.737z%22 /%3E%0A%3C/svg%3E"); }
.x-community-overview .stat-block h3::before { content: ""; flex: none; width: 36px; height: 36px; -webkit-mask: none; mask: none; border-radius: 10px; background: color-mix(in srgb, var(--x-card-icon-color, var(--x-bar-main)) 8%, var(--x-surface)); }

/* the category header is a charcoal rounded bar inside the panel (title and collapse button sit in it),
   and the dark line under the header is gone. The bar uses the theme's main dark colour (--x-bar-bg).
   The gap is the same on all four sides; the outer panel has a 12px radius and the bar has its own (--x-bar-radius). */
.forabg, .forumbg { --x-card-gap: 8px; --x-bar-radius: 7px; border-radius: 12px; }
.forabg li.header, .forumbg:not(.forumbg-table) li.header { background: var(--x-surface); border-bottom: 0; padding: var(--x-card-gap); }
.forabg li.header::before, .forumbg:not(.forumbg-table) li.header::before {
	content: "";
	position: absolute;
	background: var(--x-bar-main);
	inset: 0;
	border-radius: 0;
}
.forabg li.header dl.row-item, .forumbg:not(.forumbg-table) li.header dl.row-item { position: relative; z-index: 1; }
.forumbg:not(.forumbg-table) li.header dt, .forumbg:not(.forumbg-table) li.header dt a, .forumbg:not(.forumbg-table) li.header dd, .forumbg:not(.forumbg-table) li.header .list-inner, .forumbg:not(.forumbg-table) li.header .list-inner a, .forabg li.header dt, .forabg li.header dt a, .forabg li.header .list-inner, .forabg li.header .list-inner a { color: #ffffff; }
.forabg .x-collapse-btn { right: calc(var(--x-card-gap) + 12px); z-index: 2; color: #ffffff; background: rgba(255, 255, 255, .14); }
.forabg .x-collapse-btn:hover, .forabg .x-collapse-btn:focus-visible { background: rgba(255, 255, 255, .26); }

/* the dark navigation bar (Forums link, search box and its button) uses the same radius as the other buttons
   (Quick links, Mark forums read): var(--x-radius-control) = 8px, instead of fully round pills. The round search button
   becomes a rounded square sitting inside the box. */
ul.x-nav a { border-radius: var(--x-radius-control); display: flex; align-items: center; gap: 8px; }
.search-header fieldset { border-radius: var(--x-radius-control); }
.search-header .button { border-radius: 6px; }

/* icons in front of the navigation links (Tabler, MIT). On phones only the current page keeps its text. */
ul.x-nav a::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--nav-ico) center / 18px 18px no-repeat;
	mask: var(--nav-ico) center / 18px 18px no-repeat;
}
ul.x-nav a.x-nav-forums { --nav-ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M21 14l-3 -3h-7a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1h9a1 1 0 0 1 1 1v10%22 /%3E%0A  %3Cpath d=%22M14 15v2a1 1 0 0 1 -1 1h-7l-3 3v-10a1 1 0 0 1 1 -1h2%22 /%3E%0A%3C/svg%3E"); }
ul.x-nav a.x-nav-faq { --nav-ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0%22 /%3E%0A  %3Cpath d=%22M12 16v.01%22 /%3E%0A  %3Cpath d=%22M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483%22 /%3E%0A%3C/svg%3E"); }
ul.x-nav a.x-nav-members { --nav-ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M9 7m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0%22 /%3E%0A  %3Cpath d=%22M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2%22 /%3E%0A  %3Cpath d=%22M16 3.13a4 4 0 0 1 0 7.75%22 /%3E%0A  %3Cpath d=%22M21 21v-2a4 4 0 0 0 -3 -3.85%22 /%3E%0A%3C/svg%3E"); }
ul.x-nav a.x-nav-team { --nav-ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M12 3a12 12 0 0 0 8.5 3a12 12 0 0 1 -8.5 15a12 12 0 0 1 -8.5 -15a12 12 0 0 0 8.5 -3%22 /%3E%0A%3C/svg%3E"); }
@media (max-width: 520px) {
	ul.x-nav { gap: 4px; }
	ul.x-nav a { padding: 8px 12px; }
	ul.x-nav a:not([aria-current]) .x-nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Board Information redesigned with CSS only (the template is unchanged).
   A rounded panel with the same charcoal title bar as the forum categories, three soft cards (who is online, statistics,
   birthdays: white, with the same 1px border as the forum category panels) separated by a gap instead of lines, the board numbers separated by thin lines (no tiles: no card inside a card), and the "record / newest member" side with just a divider. */
.x-community-overview {
	gap: 18px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}
/* the outer "Board Information" panel is gone: no title bar, no collapse button; the three cards stand alone on the page */
.x-community-overview > .x-overview-head { display: none; }
.x-community-overview > .stat-block.statistics,
.x-community-overview > .stat-block.online-list,
.x-community-overview > .stat-block.birthday-list {
	background: var(--x-surface);
	border: 1px solid var(--x-border-strong) !important;
	border-radius: 12px;
	padding: 22px 24px 24px;
}
.x-community-overview .stat-block h3 { position: relative; gap: 12px; min-height: 36px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--x-border); }
.x-community-overview .stat-block .x-board-metrics { flex-wrap: wrap; display: flex; width: 100%; gap: 0 !important; }
.x-community-overview .x-board-metric {
	min-width: 0;
	background: none;
	border: 0 !important;
	border-radius: 0;
	position: relative;
	flex: 1 1 0;
	margin: 0 !important;
	padding: 4px 8px !important;
	text-align: center;
	align-items: center;
	border-inline-end: 0 !important;
}
.x-community-overview .x-board-metric:last-child { margin: 0 !important; border-inline-end: 0 !important; padding: 4px 8px !important; }
.x-community-overview .x-board-metric strong { color: var(--x-heading); }
.x-community-overview .online-list .x-online-side {
	align-self: stretch;
	padding: 0 0 0 28px;
	background: none;
	border: 0 !important;
	border-inline-start: 1px solid var(--x-border) !important;
	border-radius: 0;
}
.x-community-overview .online-list .x-online-side .x-online-record { padding: 0 0 14px; border: 0; }
.x-community-overview .x-chip { border-radius: 8px; }
.x-community-overview .x-online-members { border-top-color: var(--x-border); }

/* card titles and statistics layout.
   Titles: the icon sits in a soft accent tile and a thin line separates the title from the content.
   Statistics: the three numbers share the whole card width in equal columns, centred, with short soft dividers between them. */
.x-community-overview .stat-block h3::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 36px;
	-webkit-mask: var(--x-card-icon) center / 20px 20px no-repeat;
	mask: var(--x-card-icon) center / 20px 20px no-repeat;
	background: var(--x-card-icon-color, var(--x-bar-main));
}
.x-community-overview .stat-block.statistics > p { display: block; }
.x-community-overview .x-board-metric + .x-board-metric::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: 34px;
	margin-top: -17px;
	background: var(--x-border);
}

/* the card title icons and the legend icon use the theme's charcoal / grey instead of the blue accent,
   like the rest of the theme (forum icons are grey, the bars are charcoal). */
.x-community-overview .x-legend-icon { background: var(--x-text-muted); }

/* footer as a floating card.
   Nothing is removed from the footer. The full-width band is gone: everything sits in one white card with the same border and radius as the other
   cards, brand on the left, the links in a row on the right, one thin line above the legal row, quiet text everywhere,
   and a soft tonal background only when a link is hovered. The two small column headings are hidden because the card is self-explanatory. */
.x-footer {
	--x-footer-text: var(--x-text-muted);
	--x-footer-link: var(--x-heading);
	--x-fname-1a: var(--x-name-1a, #26364f);
	--x-fname-1b: var(--x-name-1b, #111a2b);
	--x-fname-2a: var(--x-name-2a, #6ba5ee);
	--x-fname-2b: var(--x-name-2b, #2f66b8);
}
.x-footer-inner {
	align-items: center;
	gap: 22px 0;
	padding: 34px 0 6px;
}
@media (min-width: 901px) {
	.x-footer-inner { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 0; }
	.x-footer-col-b { margin-left: 8px; }
}
@media (max-width: 900px) { .x-footer-inner { padding: 26px 0 6px; } }
.x-footer-col h4 { display: none; }
ul.x-footer-links { flex-direction: row; flex-wrap: wrap; gap: 2px; }
ul.x-footer-links a { padding: 8px 12px; color: var(--x-text); border-radius: var(--x-radius-control); transition: background-color .15s, color .15s; }
ul.x-footer-links a span, ul.x-footer-links a .icon { opacity: .85; }
ul.x-footer-links a:hover { background: var(--x-accent-soft); color: var(--x-heading); }
ul.x-footer-links a:hover span, ul.x-footer-links a:hover .icon { opacity: 1; }
ul.x-footer-links a:hover .icon { color: var(--x-accent); filter: none; }
ul.x-footer-links.x-footer-legal a, ul.x-footer-links.x-footer-cookies a {
	padding: 7px 12px;
	background: none;
	border: 0;
	border-radius: var(--x-radius-control);
	color: var(--x-text-muted);
}
ul.x-footer-links.x-footer-legal a:hover, ul.x-footer-links.x-footer-cookies a:hover { background: var(--x-accent-soft); color: var(--x-heading); }
.x-footer-legal, .x-footer-meta { align-self: stretch; padding-top: 12px; }
.x-footer-meta { align-items: center; padding-top: 12px; color: var(--x-text-muted); justify-content: flex-end; }
ul.x-footer-links.x-footer-legal { align-items: center; padding-top: 12px; }
.x-footer-meta, ul.x-footer-links.x-footer-legal { min-height: 46px; box-sizing: border-box; }
.x-footer .copyright { margin-top: -10px; padding: 16px 0 22px; border-top: 1px solid var(--x-border); color: var(--x-text-muted); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px 18px; }
.x-credit { background: none; border: 0; border-radius: 0; overflow: visible; }
.x-credit > span { padding: 0; }
.x-credit-theme { background: none; padding-right: 12px !important; margin-right: 12px; border-right: 1px solid var(--x-border); }
.x-credit-by { padding-right: 0 !important; }

/* footer bottom row in three parts.
   Left: Powered by phpBB. Centre: theme credit + Crafted with love. Right: the time zone (moved into this row by the template copy).
   Phone: everything is centred, one under the other. */
.x-footer .copyright .footer-row { grid-row: 1; margin: 0; }
.x-footer .copyright .footer-row:first-child { grid-column: 1; justify-self: start; }
.x-footer .copyright .footer-author { grid-column: 2; justify-self: center; margin: 0 !important; }
.x-footer .copyright .x-footer-tz { grid-column: 3; justify-self: end; margin: 0; }
@media (min-width: 901px) { ul.x-footer-links { justify-content: flex-end; } ul.x-footer-links.x-footer-legal { justify-content: flex-start; } }
@media (max-width: 900px) {
	.x-footer-inner { justify-items: center; text-align: center; }
	.x-footer-brand { justify-items: center; text-align: left; }
	ul.x-footer-links { justify-content: center; }
	.x-footer-legal, .x-footer-meta { justify-self: center; width: 100%; justify-content: center; }
	.x-footer .copyright { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.x-footer .copyright .footer-row { grid-row: auto; grid-column: 1 !important; justify-self: center !important; }
	.x-footer .copyright .x-footer-tz { order: 3; }
	.x-footer .copyright .footer-author { order: 2; }
}

/* inside a forum, the first topic row now keeps the same gap (--x-card-gap) under the dark header as it has at the sides and
   at the bottom, so its hover no longer touches the header. */
.forumbg ul.topiclist.topics { padding-top: var(--x-card-gap, 8px); }

/* in the "Jump to" menu the category names get a tinted background (same tint as the card title tiles), so they read
   as headings and the forums under them as the choices. */
.jumpbox .dropdown-contents a.jumpbox-cat-link,
.jumpbox .dropdown-contents a.jumpbox-cat-link:hover {
	margin-top: 8px;
	background: color-mix(in srgb, var(--x-bar-main) 10%, var(--x-surface));
	color: var(--x-heading);
	cursor: pointer;
}
.jumpbox .dropdown-contents a.jumpbox-cat-link:hover { background: color-mix(in srgb, var(--x-bar-main) 16%, var(--x-surface)); color: var(--x-accent); }
.jumpbox .dropdown-contents li:first-child a.jumpbox-cat-link { margin-top: 0; }

/* The team page = the approved "soft" design (template/memberlist_team.html copy + the rules below). */
/* EXPERIMENT (local only), variant "soft": quiet panels with a tinted header, soft member cards, no coloured top line. */
.tv-team-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; color: #fff; font-size: 17px; background: rgba(255, 255, 255, .22); box-shadow: none; }
.tv-team-head h3 { margin: 0; padding: 0; border: 0; font-size: 1.2em; font-weight: 700; color: var(--x-heading, inherit); text-transform: none; }
.tv-team-head h3 a { color: inherit; text-decoration: none; }
.tv-team-count { margin-left: auto; font-size: .8em; font-weight: 600; padding: 3px 12px; border-radius: 999px; color: var(--x-heading, inherit); background: var(--x-surface, #fff); border: 1px solid color-mix(in srgb, var(--tv-tone) 35%, transparent); white-space: nowrap; }
.tv-team-count:empty { display: none; }
.tv-team-grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; padding: 12px var(--x-card-gap, 8px) var(--x-card-gap, 8px); }
.tv-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: color-mix(in srgb, var(--x-text, #000) 3%, var(--x-surface, #fff)); border: 1px solid var(--x-border, rgba(0,0,0,.08)); transition: border-color .15s ease; border-radius: var(--x-bar-radius); }
.tv-card:hover, .tv-card:focus-within { border-color: color-mix(in srgb, var(--tv-group) 45%, transparent); }
.tv-card.inactive { opacity: .55; }
.tv-card-av { display: block; width: 50px; height: 50px; flex: none; border-radius: 50%; text-align: center; line-height: 50px; font-size: 0; font-weight: 700; text-decoration: none; color: color-mix(in srgb, var(--tv-group) 62%, var(--x-heading, #000)); background: color-mix(in srgb, var(--tv-group) 15%, var(--x-surface, #fff)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tv-group) 20%, transparent); }
.tv-card-av::first-letter { font-size: 21px; text-transform: uppercase; }
.tv-card-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tv-card-name { font-size: 1.08em; font-weight: 700; color: var(--x-heading, inherit); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-card-name:hover { text-decoration: none; color: color-mix(in srgb, var(--tv-group) 62%, var(--x-heading, #000)); }
.tv-card-rank { font-size: .86em; font-weight: 600; color: var(--x-heading, inherit); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-card-group { font-size: .78em; font-weight: 600; color: color-mix(in srgb, var(--tv-user) 72%, var(--x-heading, #000)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-card-group a { color: inherit; text-decoration: none; }
.tv-card-group a:hover { text-decoration: none; }
.tv-card-group .icon { font-size: 11px; margin-right: 4px; width: auto; color: var(--tv-user); opacity: 1; }
.tv-card-pm { margin-left: auto; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 15px; text-decoration: none; color: color-mix(in srgb, var(--tv-group) 62%, var(--x-heading, #000)); background: color-mix(in srgb, var(--tv-group) 12%, var(--x-surface, #fff)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tv-group) 25%, transparent); transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.tv-card-pm .icon { width: auto; font-size: 15px; transform: translateX(-1px); }
.tv-card-pm:hover, .tv-card-pm:focus-visible { color: #fff; background: var(--tv-group); box-shadow: none; }
.tv-card-empty { color: var(--x-text, inherit); opacity: .7; padding: 6px 2px; }
@media (max-width: 520px) { .tv-team-grid { grid-template-columns: 1fr; }  }
@media (prefers-reduced-motion: reduce) { .tv-card, .tv-card-pm { transition: none; } }

/* tables inside panels (Members list and similar) follow the category look: the header is a charcoal rounded bar inset
   by --x-card-gap, rows are separated by a thin line and a hover is a rounded soft tint. */
.forumbg-table { --x-card-gap: 8px; --x-bar-radius: 7px; border-radius: 12px; overflow: hidden; }
.forumbg-table > .inner { margin: 0; padding: 0; }
.forumbg-table table.table1 { border-collapse: separate; border-spacing: 0; }
.forumbg-table table.table1 thead th { background: var(--x-bar-main); color: #ffffff; border: 0; }
.forumbg-table table.table1 thead th a { color: #ffffff; }
.forumbg-table table.table1 thead th:first-child { border-radius: var(--x-bar-radius) 0 0 var(--x-bar-radius); }
.forumbg-table table.table1 thead th:last-child { border-radius: 0 var(--x-bar-radius) var(--x-bar-radius) 0; }
.forumbg-table table.table1 tbody tr { background: none; }
.forumbg-table table.table1 tbody td { border-top: 0; padding-top: 11px; padding-bottom: 11px; border-bottom: 0; background-color: transparent; background-image: linear-gradient(var(--x-border), var(--x-border)); background-repeat: no-repeat; background-position: bottom; background-size: 100% 1px; background-clip: padding-box; }
.forumbg-table table.table1 tbody tr:hover td { background: var(--x-hover-row); border-bottom-color: transparent; background-color: var(--x-hover-row); background-size: 0 0; }

/* the FAQ. The big white panel is gone; every question group is its own card (same border and radius as the other cards)
   with a tinted title bar, and the questions are rows with a rounded tonal hover. */
#faqlinks, #faqlinks.panel { padding: 0; background: none; border: 0; border-radius: 0; }
#faqlinks > .inner { gap: 0 18px; }
/* The wrapper around the question groups is invisible; themes that give every .panel a shadow or picture (Doomsday) must not draw it, or a blurry frame shows between the cards. */
#page-body #faqlinks.panel { background: none; box-shadow: none; }
#faqlinks .column1, #faqlinks .column2 { display: flex; flex-direction: column; gap: 18px; }
#faqlinks dl.faq { margin: 0; background: var(--x-surface); border: 1px solid var(--x-border-strong); border-radius: 12px; padding: 0 0 var(--x-card-gap, 8px); overflow: hidden; }
#faqlinks dl.faq dt { border: 0; background: var(--x-bar-main); color: #ffffff; padding: 14px 16px; font-size: 1em; font-weight: 600; border-radius: 0; margin: 0 0 6px; }
#faqlinks dl.faq dd { padding: 0; margin: 0 var(--x-card-gap, 8px); }
#faqlinks dl.faq dd a { display: block; padding: 8px 14px; border-radius: var(--x-radius-control); transition: background-color .15s, color .15s; }
#faqlinks dl.faq dd a:hover { background: var(--x-accent-soft); color: var(--x-heading); text-decoration: none; }
#faqlinks dl.faq dd + dd { border: 0; }

/* the remaining panels follow the same look.
   Topic lists with a header (Search results, UCP subscriptions/bookmarks, MCP) get the charcoal rounded bar via the rules above;
   the page titles of Search and Search results sit in a white card like every other page title. */
body.section-search h2.solo, h2.searchresults-title { margin: 0 0 16px; padding: 16px 22px; font-size: 1.5em; color: var(--x-heading); background: var(--x-surface); border: 1px solid var(--x-border-strong); border-radius: var(--x-radius); }
h2.searchresults-title a { color: var(--x-accent); }

/* topic lists inside plain panels (UCP subscriptions/bookmarks, MCP) get the same charcoal rounded header bar. */
.panel ul.topiclist > li.header, .ucp-main ul.topiclist > li.header { background: var(--x-bar-main); border: 0; border-radius: var(--x-bar-radius, 7px); margin: 8px; color: #ffffff; }
.panel ul.topiclist > li.header dd span, .panel ul.topiclist > li.header dd a, .ucp-main ul.topiclist > li.header dd span, .ucp-main ul.topiclist > li.header dd a { color: #ffffff; }
.panel ul.topiclist > li.header dl.row-item dd, .panel ul.topiclist > li.header dl.row-item dd *, .ucp-main ul.topiclist > li.header dl.row-item dd, .ucp-main ul.topiclist > li.header dl.row-item dd * { color: #ffffff !important; }
.panel ul.topiclist > li.header dt, .panel ul.topiclist > li.header dt a, .panel ul.topiclist > li.header dd, .panel ul.topiclist > li.header .list-inner,
.ucp-main ul.topiclist > li.header dt, .ucp-main ul.topiclist > li.header dd, .ucp-main ul.topiclist > li.header .list-inner { color: #ffffff; }

/* all forum icons (unread, read, locked, link, subforum) are black. */
dl.row-item[class*="forum_"] { --ico-color: #111827; --tile: 56px; --ico-size: 46px; }

/* the separator between the theme name and "Crafted with" in the footer is a round bullet instead of a vertical line. */
.x-credit > .x-credit-theme { border-right: 0; margin-right: 0; padding-right: 0 !important; }
.x-credit-theme::after { content: ""; display: inline-block; vertical-align: middle; width: 4px; height: 4px; margin: 0 10px; border-radius: 50%; background: var(--x-text-muted); opacity: .7; }

/* the "Who is online" card inside a forum or a topic looks like the one on the front page (same card, same title tile and icon, same divider). */
.stat-block.online-list { background: var(--x-surface); border: 1px solid var(--x-border-strong); border-radius: 12px; padding: 22px 24px 24px; box-shadow: none; }
.stat-block.online-list h3 { --x-card-icon: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M12 12l0 .01%22 /%3E%0A  %3Cpath d=%22M14.828 9.172a4 4 0 0 1 0 5.656%22 /%3E%0A  %3Cpath d=%22M17.657 6.343a8 8 0 0 1 0 11.314%22 /%3E%0A  %3Cpath d=%22M9.168 14.828a4 4 0 0 1 0 -5.656%22 /%3E%0A  %3Cpath d=%22M6.337 17.657a8 8 0 0 1 0 -11.314%22 /%3E%0A%3C/svg%3E"); position: relative; gap: 12px; min-height: 36px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--x-border); }
.stat-block.online-list h3::before { content: ""; flex: none; width: 36px; height: 36px; background: color-mix(in srgb, var(--x-card-icon-color, var(--x-bar-main)) 8%, var(--x-surface)); -webkit-mask: none; mask: none; border-radius: 10px; }
.stat-block.online-list h3::after { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 36px; background: var(--x-card-icon-color, var(--x-bar-main)); -webkit-mask: var(--x-card-icon) center / 20px 20px no-repeat; mask: var(--x-card-icon) center / 20px 20px no-repeat; }

/* the pagination in the action bars (forums, topics) sits in one wrapper that looks like the buttons next to it (Mark topics read, Quick links):
   same height, same border and radius; the page numbers are small rounded buttons inside it. */
.x-action-bar .pagination, .action-bar .pagination { display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box; height: var(--x-control-h, 40px); padding: 0 14px; background: var(--x-control-bg, var(--x-surface)); border: 1px solid var(--x-control-border, var(--x-border-strong)); border-radius: var(--x-radius-control); color: var(--x-control-text, var(--x-text)); font-size: .95em; line-height: 1; }
.x-action-bar .pagination > ul, .action-bar .pagination > ul { display: inline-flex; align-items: center; gap: 2px; margin: 0 -8px 0 8px; padding: 0; }
.x-action-bar .pagination li, .action-bar .pagination li { margin: 0; }
.x-action-bar .pagination li a, .x-action-bar .pagination li span:not(.page-sep), .action-bar .pagination li a, .action-bar .pagination li span:not(.page-sep) { min-width: 28px; height: 28px; min-height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: none; }
.x-action-bar .pagination li.active span, .action-bar .pagination li.active span { height: 28px; background: var(--x-accent); color: var(--x-accent-text); }
.x-action-bar .pagination li a:hover, .action-bar .pagination li a:hover { background: var(--x-control-hover-bg, var(--x-accent-soft)); color: var(--x-heading); }

/* the post options button (was three dots in a circle) is a rounded square with a gear icon (Tabler "settings", MIT), like the other control buttons. */
.x-post-menu-btn { position: relative; width: 38px; height: 38px; background: var(--x-control-bg, var(--x-surface)); border: 1px solid var(--x-control-border, var(--x-border-strong)); border-radius: var(--x-radius-control); color: var(--x-control-icon, var(--x-text-muted)); }
.x-post-menu-btn .icon { display: none !important; }
.x-post-menu-btn::after { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z%22/%3E%3Cpath d=%22M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0%22/%3E%3C/svg%3E") center / 20px 20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z%22/%3E%3Cpath d=%22M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0%22/%3E%3C/svg%3E") center / 20px 20px no-repeat; }
.x-post-menu-btn:hover, .x-post-menu-btn:focus-visible { background: var(--x-control-hover-bg, var(--x-accent-soft)); border-color: var(--x-control-hover-border, var(--x-accent)); color: var(--x-accent); }
.dropdown-visible > .x-post-menu-btn { background: var(--x-accent); border-color: var(--x-accent); color: var(--x-accent-text); }

/* dropdown buttons (Jump to, sort, ...) lose the vertical line before the arrow; the old triangle is a light chevron (Tabler "chevron-down", MIT). */
.dropdown-trigger .caret, .dropdown-container .caret { border: 0 !important; margin-left: 2px; padding: 0; display: inline-flex; align-items: center; }
.dropdown-trigger .caret .icon { display: none; }
.dropdown-trigger .caret::after { content: ""; width: 16px; height: 16px; background: currentColor; opacity: .75; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M6 9l6 6l6 -6%22/%3E%3C/svg%3E") center / 16px 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M6 9l6 6l6 -6%22/%3E%3C/svg%3E") center / 16px 16px no-repeat; transition: transform .15s; }
.dropdown-visible > .dropdown-trigger .caret::after { transform: rotate(180deg); }

/* the profile column of a post, made uniform.
   Contact is a tonal button without a border, with a chevron; the labels (Posts, Joined, ...) are one step bigger and every line is
   "label left, value right" with a thin divider, so all lines of the profile align the same way. */
.postprofile .x-contact .x-contact-btn.x-act-btn { height: 38px !important; gap: 9px; background: var(--x-accent-soft) !important; border: 0 !important; color: var(--x-accent) !important; font-size: .95em; font-weight: 600; letter-spacing: .01em; }
.postprofile .x-contact .x-contact-btn.x-act-btn:hover, .dropdown-visible > .x-contact-btn.x-act-btn { background: color-mix(in srgb, var(--x-accent) 18%, var(--x-surface)) !important; color: var(--x-accent) !important; }
.postprofile .x-contact .x-contact-btn .icon.x-contact-caret { display: none; }
.postprofile .x-contact .x-contact-btn::after { content: ""; width: 16px; height: 16px; background: currentColor; opacity: .8; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M6 9l6 6l6 -6%22/%3E%3C/svg%3E") center / 16px 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M6 9l6 6l6 -6%22/%3E%3C/svg%3E") center / 16px 16px no-repeat; transition: transform .15s; }
.dropdown-visible > .x-contact-btn::after { transform: rotate(180deg); }
.postprofile dd:not(.profile-rank):not(.profile-contact) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--x-border); font-size: .95em; line-height: 1.4; text-align: right; }
.postprofile dd:not(.profile-rank):not(.profile-contact) strong { flex: none; font-weight: 600; color: var(--x-text-muted); }
.postprofile dd:not(.profile-rank):not(.profile-contact):last-of-type { border-bottom: 0; }
.postprofile dd.profile-rank { font-size: .95em; }

/* the "Return to ..." links sit in a wrapper like the buttons next to them (same height, border and radius).
   On hover the wrapper stays as it is; only the text and the arrow light up. */
p.jumpbox-return { display: inline-flex; align-items: center; box-sizing: border-box; height: var(--x-control-h, 40px); margin: 0; padding: 0 16px; background: var(--x-control-bg, var(--x-surface)); border: 1px solid var(--x-control-border, var(--x-border-strong)); border-radius: var(--x-radius-control); }
p.jumpbox-return a { float: none; display: inline-flex; align-items: center; gap: 8px; color: var(--x-control-text, var(--x-text)); font-weight: 600; background: none; text-decoration: none; transition: color .15s; }
p.jumpbox-return a:hover { color: var(--x-accent); background: none; text-decoration: none; }

/* the Members list on a phone. The stacked table rows with their italic labels were messy, so each member is one line:
   name and rank left, number of posts right; the header bar and the extra columns are hidden. */
@media (max-width: 700px) {
	.section-memberlist .forumbg-table table.table1 thead { display: none; }
	.section-memberlist .forumbg-table table.table1, .section-memberlist .forumbg-table table.table1 tbody { display: block; }
	.section-memberlist .forumbg-table table.table1 tbody tr { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 7px; }
	.section-memberlist .forumbg-table table.table1 tbody td { display: flex !important; align-items: center; border: 0; padding: 10px 8px; }
	.section-memberlist .forumbg-table table.table1 tbody td.x-member-cell { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 10px; }
	.section-memberlist .forumbg-table table.table1 tbody td.x-member-cell .rank-img { order: 3; flex: none; }
	.section-memberlist .forumbg-table table.table1 tbody td.posts { flex: none; width: auto; gap: 4px; }
	.section-memberlist .forumbg-table table.table1 tbody td:nth-child(n+3) { display: none !important; }
	.section-memberlist .forumbg-table table.table1 tbody td > dfn { display: none !important; }
	.section-memberlist .forumbg-table table.table1 tbody td.posts > dfn { display: inline !important; font-style: normal; color: var(--x-text-muted); font-weight: 600; }
	.section-memberlist .forumbg-table table.table1 tbody tr + tr { border-top: 1px solid var(--x-border); }
}

/* the topic tools (wrench) and moderator tools (hammer) icons come from the same line-icon set as the rest (Tabler "tool" and "gavel", MIT). */
.icon.fa-wrench, .icon.fa-gavel { position: relative; display: inline-block; width: 18px; height: 18px; vertical-align: middle; font-size: 0; }
.icon.fa-wrench::before, .icon.fa-gavel::before { content: ""; display: block; width: 18px; height: 18px; font-family: inherit; background: currentColor; -webkit-mask: var(--x-ico) center / 18px 18px no-repeat; mask: var(--x-ico) center / 18px 18px no-repeat; }
.icon.fa-wrench { --x-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M7 10h3v-3l-3.5 -3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1 -3 3l-6 -6a6 6 0 0 1 -8 -8l3.5 3.5%22/%3E%3C/svg%3E"); }
.icon.fa-gavel { --x-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M13 10l7.383 7.418c.823 .82 .823 2.148 0 2.967a2.11 2.11 0 0 1 -2.976 0l-7.407 -7.385%22/%3E%3Cpath d=%22M6 9l4 4%22/%3E%3Cpath d=%22M13 10l-4 -4%22/%3E%3Cpath d=%22M3 21h7%22/%3E%3Cpath d=%22M6.793 15.793l-3.586 -3.586a1 1 0 0 1 0 -1.414l2.293 -2.293l.5 .5l3 -3l-.5 -.5l2.293 -2.293a1 1 0 0 1 1.414 0l3.586 3.586a1 1 0 0 1 0 1.414l-2.293 2.293l-.5 -.5l-3 3l.5 .5l-2.293 2.293a1 1 0 0 1 -1.414 0z%22/%3E%3C/svg%3E"); }

/* Members list rows (desktop) behave like the forum rows: the hovered row is a soft rounded tile, its own line and the line above it disappear,
   and the first and last cells get inner space so text never touches the rounded corners. */
.forumbg-table table.table1 tbody td:first-child { padding-left: 18px; border-left: var(--x-card-gap, 8px) solid transparent; }
.forumbg-table table.table1 tbody td:last-child { padding-right: 18px; border-right: var(--x-card-gap, 8px) solid transparent; }
.forumbg-table table.table1 tbody tr:has(+ tr:hover) td { border-bottom-color: transparent; background-size: 0 0; }
.forumbg-table table.table1 tbody tr:last-child td { border-bottom: 0; background-size: 0 0; }

/* The team group header follows the category look: an inset rounded bar inside the card (same gap, same radius as the category bars).
   The bar starts in the full group colour on the left and fades to the right; the title and icon are white on it. */
.tv-team-head { position: relative; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid color-mix(in srgb, var(--tv-tone) 22%, var(--x-border, rgba(0,0,0,.08))); padding: 12px 16px; border: 0; background: var(--tv-tone); padding-top: 10px; padding-bottom: 10px; border-radius: 0; }
.tv-team-head h3, .tv-team-head h3 a { color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, .28); }
@media (max-width: 520px) { .tv-team-group { padding: var(--x-card-gap); }  }

/* The team header bar is one solid group colour (no fade), and the member cards use the same corner radius as the bar (--x-bar-radius = 7px). */

/* all header bars are one step lower (4px less in total): category headers, list headers in the UCP, table headers (Members), The team group bars. */
li.header dt, li.header dd { padding-top: 16px !important; padding-bottom: 16px !important; }
.section-memberlist .forumbg-table table.table1 thead th { padding-top: 19px; padding-bottom: 20px; }

/* status icons of topics and forums: bigger glyphs, all black, and much closer to the left edge of the row (it was 28px from the edge; now 14px).
   The text follows the icon (14px + tile + 12px). */
dl.row-item dt .list-inner, .mcp-main ul.topiclist.cplist li.row dl.row-item dt .list-inner, .mcp-main ul.topiclist li.row dl.row-item dt .list-inner { padding-left: calc(14px + var(--tile) + 12px); }
dl.row-item[class*="_mine"] dt::before { left: calc(14px + var(--tile) - 21px); top: calc(50% + var(--tile) / 2 - 23px); content: ""; font-size: 0; background: var(--x-badge-bg, #111827) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0%22/%3E%3Cpath d=%22M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2%22/%3E%3C/svg%3E") center / 12px 12px no-repeat; }

/* the Search button on the search page (and the Find a member form) has the standard control height like the other buttons. */
.section-search fieldset.submit-buttons input[type="submit"], .section-memberlist fieldset.submit-buttons input[type="submit"], .section-search fieldset.submit-buttons .button1, .section-memberlist fieldset.submit-buttons .button1 { min-height: var(--x-control-h, 40px); height: var(--x-control-h, 40px); padding: 0 22px; font-size: .95em; line-height: 1; }

/* the two sections of the search page (Search query, Search options) look like the forum cards: white card, the section title is the charcoal rounded bar
   inset by --x-card-gap (same radius and colour as the category headers). Both cards are white. */
.section-search #page-body > form > .panel:not(.bg3), .section-search #page-body > .panel:not(.bg3) { --x-card-gap: 8px; --x-bar-radius: 7px; background: var(--x-surface); border: 1px solid var(--x-border-strong); border-radius: 12px; padding: 0; overflow: hidden; box-shadow: none; }
.section-search .panel:not(.bg3) > .inner { padding: 0; }
.section-search .panel:not(.bg3) > .inner > h3 { padding: 16px 20px; font-size: 1.15em; font-weight: 600; letter-spacing: 0; text-transform: none; color: #ffffff; background: var(--x-bar-main); border: 0; margin: 0 0 8px; border-radius: 0; }
.section-search .panel:not(.bg3) > .inner > fieldset { margin: 0; padding: 8px 22px 14px; }

/* FAQ, part 2. The question group titles are the same charcoal rounded bars as the forum headers (they were a light tint; the dark bar is the one used everywhere else).
   The answers: every block is a white card (no more grey/white alternation), its title is a charcoal bar, and the "Top" link is a small tonal button with an up arrow
   (Tabler "arrow-up", MIT). */
#faqlinks ~ .panel, #faqlinks ~ .panel.bg1, #faqlinks ~ .panel.bg2 { --x-card-gap: 8px; --x-bar-radius: 7px; background: var(--x-surface); border: 1px solid var(--x-border-strong); border-radius: 12px; box-shadow: none; padding: 0 0 var(--x-card-gap, 8px); overflow: hidden; }
#faqlinks ~ .panel > .inner { padding: 0; }
#faqlinks ~ .panel > .inner > .content { padding: 0 22px 6px; }
#faqlinks ~ .panel h2.faq-title { padding: 16px 20px; font-size: 1.15em; font-weight: 600; color: #ffffff; background: var(--x-bar-main); border: 0; margin: 0 -22px 12px; border-radius: 0; }
.content > a.top { height: 30px; padding: 0 12px; gap: 6px; color: var(--x-accent); background: var(--x-accent-soft); border: 0; border-radius: var(--x-radius-control); text-decoration: none; transition: background-color .15s; }
.content > a.top:hover { background: color-mix(in srgb, var(--x-accent) 18%, var(--x-surface)); text-decoration: none; }
.content > a.top .icon { display: none; }
.content > a.top::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M12 5l0 14%22/%3E%3Cpath d=%22M18 11l-6 -6l-6 6%22/%3E%3C/svg%3E") center / 14px 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M12 5l0 14%22/%3E%3Cpath d=%22M18 11l-6 -6l-6 6%22/%3E%3C/svg%3E") center / 14px 14px no-repeat; }

/* FIX. The dark bar of a list header is drawn by li.header::before, which needs the header to be the positioned parent; the topic lists inside a forum (the "Announcements" part) did not have it, so the dark bar stretched over the whole page. */
.forumbg:not(.forumbg-table) li.header, .panel ul.topiclist > li.header, .ucp-main ul.topiclist > li.header { position: relative; }

/* The category bar (forum categories, the Announcements part inside a forum, UCP topic lists) goes from edge to edge of its card: flush with the left, right and top edges.
   Nothing else moves: the title keeps its place (side padding), the bar keeps its height, and the 8px space under it is kept. */
.forabg, .forumbg:not(.forumbg-table), .panel ul.topiclist:has(> li.header) { overflow: hidden; }
.forabg li.header, .forumbg:not(.forumbg-table) li.header, .panel ul.topiclist > li.header, .ucp-main ul.topiclist > li.header { padding: 0 var(--x-card-gap, 8px); margin: 0 0 var(--x-card-gap, 8px); border-radius: 0; }

/* Rows are a bit lower so more fits on a screen (same idea as the lower header bars): forum and topic rows lose about 10px of height,
   Members table rows about 6px. */
ul.topiclist li.row dl { padding: 9px 0; }
ul.topiclist li.row .list-inner { padding-top: 2px; padding-bottom: 2px; }

/* ONE RULE FOR ALL BARS. Every bar that titles a card goes from edge to edge of its card (left, right, top), like the category bars:
   The team group bars, the Members table header, the Search query / Search options bars, the FAQ group titles and the FAQ answer titles.
   The content under a bar keeps its side space (--x-card-gap). */
/* The team */
.tv-team-group { --tv-tone: color-mix(in srgb, var(--tv-group) 82%, var(--x-accent, #3b7dd8)); background: var(--x-surface, #fff); border: 1px solid var(--x-border, rgba(0,0,0,.1)); margin: 0 0 20px; --x-card-gap: 8px; border-color: var(--x-border-strong); border-radius: 12px; --x-bar-radius: 7px; padding: 0; overflow: hidden; }
@media (max-width: 520px) { .tv-team-group { padding: 0; } .tv-team-grid { padding: 10px var(--x-card-gap, 8px) var(--x-card-gap, 8px); } }
/* Members table: header flush; rows keep their inset through a transparent side border, lines and hover are painted inside it */
.forumbg-table table.table1 thead th:first-child, .forumbg-table table.table1 thead th:last-child { border-radius: 0; }
.section-memberlist .forumbg-table table.table1 thead th:first-child { padding-left: calc(18px + var(--x-card-gap, 8px)); }
.section-memberlist .forumbg-table table.table1 thead th:last-child { padding-right: calc(18px + var(--x-card-gap, 8px)); }
.forumbg-table table.table1 tbody tr:hover td:first-child { border-radius: 15px 0 0 15px; }
.forumbg-table table.table1 tbody tr:hover td:last-child { border-radius: 0 15px 15px 0; }
/* Search */
/* FAQ: group titles in the list, answer blocks */


/* LOGIN, QUICK LOGIN, REGISTER. Same card + flush dark bar as the other pages. */
body form.headerspace, form#login > .panel, form#agreement > .panel, form#register > .panel, form#reset_password > .panel, form[id^="ucp"] > .panel {
	--x-card-gap: 8px; padding: 0; overflow: hidden; background: var(--x-surface); border: 1px solid var(--x-border-strong); border-radius: 12px; box-shadow: none;
}
body form.headerspace { margin: 20px 0 12px; }
/* Privacy policy / Terms of use: a card with the same dark bar as the Terms step of registration. The Search button box has no shadow either. */
#page-body > .panel:has(> .inner > .content > h2.sitename-title) { padding: 0; overflow: hidden; background: var(--x-surface); border: 1px solid var(--x-border-strong); border-radius: 12px; box-shadow: none; }
#page-body > .panel > .inner > .content > h2.sitename-title { margin: 0; padding: 16px 22px; font-size: 1.15em; font-weight: 600; letter-spacing: 0; text-transform: none; color: #ffffff; background: var(--x-bar-main); border: 0; border-radius: 0; }
#page-body > .panel > .inner > .content:has(> h2.sitename-title) > .agreement { padding: 18px 22px 8px; }
/* The legal text was inherited at 12px; it now reads at the normal text size (privacy, terms, and the terms step of registration). */
#page-body .agreement { font-size: 1em; line-height: 1.7; }
.section-search #page-body .panel.bg3 { box-shadow: none; }
body form.headerspace > h3, form#login .panel h2.login-title, form#login .panel h3, form#agreement .panel h2.sitename-title, form#register .panel h3, form#register .panel h2, form#reset_password .panel h2 {
	margin: 0; padding: 16px 22px; font-size: 1.15em; font-weight: 600; letter-spacing: 0; text-transform: none; color: #ffffff; background: var(--x-bar-main); border: 0; border-radius: 0;
}
body form.headerspace > h3 a, form#login .panel h3 a { color: #ffffff; }
body fieldset.quick-login { padding: 18px 22px 20px; }
form#login .panel .content, form#agreement .panel .content, form#register .panel .content, form#reset_password .panel .content { padding: 0; }
form#login fieldset.fields1, form#register fieldset, form#reset_password fieldset { padding: 18px 22px 12px; margin: 0; }
form#login .panel > .inner > .content > p, form#login .panel > .inner > .content > hr { margin-left: 22px; margin-right: 22px; }
form#login .panel .content > p:first-of-type { margin-top: 16px; }
form#login .panel .content > p:last-child { margin-bottom: 20px; }
form#agreement .agreement { padding: 18px 22px 8px; }
form#agreement fieldset.submit-buttons { padding: 14px 22px; margin: 0; }
form#login input.inputbox, form#register input.inputbox, form#reset_password input.inputbox, form#register select, body fieldset.quick-login input.inputbox { min-height: var(--x-control-h, 40px); height: var(--x-control-h, 40px); border-radius: var(--x-radius-control); box-sizing: border-box; }
form#login input.button1, form#login a.button2, form#agreement input.button1, form#agreement input.button2, form#register input.button1, form#register input.button2, form#reset_password input.button1, body fieldset.quick-login input.button2 { min-height: var(--x-control-h, 40px); height: var(--x-control-h, 40px); padding: 0 22px; line-height: 1; font-size: .95em; border-radius: var(--x-radius-control); display: inline-flex; align-items: center; justify-content: center; }
form#login a.button2 { text-decoration: none; }
body fieldset.quick-login input.inputbox, form#login input.inputbox, form#register input.inputbox, form#reset_password input.inputbox { background: #ffffff; border: 1px solid var(--x-border-strong); }
form#register .panel .content > p, form#register .panel .content > div:not(.captcha-container), form#register .panel .inner > p { padding-left: 22px; padding-right: 22px; }
form#register .panel .content > h3 + p, form#register .panel .content > h3 + div { margin-top: 16px; }
/* Statistics alone (guests get no Birthdays card): use the full width */
.x-community-overview:not(:has(> .birthday-list)) > .stat-block.statistics { grid-column: 1 / -1; }

/* Field focus: the ring sits INSIDE the field frame (nothing outside to be clipped by the card), in the theme accent colour. */
#page-body input.inputbox:focus, #page-body textarea:focus, #page-body select:focus, #page-body input[type="text"]:focus, #page-body input[type="password"]:focus, #page-body input[type="email"]:focus, body fieldset.quick-login input.inputbox:focus {
	outline: 0 !important; outline-offset: 0 !important; border-color: var(--x-accent) !important; box-shadow: inset 0 0 0 1px var(--x-accent) !important;
}

/* Reported topics: prosilver's old `li.reported:hover { background:#ECD5D8 !important }` painted a pink hover. The red "!" already marks the topic, so the hover is the normal row hover. */
li.reported:hover, ul.topiclist li.row.reported:hover { background-color: color-mix(in srgb, var(--x-danger) 11%, var(--x-hover-row)) !important; }

/* Search this forum / Search this topic: a magnifier button next to the sort button; it opens a small box with the field and an "Advanced search" link. */
.x-search-tools { display: inline-block; vertical-align: top; }
.x-search-tools .dropdown-contents { padding: 14px; min-width: 300px; max-width: calc(100vw - 32px); }
.x-search-tools .x-search-form { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.x-search-tools .x-search-form .inputbox { flex: 1 1 auto; min-width: 0; height: var(--x-control-h, 40px); margin: 0; background: #ffffff; border: 1px solid var(--x-border-strong); border-radius: var(--x-radius-control); box-sizing: border-box; }
.x-search-tools .x-search-form .button { height: var(--x-control-h, 40px); padding: 0 16px; display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.x-search-tools hr.dashed { margin: 12px 0; display: none; }
@media (max-width: 520px) { .x-search-tools .dropdown-contents { min-width: 0; width: calc(100vw - 48px); } .x-search-tools .x-search-form .button span { display: none; } }
.x-search-tools .x-search-form .button .icon { color: #ffffff; }

/* Reported topics and topics/posts waiting for approval must be easy to spot in a long list (moderators only see them): a coloured edge on the left of the row and a faint tint. Red = reported, blue = waiting for approval. The small "!" / "?" icon after the title stays. */
ul.topiclist li.row.reported, li.reported { background-color: color-mix(in srgb, var(--x-danger) 7%, transparent); box-shadow: inset 4px 0 0 var(--x-danger); }
ul.topiclist li.row:has(.fa-question.icon-blue) { background-color: color-mix(in srgb, var(--x-approval, var(--x-accent)) 6%, transparent); box-shadow: inset 4px 0 0 var(--x-approval, var(--x-accent)); }
ul.topiclist li.row:has(.fa-question.icon-blue):hover { background-color: color-mix(in srgb, var(--x-approval, var(--x-accent)) 10%, var(--x-hover-row)) !important; }

/* "Mark subforums read" is a button like "Mark topics read" (template copy viewforum_body.html). */
.action-bar.compact { display: flex; justify-content: flex-end; margin: 0 0 var(--x-card-gap, 8px); }
.action-bar.compact .x-btn-secondary { float: none; }
/* No topics (a forum that only holds subforums): no empty "Page" pill, and no empty bar */
.x-action-bar .pagination:not(:has(*)) { display: none; }
.x-subbar:has(> .pagination:not(:has(*))):not(:has(.x-action-right > *)) { display: none; }

/* TOP BAR: a new bar along the top of the header picture with a half-see-through background (the header shows through). It holds notifications, messages, the avatar menu (or Login / Register for guests) and the Quick links button. Template copies: overall_header.html, navbar_header.html. */
#page-header { position: relative; }
.x-topbar { position: absolute; z-index: 30; top: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--x-topbar-bg); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--x-topbar-line); }
.x-topbar-inner { display: flex; align-items: center; gap: 12px; min-height: var(--x-topbar-h); padding: 8px max(28px, calc(50vw - 50% + 16px)); box-sizing: border-box; justify-content: flex-start; padding-left: max(16px, calc((100% - var(--x-width, 1280px)) / 2)); padding-right: max(16px, calc((100% - var(--x-width, 1280px)) / 2)); }
.x-topbar ul.x-user { position: static; margin: 0; }
.x-topbar ul.x-actions { margin: 0; flex: none; }
/* the logo and the name sit below the bar */
@media (max-width: 700px) { .x-topbar { position: relative; left: 0; right: 0; margin: 0 calc(50% - 50vw); } .headerbar .x-header-top { padding-top: 0; } .x-topbar-inner { padding-top: 8px; padding-bottom: 8px; gap: 8px; flex-wrap: wrap; } }

/* TOP BAR, second step: Quick links and the menu (Forums, FAQ, Members, The team) on the LEFT, notifications / messages / avatar on the RIGHT. The dark bar under the header now holds the breadcrumbs (template x_breadcrumbs.html) and the search. */
.x-topbar-actions .dropdown { left: 0; right: auto; }
.x-topbar-actions .dropdown .pointer { left: 18px; right: auto; }
.x-header-bottom .x-crumbs { flex: 1 1 auto; min-width: 0; }
.x-crumbs ul.linklist { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 0; padding: 0; list-style: none; }
.x-crumbs ul.linklist > li { float: none; margin: 0; padding: 0; line-height: 1.2; }
.x-crumbs .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; padding: 0; }
.x-crumbs .crumb, .x-crumbs .icon-boardindex { font-weight: 600; }
.x-crumbs a, .x-crumbs .crumb:before { color: var(--x-on-bar-text); }
.x-crumbs li.rightside { margin-left: auto; }
.navbar:not(:has(#nav-main li)) { display: none; }
.navbar #nav-main { margin-left: auto; }
.navbar .inner { justify-content: flex-end; }
@media (max-width: 700px) {
	.x-topbar-inner { flex-wrap: wrap; }
	.x-topbar ul.x-nav { order: 3; flex: 1 1 100%; }
	.x-topbar-inner > ul.x-user { margin-left: auto; }
}
.x-crumbs ul.linklist, .x-crumbs ul.navlinks { border: 0; }
.x-crumbs ul.linklist::before, .x-crumbs ul.linklist::after { display: none; }
@media (min-width: 701px) { .x-crumbs li.responsive-search { display: none; } }

/* TOP BAR, third step: (1) the bar's content lines up with the forum width (it was stretching to the whole window); (2) the header is about 10% taller; (3) notifications, messages and the avatar button use the normal button radius, not round pills. */
.x-user-icon > a { width: var(--x-control-h, 40px); height: var(--x-control-h, 40px); }
.x-user-profile .header-avatar { min-height: var(--x-control-h, 40px); padding: 3px 14px 3px 3px; }
.x-user-profile .header-avatar img.avatar, .x-user-profile .x-avatar-default { border-radius: calc(var(--x-radius-control) - 2px); width: 34px; height: 34px; }
@media (max-width: 700px) {  .x-header-top { padding-bottom: 80px; } .x-user-profile .header-avatar { padding: 3px; } }

/* TOP BAR, fourth step: Forums / FAQ on the left (the active one is highlighted); Quick links, notifications, messages and the avatar on the right (Members / The team / Search are no longer in the menu: Members and The team stay in Quick links, search is in the dark bar). Buttons have the same flat look as Quick links (no shadow). Notification numbers are solid and sit a little higher and to the right. The avatar sits close to the edges of its button. */
.x-topbar ul.x-nav a[aria-current] { background: var(--x-bar-main); color: #ffffff; }
.x-topbar ul.x-nav a[aria-current]::before { background-color: #ffffff; }
.x-topbar .x-user-icon > a, .x-topbar .x-user-profile .header-avatar { background: var(--x-surface); border: 1px solid var(--x-border-strong); box-shadow: none; }
.x-topbar .x-user-icon > a:hover, .x-topbar .x-user-profile .header-avatar:hover { background: var(--x-surface); border-color: var(--x-accent); box-shadow: none; }
.x-topbar .x-user-icon .badge { opacity: 1; top: -8px; right: -8px; border: 2px solid var(--x-surface); background: var(--x-notify-bg, var(--x-danger)); color: #ffffff; box-shadow: none; }
.x-topbar .x-user-profile .header-avatar { padding: 2px 12px 2px 2px; gap: 8px; height: var(--x-control-h, 40px); box-sizing: border-box; }
.x-topbar .x-user-profile .header-avatar img.avatar, .x-topbar .x-user-profile .x-avatar-default { width: calc(var(--x-control-h, 40px) - 6px); height: calc(var(--x-control-h, 40px) - 6px); min-width: calc(var(--x-control-h, 40px) - 6px); }
@media (max-width: 700px) { .x-topbar-inner > ul.x-topbar-actions { margin-left: auto; } .x-topbar-inner > ul.x-user { margin-left: 0; } .x-topbar ul.x-nav { order: 3; } }

/* TOP BAR, fifth step: (1) the notifications dropdown is now inside the top bar, so it lost the rules that were written for the old header: white card, dark text, accent links. Rebuilt here. Unread rows are white with a coloured edge and dot (no tinted background); Settings and Mark all read are tonal buttons on hover; "See all" is a tonal button that stays visible while the list scrolls. (2) logo / name / description centred in the part of the header under the bar. (3) the active menu item is a dark pill with white icon and text. */
.x-topbar .dropdown-extended .dropdown-contents { display: flex; flex-direction: column; overflow: hidden; max-height: min(78vh, 600px); color: var(--x-text); background: var(--x-surface); }
.x-topbar .dropdown-extended .dropdown-contents > ul { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0; padding: 0; }
.x-topbar .dropdown-extended .header, .x-topbar .dropdown-extended .footer { flex: none; color: var(--x-text); background: var(--x-surface); border-color: var(--x-border); }
.x-topbar .dropdown-extended .header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; font-weight: 700; border-bottom: 1px solid var(--x-border); }
.x-topbar .dropdown-extended .header .header_settings { display: flex; align-items: center; gap: 2px; font-weight: 600; }
.x-topbar .dropdown-extended .header .header_settings #mark_all_notifications { font-size: 0; }
.x-topbar .dropdown-extended .header .header_settings a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; font-size: 14px; color: var(--x-text); border-radius: var(--x-radius-control); text-decoration: none; }
.x-topbar .dropdown-extended .header .header_settings a:hover { background: var(--x-accent-soft); color: var(--x-accent); }
.x-topbar .dropdown-extended ul li { background: var(--x-surface); }
.x-topbar .dropdown-extended ul li.bg2 { background: var(--x-surface); box-shadow: inset 4px 0 0 var(--x-accent); }
.x-topbar .dropdown-extended ul li:hover, .x-topbar .dropdown-extended ul li.bg2:hover { background: var(--x-hover-row); }
.x-topbar .dropdown-extended .footer { padding: 10px; background: var(--x-surface); border-top: 1px solid var(--x-border); }
.x-topbar .dropdown-extended .footer > a { display: flex; align-items: center; justify-content: center; min-height: var(--x-control-h, 40px); padding: 0 16px; color: var(--x-accent); background: var(--x-accent-soft); border-radius: var(--x-radius-control); font-weight: 600; text-decoration: none; }
.x-topbar .dropdown-extended .footer > a:hover { background: var(--x-accent); color: var(--x-accent-text, #ffffff); }
.x-topbar .dropdown-extended .dropdown-contents a { color: var(--x-text); }
.x-topbar .dropdown-extended .notification_list a.notification-block:hover { color: var(--x-text); }
.x-header-top { padding-top: calc(var(--x-topbar-h) + 50px); padding-bottom: 118px; }
@media (max-width: 700px) { .x-header-top { padding-top: 0; } }
.x-topbar ul.x-nav a[aria-current] .x-nav-label { color: #ffffff; }

/* Fixes from the full page pass: the "Stick topic for" hint on the New topic page made the page wider than the window (horizontal scroll). */
@media (min-width: 701px) { fieldset.fields1 dd { max-width: calc(100% - 250px); box-sizing: border-box; } }

/* Full page pass: (1) message pages ("Information", errors, "Are you sure?") are a card with a flush dark bar and padded text, like the other pages (they were bare text touching the card edge); (2) the boxed fieldsets in the User Control Panel forms got inner padding (text touched the frame); (3) phone: the top bar breaks out of the page padding without making the page wider. */
#page-body > .panel#message, #page-body > form > .panel#message { padding: 0; overflow: hidden; background: var(--x-surface); border: 1px solid var(--x-border-strong); border-radius: 12px; }
#message > .inner { padding: 0; }
#message h2.message-title { margin: 0; padding: 16px 22px; font-size: 1.15em; font-weight: 600; letter-spacing: 0; text-transform: none; color: #ffffff; background: var(--x-bar-main); border: 0; border-radius: 0; }
#message > .inner > p, #message > .inner > form, #message > .inner > fieldset, #message > .inner > .content { margin: 0; padding: 18px 22px 0; }
#message > .inner > p:last-child, #message > .inner > form:last-child, #message > .inner > fieldset:last-child { padding-bottom: 20px; }
#message fieldset.submit-buttons { padding: 8px 22px 20px; margin: 0; }
.cp-main .panel:has(> .inner > fieldset) > .inner, .cp-main .panel:has(> .inner > p + fieldset) > .inner { padding: 16px 20px 8px; }
.cp-main .panel > .inner > fieldset { padding: 0; }

/* ==== MCP BOTTOM TOOLBAR: pagination fits its text, sort button same height ==== */
.mcp-main .action-bar .pagination { flex: 0 0 auto; }
.mcp-main .action-bar .sort-tools .dropdown-trigger, .mcp-main .action-bar .sort-tools > .button { height: var(--x-control-h, 40px); box-sizing: border-box; display: inline-flex; align-items: center; }
.mcp-main .action-bar.bar-top .pagination { margin: 0; }

/* ==== PM FOLDER + UCP PAGINATION: each message is a soft rounded card; pagination fits its content, equal-height page buttons ==== */
.cp-main ul.topiclist:has(+ ul.cplist) { border: 1px solid var(--x-border-strong); border-radius: var(--x-radius); margin-bottom: 8px; overflow: hidden; }
.cp-main ul.topiclist:has(+ ul.cplist) li.header { margin: 0 !important; }
.cp-main ul.topiclist.cplist { margin: 0 0 14px; padding: 0; background: none; border: 0; border-radius: 0; overflow: visible; }
.cp-main ul.cplist li.row { margin: 0 0 8px !important; border: 1px solid var(--x-border); border-radius: var(--x-radius-control, 8px); background: color-mix(in srgb, var(--x-text) 3%, var(--x-surface)); box-shadow: none; padding: 0 !important; }
.cp-main ul.cplist li.row:last-child { margin-bottom: 0 !important; }
.cp-main ul.cplist li.row:hover { background: var(--x-hover-row); }
.cp-main ul.pmlist li.row dl { padding: 10px 14px 10px 6px; }
.cp-main ul.pmlist li.pm_message_reported_colour { box-shadow: inset 4px 0 0 #BC2A4D; }
.cp-main ul.pmlist li.pm_marked_colour { box-shadow: inset 4px 0 0 #FF6600; }
.cp-main ul.pmlist li.pm_replied_colour { box-shadow: inset 4px 0 0 #A9B8C2; }
.cp-main ul.pmlist li.pm_friend_colour { box-shadow: inset 4px 0 0 #5D8FBD; }
.cp-main ul.pmlist li.pm_foe_colour { box-shadow: inset 4px 0 0 #000; }
.cp-main .x-pm-actions .pagination, .cp-main .x-notify-actions .pagination, .cp-main .x-pm-pagination .pagination { flex: 0 0 auto; width: auto; }
.cp-main .pagination li a, .cp-main .pagination li span:not(.page-sep), .cp-main .x-pm-actions .pagination .button, .cp-main .x-notify-actions .pagination .button { height: 28px; min-height: 28px; box-sizing: border-box; }
/* UCP side menu: the whole menu column is already sticky, the inner list must not be sticky again (it slid over the Friends box) */
.cp-menu .navigation { position: static; }
/* UCP lists (subscriptions, bookmarks, drafts): no big frame around text + list; the header bar and the cards carry their own frames */
.cp-main .panel:has(ul.cplist) { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; }
.cp-main .panel:has(ul.cplist) > p, .cp-main .panel:has(ul.cplist) > .inner > p { margin: 0 0 14px; }
.cp-main .panel:has(ul.cplist) ul.topiclist.cplist li.row.reported { background-color: color-mix(in srgb, var(--x-danger) 7%, var(--x-surface)); box-shadow: inset 4px 0 0 var(--x-danger); }
.cp-main ul.cplist li.row, .cp-main ul.cplist li.row:last-child { border-bottom: 1px solid var(--x-border) !important; }

/* ==== UCP PAGE PATTERN: every UCP page = title, plain description right under it, then the content.
   The old page-wide frame (and its different paddings) is gone; field groups (fieldsets) carry their own frame, lists and tables carry theirs. ==== */
.cp-main > form > .panel, .cp-main > h2:not(.posting-title) ~ .panel { border: 0 !important; border-radius: 0; background: none; box-shadow: none; padding: 0 !important; }
.cp-main > form > .panel > .inner, .cp-main > h2:not(.posting-title) ~ .panel > .inner { padding: 0 !important; }
.cp-main > form > .panel > .inner > p:first-child, .cp-main > h2:not(.posting-title) ~ .panel > .inner > p:first-child, .cp-main > h2:not(.posting-title) ~ .panel > p:first-child { margin: 0 0 16px; padding: 0; font-size: 1em; line-height: 1.6; color: var(--x-text); }

/* ==== UCP PAGE HEAD (all UCP pages): title and description sit together in one white band with a line under it, edge to edge across the top of the content area ==== */
.cp-main { --cpx: 32px; --cpy: 26px; --cp-head-r: var(--x-radius); }
@media (max-width: 800px) { .cp-main { --cpx: 18px; --cpy: 20px; --cp-head-r: 0px; } }
.cp-main > h2:not(.posting-title), .cp-main > form > h2 { margin: calc(-1 * var(--cpy)) calc(-1 * var(--cpx)) 22px; padding: var(--cpy) var(--cpx) 18px; font-size: 1.5em; font-weight: 700; background: var(--x-surface); border: 0; border-bottom: 1px solid var(--x-border); border-radius: 0 var(--cp-head-r) 0 0; }
.cp-main > h2:not(.posting-title):has(+ .panel > .inner > p:first-child), .cp-main > h2:not(.posting-title):has(+ form > .panel > .inner > p:first-child), .cp-main > form > h2:has(+ .panel > .inner > p:first-child) { margin-bottom: 0; padding-bottom: 4px; border-bottom: 0; }
.cp-main > h2:not(.posting-title) + .panel > .inner > p:first-child, .cp-main > h2:not(.posting-title) + form > .panel > .inner > p:first-child, .cp-main > form > h2 + .panel > .inner > p:first-child { margin: 0 calc(-1 * var(--cpx)) 22px; padding: 0 var(--cpx) 18px; background: var(--x-surface); border-bottom: 1px solid var(--x-border); color: var(--x-text); }
/* the page head band reaches out of the content padding, so the wrappers around the description must not clip it */
.cp-main > form > .panel, .cp-main > form > .panel > .inner, .cp-main > h2 + .panel, .cp-main > h2 + .panel > .inner, .cp-main > h2 + form > .panel, .cp-main > h2 + form > .panel > .inner { overflow: visible; }

/* ==== UCP SUBMIT BAR: the Submit / Preview buttons live in one action bar docked to the bottom of the page card, edge to edge like the page head ==== */
.cp-main.cp-main fieldset.submit-buttons, .cp-main.cp-main #postform fieldset.submit-buttons, .cp-main.cp-main form#ucp > fieldset.submit-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 28px calc(-1 * var(--cpx)) calc(-1 * var(--cpy)); padding: 16px var(--cpx); background: var(--x-surface); border: 0; border-top: 1px solid var(--x-border); border-radius: 0 0 var(--cp-head-r) 0; text-align: center; }
.cp-main .panel:has(> .inner > fieldset.submit-buttons:last-child) { margin-bottom: 0; }
.cp-main.cp-main fieldset.submit-buttons input[type="submit"], .cp-main.cp-main fieldset.submit-buttons input[type="reset"], .cp-main.cp-main fieldset.submit-buttons .button1, .cp-main.cp-main fieldset.submit-buttons .button2 { height: var(--x-control-h, 40px); min-width: 0; margin: 0; padding: 0 22px; box-shadow: none; transform: none; }

/* NOTIFICATIONS PAGE: count chip beside the title (template ucp_notifications.html), a short colour key, and cards with a coloured left edge: blue = unread, grey = read. */
.cp-main .x-count-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 10px; margin-left: 10px; vertical-align: middle; border-radius: 999px; background: var(--x-accent); color: #fff; font-size: .6em; font-weight: 700; line-height: 1; }
.cp-main.cp-main p.x-notif-legend { display: flex; align-items: center; justify-content: center; gap: 16px; width: fit-content; margin: 0 auto 18px !important; padding: 6px 16px; border: 1px solid var(--x-border); border-radius: var(--x-radius-control, 8px); background: var(--x-surface); font-size: .88em; color: var(--x-text-muted); }
.cp-main .x-notif-legend .x-lg-title { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .85em; }
.cp-main .x-notif-legend .x-lg-item { display: inline-flex; align-items: center; gap: 7px; }
.cp-main .x-notif-legend .x-lg { width: 22px; height: 14px; border-radius: 4px; border: 1px solid var(--x-border-strong); }
.cp-main .x-lg-unread { background: var(--x-accent-soft); }
.cp-main .x-lg-read { background: var(--x-surface); }
.cp-main .notification_list ul.cplist li.row { box-shadow: none; background: var(--x-surface); }
.cp-main .notification_list ul.cplist li.row.bg3 { box-shadow: none; background: var(--x-accent-soft); }
/* NOTIFICATIONS PAGE, header: the dark header is a standalone, fully rounded bar (like the PM folder header), cards below it; the select-all checkbox sits on the same line as the row checkboxes. */
.cp-main .notification_list ul.topiclist:has(+ ul.topiclist) { border: 1px solid var(--x-border-strong); border-radius: var(--x-radius); margin-bottom: 8px; overflow: hidden; }
.cp-main .notification_list ul.topiclist + ul.topiclist { border: 0; border-radius: 0; background: none; overflow: visible; margin: 0 0 14px; }
.cp-main .notification_list li.header dd.mark { width: 110px; margin: 0 10px 0 0 !important; padding: 16px 0; text-align: center; }
.cp-main .notification_list li.header .x-mark-all { display: flex; justify-content: center; gap: 0; }

/* UCP TAB ICONS: an icon before each top tab (Overview, Profile, Board preferences, Private messages, Usergroups, Friends & Foes). The tab links only carry module numbers, so the icon is picked by position (phpBB's standard order). */
#tabs.tabs > ul > .tab:nth-child(-n+6) > a { display: inline-flex; align-items: center; gap: 9px; }
#tabs.tabs > ul > .tab:nth-child(-n+6) > a::before { font-family: FontAwesome; font-weight: 400; font-size: 1.05em; line-height: 1; opacity: .85; }
#tabs.tabs > ul > .tab:nth-child(1) > a::before { content: "\f015"; }
#tabs.tabs > ul > .tab:nth-child(2) > a::before { content: "\f007"; }
#tabs.tabs > ul > .tab:nth-child(3) > a::before { content: "\f1de"; }
#tabs.tabs > ul > .tab:nth-child(4) > a::before { content: "\f0e0"; }
#tabs.tabs > ul > .tab:nth-child(5) > a::before { content: "\f0c0"; }
#tabs.tabs > ul > .tab:nth-child(6) > a::before { content: "\f234"; }

/* UCP TABLES WITH CHECKBOXES (; notification options, login keys, group manager): no outer frame. A standalone, fully rounded header bar, each group name is a small label, each notification type is a soft rounded card with the checkboxes centred in two fixed columns. Template ucp_notifications.html gets class x-notif-options on the table. */
.cp-main table.table1 { border: 0; border-radius: 0; background: none; overflow: visible; border-spacing: 0 8px; margin: 4px 0 14px; }
.cp-main table.table1 thead th { padding: 16px 18px; background: var(--x-bar-main); color: #ffffff; border: 0; font-weight: 700; }
.cp-main table.table1 thead th:first-child { border-radius: var(--x-radius) 0 0 var(--x-radius); }
.cp-main table.table1 thead th:last-child { border-radius: 0 var(--x-radius) var(--x-radius) 0; }
.cp-main table.table1 thead th.mark { width: 120px; text-align: center; }
.cp-main table.table1 tbody tr.bg3 td { position: relative; z-index: 0; padding: 28px 18px 12px; background: none; border: 0; font-size: 1.05em; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--x-accent-text, #ffffff); }
.cp-main table.table1 tbody tr.bg3:first-child td { padding-top: 12px; }
.cp-main table.table1 tbody tr.bg3 td::before { content: ""; position: absolute; inset: 16px 0 0; z-index: -1; background: var(--x-accent); border-radius: var(--x-radius-control, 8px); }
.cp-main table.table1 tbody tr.bg3:first-child td::before { inset: 0; }
.cp-main table.table1 tbody tr.bg1 td, .cp-main table.table1 tbody tr.bg2 td { padding: 14px 18px; background: color-mix(in srgb, var(--x-text) 2.5%, var(--x-surface)); border: 0; }
.cp-main table.table1 tbody tr.bg1:hover td, .cp-main table.table1 tbody tr.bg2:hover td { background: var(--x-hover-row); }
.cp-main table.table1 tbody tr:is(.bg1,.bg2) td:first-child { border-radius: var(--x-radius-control, 8px) 0 0 var(--x-radius-control, 8px); }
.cp-main table.table1 tbody tr:is(.bg1,.bg2) td:last-child { border-radius: 0 var(--x-radius-control, 8px) var(--x-radius-control, 8px) 0; }
.cp-main table.table1 tbody td.mark { width: 120px; text-align: center; }
@media (max-width: 700px) {
	.cp-main table.table1, .cp-main table.table1 tbody { display: block; border-spacing: 0; }
	.cp-main table.table1 thead { display: none; }
	.cp-main table.table1 tbody tr.bg3 { display: block; margin: 18px 0 8px; border: 0 !important; background: none !important; }
	.cp-main table.table1 tbody tr.bg3 td::before { display: none; }
	.cp-main table.table1 tbody tr.bg3 td { display: block; padding: 10px 16px; border: 0 !important; background: var(--x-accent) !important; color: var(--x-accent-text, #ffffff); border-radius: var(--x-radius-control, 8px) !important; }
	.cp-main table.table1 tbody tr:is(.bg1,.bg2) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin: 0 0 8px; padding: 12px 16px; background: color-mix(in srgb, var(--x-text) 2.5%, var(--x-surface)); border: 0; border-radius: var(--x-radius-control, 8px); }
	.cp-main table.table1 tbody tr:is(.bg1,.bg2) td { display: block; padding: 0; border: 0 !important; background: none !important; border-radius: 0 !important; width: auto; }
	.cp-main table.table1 tbody tr:is(.bg1,.bg2) td:first-child { flex: 1 0 100%; }
	.cp-main table.table1 tbody tr:is(.bg1,.bg2) td:first-child > dfn { display: none !important; }
	.cp-main table.table1 tbody td.mark > dfn { font-style: normal; font-size: .85em; font-weight: 600; color: var(--x-text-muted); }
	.cp-main table.table1 tbody td.mark { display: inline-flex !important; align-items: center; gap: 8px; text-align: left; width: auto; }
}

/* NOTIFICATION OPTIONS BULK BUTTONS: Mark all / Unmark all sit above the table, right-aligned. */
.cp-main.cp-main p.x-notif-bulk { display: flex; justify-content: flex-end; gap: 10px; margin: 0 0 6px; }
.cp-main.cp-main p.x-notif-bulk .button2 { display: inline-flex; align-items: center; justify-content: center; line-height: 1; height: var(--x-control-h, 40px); margin: 0; padding: 0 22px; box-shadow: none; transform: none; }

/* NO UNDERLINE ON BUTTONS: link-buttons never underline, on hover, focus or active. */
a.button, a.button1, a.button2, a.button3, a.button-secondary, a.button-search, a.button-search-end, a.button-icon-only, .button:is(:hover,:focus,:active), a.button1:is(:hover,:focus,:active), a.button2:is(:hover,:focus,:active), a.button3:is(:hover,:focus,:active), a.button-secondary:is(:hover,:focus,:active), a.button-search:is(:hover,:focus,:active), a.button-icon-only:is(:hover,:focus,:active) { text-decoration: none; }

/* USERGROUPS: EDIT MEMBERSHIPS: the action bar (Change default group / Options) has no wrapper card; the default-group star is a true 28px square so the glyph sits centred and level with the group name; the Memberships header (which follows a list) gets the same full rounding as Leaderships and Non-memberships. */
.cp-main.cp-main fieldset.x-group-bar { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.cp-main .x-default-pick { box-sizing: border-box; flex: none; width: 28px; height: 28px; padding: 0; }
.cp-main .x-default-pick .icon { display: block; width: auto; height: auto; margin: 0; padding: 0; line-height: 1; }
.cp-main .list-inner > .x-default-pick { left: -2px; top: -1px; }
.cp-main.cp-main ul.topiclist:not(:has(> li.header)) + ul.topiclist:has(+ ul.cplist) { border: 1px solid var(--x-border-strong); border-radius: var(--x-radius); margin-top: 24px; }
/* The hidden radio inside the star label was caught by the generic "dt input[type=radio] { position: relative }" rule and took 26px of flex space, pushing the star out of its circle. Pin it back to an invisible overlay. (Same fix is needed in base/theme/ucp.css when ported.) */
.cp-main ul.topiclist dt .x-default-pick input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }

/* GROUP MANAGER: MANAGE USERS: a one-column header (Members / "no members") is rounded on both sides; the empty-state row is a normal soft card; the action bar under the member list puts select + Submit on the left and Mark all / Unmark all as buttons on the right. Template ucp_groups_manage.html is an Alt copy of the base one (class x-bulk-bar, class bg1 moved to the empty row). */
.cp-main table.table1 thead th:only-child { border-radius: var(--x-radius); }
.cp-main fieldset.x-bulk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0 26px; padding: 0; border: 0; background: none; }
.cp-main fieldset.x-bulk-bar .x-bulk-main, .cp-main fieldset.x-bulk-bar .x-bulk-all { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.cp-main.cp-main fieldset.x-bulk-bar select { height: var(--x-control-h, 40px); min-width: 190px; margin: 0; }
.cp-main.cp-main fieldset.x-bulk-bar .button2 { display: inline-flex; align-items: center; justify-content: center; height: var(--x-control-h, 40px); margin: 0; padding: 0 22px; line-height: 1; box-shadow: none; transform: none; }
/* empty state ("This group has no members"): a clearly rounded dashed box instead of an almost invisible card; Submit in the bulk bar is the primary (blue) button like every other Submit */
.cp-main.cp-main table.table1 tbody tr.x-empty td:first-child:last-child { padding: 24px 18px; text-align: center; color: var(--x-text-muted); background: none; border: 1px dashed var(--x-border-strong); border-radius: var(--x-radius-control, 8px); }
.cp-main.cp-main fieldset.x-bulk-bar .button1 { display: inline-flex; align-items: center; justify-content: center; height: var(--x-control-h, 40px); margin: 0; padding: 0 24px; line-height: 1; box-shadow: none; transform: none; }
@media (max-width: 700px) {
	.cp-main table.table1 tbody tr.x-empty { padding: 0; background: none; border: 0; }
	.cp-main.cp-main table.table1 tbody tr.x-empty td:first-child:last-child { padding: 20px 16px; border: 1px dashed var(--x-border-strong) !important; border-radius: var(--x-radius-control, 8px) !important; }
}
@media (max-width: 700px) {
	.cp-main.cp-main table.table1 tbody tr.x-empty td:first-child:last-child { box-sizing: border-box; width: 100%; flex: 1 1 100%; text-align: center; }
	.cp-main fieldset.x-bulk-bar .x-bulk-main { flex-wrap: nowrap; width: 100%; }
	.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main select { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 700px) {
	.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main select { flex: 1 1 0; width: auto; max-width: none; }
	.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main .button1 { flex: none; }
	.cp-main.cp-main table.table1 tbody tr.x-empty td:first-child:last-child { text-align: center !important; }
}
@media (max-width: 700px) {
	.cp-main fieldset.x-bulk-bar .x-bulk-main { flex-wrap: wrap; }
	.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main select { flex: 1 1 100%; }
}
/* Manage users: Mark all / Unmark all moved above the tables (p.x-notif-bulk, same as notification options); select + Submit sit together in a wrapper card. */
.cp-main.cp-main fieldset.x-bulk-bar { justify-content: flex-start; padding: 16px 18px; background: color-mix(in srgb, var(--x-accent) 5%, var(--x-surface)); border: 1px solid color-mix(in srgb, var(--x-accent) 18%, var(--x-border)); border-radius: var(--x-radius); box-shadow: none; }
@media (max-width: 700px) { .cp-main.cp-main p.x-notif-bulk { justify-content: stretch; } .cp-main.cp-main p.x-notif-bulk .button2 { flex: 1 1 0; } }
/* Manage users action bar, polish: a clear soft card, select grows to a comfortable width, Submit sits right after it, both the same height, white select on the tinted card. */
.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main { flex-wrap: nowrap; gap: 12px; width: 100%; max-width: 560px; }
.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main select { flex: 1 1 auto; width: auto; min-width: 0; padding: 0 40px 0 14px; background-color: var(--x-surface); border: 1px solid var(--x-border-strong); border-radius: var(--x-radius-control, 8px); font-size: .95em; font-weight: 600; color: var(--x-text); }
.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main .button1 { flex: none; min-width: 110px; }
@media (max-width: 700px) {
	.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main { flex-wrap: wrap; max-width: none; }
	.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main select { flex: 1 1 100%; }
	.cp-main.cp-main fieldset.x-bulk-bar .x-bulk-main .button1 { flex: 1 1 100%; }
}
/* the base rule ".cp-main form#ucp > fieldset { padding: 0; border: 0 }" has an id in it, so the wrapper needs the same id to get its padding and border */
.cp-main form#ucp > fieldset.x-bulk-bar { padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--x-accent) 18%, var(--x-border)); border-radius: var(--x-radius); background: color-mix(in srgb, var(--x-accent) 5%, var(--x-surface)); margin: 16px 0 28px; }

/* SEARCH DROPDOWN (; forum and topic pages): no dashed line above "Advanced search"; the link is a tonal button that fills the full width of the dropdown. */
.x-search-tools .x-search-adv { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; height: var(--x-control-h, 40px); margin: 10px 0 0; padding: 0 16px; font-weight: 600; color: var(--x-accent); background: var(--x-accent-soft); border: 0; border-radius: var(--x-radius-control, 8px); text-decoration: none; transition: background-color .15s, color .15s; }
.x-search-tools .x-search-adv:hover, .x-search-tools .x-search-adv:focus-visible { color: var(--x-accent-text, #ffffff); background: var(--x-accent); text-decoration: none; }
.x-search-tools .x-search-adv .icon { color: inherit; }

/* PHONE / NARROW SCREENS, round 1 --
   (1) Top bar: one row at every width. Left: Forums + FAQ (labels hide below 480px, icons stay). Right: quick links, notifications, messages and the avatar (the user name and "Quick links" text hide, the buttons stay the same size). Nothing wraps to a second row any more.
   (2) Forum / topic action bars: New Topic is a full-width button on its own row; below it the page counter fills the left and Mark read, Search and Sort are three square icon buttons on the right (they wrap to their own row only if there are many page numbers).
   (3) The "you posted here" badge on topic tiles is a speech bubble instead of the tiny person. */
@media (max-width: 700px) {
	.x-topbar-inner { flex-wrap: nowrap; gap: 6px; }
	.x-topbar ul.x-nav { order: 0; flex: 0 1 auto; min-width: 0; margin: 0; gap: 2px; }
	.x-topbar-inner > ul.x-topbar-actions { order: 1; flex: none; margin-left: auto; }
	.x-topbar-inner > ul.x-user { order: 2; flex: none; margin: 0; gap: 6px; }
	.x-topbar .x-username { display: none; }
	.x-topbar .x-user-profile .header-avatar { padding: 3px; }
	.x-topbar-actions .quick-links > a > span:not(.icon) { display: none; }
	.x-topbar-actions .quick-links > a { padding: 0; width: var(--x-control-h, 40px); height: var(--x-control-h, 40px); justify-content: center; }
}
@media (max-width: 480px) {
	.x-topbar ul.x-nav a .x-nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.x-topbar ul.x-nav a { padding-left: 0; padding-right: 0; width: var(--x-control-h, 40px); justify-content: center; }
}
@media (max-width: 700px) {
	.x-action-bar.bar-top { gap: 0; }
	.x-action-bar.bar-top .x-action-right { flex: 1 1 100%; margin-left: 0; }
	.x-action-bar.bar-top .x-btn-primary { flex: 1 1 100%; justify-content: center; }
	.x-subbar { flex-wrap: wrap; gap: 8px; }
	.x-subbar .pagination { flex: 1 1 auto; min-width: 0; }
	.x-subbar .x-action-right { flex: none; flex-wrap: nowrap; gap: 6px; margin-left: auto; }
	.x-subbar .x-btn-secondary.mark, .x-subbar .button-secondary.dropdown-trigger { display: inline-flex; align-items: center; justify-content: center; width: var(--x-control-h, 44px); height: var(--x-control-h, 44px); padding: 0 !important; box-sizing: border-box; }
	.x-subbar .x-btn-secondary.mark > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.x-subbar .dropdown-trigger .caret { display: none; }
}

/* PHONE / NARROW SCREENS, round 2 --
   The user name really hides (another rule was stronger), and the dark breadcrumb bar keeps the search icon on the same row as the breadcrumbs: the crumbs shorten with "..." instead of pushing the icon to a second line. */
@media (max-width: 700px) {
	.x-topbar .x-user-profile .header-avatar .x-username { display: none !important; }
	.x-crumbs ul.linklist { flex-wrap: nowrap; }
	.x-crumbs .breadcrumbs { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; overflow: hidden; }
	.x-crumbs .breadcrumbs .crumb { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.x-crumbs .breadcrumbs .crumb:last-child { flex-shrink: 0; }
	.x-crumbs li.responsive-search { flex: none; margin-left: 8px; }
}
@media (max-width: 700px) {
	.x-header-bottom .x-crumbs, .x-crumbs { min-width: 0; max-width: 100%; }
	.x-crumbs ul.linklist { min-width: 0; width: 100%; }
}
/* Breadcrumbs on a phone: the first crumb is only the home icon, middle crumbs drop out (only the parent and the current page stay), so nothing is cut in the middle of a word. */
@media (max-width: 700px) {
	.x-crumbs .breadcrumbs .crumb:first-child > a > span[itemprop="name"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.x-crumbs .breadcrumbs .crumb:not(:first-child):not(:nth-last-child(-n+2)) { display: none; }
	.x-crumbs .breadcrumbs .crumb:nth-last-child(2):not(:first-child) { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 380px) { .x-crumbs .breadcrumbs .crumb:nth-last-child(2):not(:first-child) { display: none; } }

/* NEW TOPIC / POST REPLY IN THE SAME ROW (; forum and topic pages): the primary button now lives at the end of the row with the page counter, mark read, search and sort (templates viewforum_body.html and viewtopic_body.html moved it from its own bar above). On a phone the row is rebuilt with order: the button is first and full width, then the page counter, then the three icon buttons. */
.x-subbar .x-action-right > a.x-btn-primary { white-space: nowrap; }
@media (max-width: 700px) {
	.x-subbar .x-action-right { display: contents; }
	.x-subbar .x-action-right > a.x-btn-primary { order: -1; flex: 1 1 100%; justify-content: center; }
	.x-subbar .pagination { order: 1; }
	.x-subbar .x-action-right > :not(a.x-btn-primary) { order: 2; }
	.x-subbar .x-action-right > .x-btn-secondary.mark { margin-left: auto; }
}


/* TOP BAR ALIGNMENT + TALLER HEADER. The top bar's first button (Forums) and last button (avatar) now line up exactly with the left and right edge of the cards below (they sat 16px further in on wide screens); the header band is 30px taller (24px on a phone). */
@media (max-width: 700px) { .x-topbar-inner { padding-left: 10px; padding-right: 10px; } .x-header-top { padding-bottom: 104px; } }


/* SEARCH BOX OPTIONS ICON (; the gear in the breadcrumb bar): a modern "sliders" glyph from the same FontAwesome set, bigger, and a clean hover (soft rounded tint, no coloured left edge: the old border-color from the base hover rule showed the blue accent on one side). */
.search-header .button-search-end, .search-header .button-search-end:hover, .search-header .button-search-end:focus { border: 0; box-shadow: none; }
.search-header .button-search-end:hover, .search-header .button-search-end:focus-visible { background: var(--x-accent-soft); color: var(--x-accent); }
.search-header .button-search-end:hover .icon { color: var(--x-accent); }

/* TOP BAR: QUICK LINKS ON THE LEFT, NAV BUTTONS LIKE QUICK LINKS (X-Silver only). Left group = Forums, FAQ, Quick links; right group = notifications, messages, avatar. Forums / FAQ when not active look exactly like Quick links (white, 1px border, same height); the active one keeps the dark fill. The Quick links menu now opens from its left edge. */
.x-topbar-inner > ul.x-topbar-actions { margin-left: 0; }
.x-topbar-inner > ul.x-user { margin-left: auto; }
.x-topbar ul.x-nav { flex-wrap: nowrap; gap: 12px; }
.x-topbar ul.x-nav a { box-sizing: border-box; height: var(--x-control-h, 40px); }
@media (max-width: 700px) { .x-topbar ul.x-nav { gap: 6px; } }
.x-topbar ul.x-nav a:not([aria-current]) { background: var(--x-surface); border: 1px solid var(--x-border-strong); color: var(--x-text); font-weight: 600; }
.x-topbar ul.x-nav a:not([aria-current]):hover { background: var(--x-surface); border-color: var(--x-accent); color: var(--x-accent); }
.x-topbar ul.x-nav a:not([aria-current])::before { background-color: currentColor; }
@media (max-width: 700px) { .x-topbar-inner > ul.x-topbar-actions { order: 1; margin-left: 0; } .x-topbar-inner > ul.x-user { order: 2; margin-left: auto; } }

/* ICONS FROM THE TABLER SET ONLY (; standing rule: never the old FontAwesome glyphs when a Tabler one exists). The settings gear (search box options, ACP link) is Tabler "settings", the "you posted here" badge is Tabler "user". */
.icon.fa-cog, .icon.fa-cogs { position: relative; display: inline-block; width: 18px; height: 18px; vertical-align: middle; font-size: 0; --x-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065z%22/%3E%3Cpath d=%22M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0%22/%3E%3C/svg%3E"); }
.icon.fa-cog::before, .icon.fa-cogs::before { content: ""; display: block; width: 100%; height: 100%; font-family: inherit; background: currentColor; -webkit-mask: var(--x-ico) center / contain no-repeat; mask: var(--x-ico) center / contain no-repeat; }
.search-header .button-search-end .icon.fa-cog { width: 21px; height: 21px; }

/* TOPIC KIND COLOURS: announcement = red, pinned = orange, locked = slate grey. Read and unread keep the same colour (unread is the filled version of the icon). */
dl.row-item[class^="sticky_"], dl.row-item[class*=" sticky_"] { --ico-color: #f08a1c !important; }
dl.row-item[class*="_locked"] { --ico: url("data:image/svg+xml,%3Csvg%0A  xmlns=%22http://www.w3.org/2000/svg%22%0A  viewBox=%220 0 24 24%22%0A  fill=%22none%22%0A  stroke=%22black%22%0A  stroke-width=%221.75%22%0A  stroke-linecap=%22round%22%0A  stroke-linejoin=%22round%22%0A%3E%0A  %3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%0A  %3Cpath d=%22M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z%22 /%3E%0A  %3Cpath d=%22M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0%22 /%3E%0A  %3Cpath d=%22M8 11v-4a4 4 0 1 1 8 0v4%22 /%3E%0A%3C/svg%3E"); --ico-color: #6b7a90 !important; }

/* TOPIC ICON: SPEECH BUBBLE WITH TEXT LINES. Plain topics (read and unread) use Tabler "message" (square bubble with two text lines); forums keep the round bubble ("message-circle"), so a forum and a topic stay different at a glance. Hot, pinned, announcement and locked topics keep their own icons. */
dl.row-item[class*="topic_"]:not([class*="_hot"]):not([class*="_locked"]):not(.topic_moved) { --ico: var(--ico-forum-bubble); --ico-size: 34px; }

/* ROUND 2, after the first look at the topic icon trial --
   (1) PAGINATION in the action bars: page links are 28px tall like the active page (the hover tile no longer fills the whole bar), and the wrapper is evenly padded on both sides (6px; the 8px + 14px that left a big gap on the left is gone). The plain "Page 1 of 1" text keeps its 14px padding.
   (2) TOPIC ICON: plain topics use the round forum bubble again but smaller (34px vs the forum's 46px) instead of the square "message" icon.
   (3) HOT topics: the flame is red-orange (#e8472b); unread is still told by the filled flame.
   (4) MODERATOR tools button (hammer): green tonal. */
.x-action-bar .pagination:has(> ul) { padding: 0 6px; }
.x-action-bar .pagination > ul { margin: 0; }
.x-action-bar .pagination > ul > li:first-child { margin-left: 0; }
.x-action-bar .pagination li a.button.button { height: 28px; min-height: 28px; box-shadow: none; }
dl.row-item[class*="_hot"] { --ico-color: #e8472b !important; }
.quickmod .button.button-secondary.dropdown-trigger { color: color-mix(in srgb, var(--x-success) 75%, #000); background: color-mix(in srgb, var(--x-success) 14%, var(--x-surface)); border-color: color-mix(in srgb, var(--x-success) 35%, var(--x-border)); }
.quickmod .button.button-secondary.dropdown-trigger:hover { background: color-mix(in srgb, var(--x-success) 24%, var(--x-surface)); border-color: var(--x-success); }
.quickmod .dropdown-trigger .icon, .quickmod .dropdown-trigger .caret::after { color: inherit; }


/* QUICK REPLY BUTTON BAR: the bar that shows under the text box (Full Editor & Preview, Submit) has the normal control radius (8px, it had the card radius 11px), 10px padding all round (it had 12px plus extra space below), and both buttons are exactly the same height (the standard control height, with the same box sizing). */
.x-qr:focus-within fieldset.submit-buttons, .x-qr:has(textarea:not(:placeholder-shown)) fieldset.submit-buttons { padding: 10px 14px; margin: 0; border-radius: var(--x-radius-control, 8px); }
.x-qr fieldset.submit-buttons input.button1, .x-qr fieldset.submit-buttons input.button2 { box-sizing: border-box; height: var(--x-control-h, 40px); min-height: var(--x-control-h, 40px); padding-top: 0; padding-bottom: 0; line-height: 1; border-width: 1px; }
.x-qr.panel, .x-qr { padding-bottom: 16px; }
.x-qr .inner { row-gap: 12px; }

/* Dark themes invert group colours with a filter on .username-coloured and switch it off inside .headerbar; the top bar is no longer inside .headerbar. */
.x-topbar .username-coloured { filter: none; }

/* Top bar content (bell, messages, avatar button, user name): the colour that goes with the glass behind it, which comes from the theme's surface. X-Silver and X-Mass keep the header text colour (their own interface-theme.css sets --x-topbar-text). */
.x-topbar .x-user-icon > a, .x-topbar .x-user-icon > a .icon { color: var(--x-topbar-text, var(--x-text)); }
.x-topbar .x-user-profile .header-avatar, .x-topbar .x-user-profile .header-avatar .username-coloured, .x-topbar .x-user-profile .header-avatar .x-username { color: var(--x-topbar-text, var(--x-text)) !important; }

/* HEADER BAND GEOMETRY (all themes): the clean header (between the top bar and the breadcrumb bar) is --x-header-min tall and the brand (logo, name, description) is centred in it. The header picture of a theme is no longer hidden by the top bar. X-Silver sets its own, smaller --x-header-min. */
.headerbar .x-header-top.x-header-top { align-items: center; box-sizing: border-box; padding-top: 35px; padding-bottom: 0; min-height: var(--x-header-min); }

/* The gap between a category/topic bar and its first row belongs to the list (the list reaches up under the bar), so it has the list's colour and not a slightly different shade of the box behind it. */
.forabg ul.topiclist:has(> li.header) + ul.topiclist, .forumbg:not(.forumbg-table) ul.topiclist:has(> li.header) + ul.topiclist { margin-top: calc(-1 * var(--x-card-gap, 8px)); padding-top: var(--x-card-gap, 8px); }

/* Icons in the "Who is online / Statistics / Birthdays" card titles: --x-card-icon-color (default: the dark bar colour, which works on light cards). Dark themes set it to their accent in their own interface-theme.css, because a dark bar colour is almost invisible on a dark card. */

/* Header logo: the stacked logo (the X above the name). Height comes from --x-logo-h, the width follows the picture (--x-logo-ratio); both are set per theme. */
.headerbar .x-header-top .site-description .site_logo { width: calc(var(--x-logo-h) * var(--x-logo-ratio)); height: var(--x-logo-h); max-width: 100%; background-size: contain; background-position: center; background-repeat: no-repeat; }
@media (max-width: 700px) { .headerbar .x-header-top .site-description .site_logo { width: calc(var(--x-logo-h) * .68 * var(--x-logo-ratio)); height: calc(var(--x-logo-h) * .68); } }
/* Footer logo: same stacked picture, a little larger, no empty gap beside it. */
.x-footer-brand .x-footer-logo { height: 76px; width: calc(76px * var(--x-logo-ratio)); }

/* Site name and description in the header: one size for every theme (the logo is smaller, so the text is larger than before). */
.headerbar .x-header-top .site-description h1 { font-size: 2.4em; line-height: 1.1; }
.headerbar .x-header-top .site-description p:not(.skiplink) { font-size: 1.2em; line-height: 1.35; }
@media (max-width: 700px) {
	.headerbar .x-header-top .site-description h1 { font-size: 1.75em; }
	.headerbar .x-header-top .site-description p:not(.skiplink) { font-size: 1em; }
}

/* Breadcrumbs: the "Board index" house is a Tabler icon and larger than the old glyph. */
.breadcrumbs .icon.fa-home { width: auto; margin: 0 3px 0 0; font-size: 1em; }
.breadcrumbs .icon.fa-home::before { content: ""; display: inline-block; width: 22px; height: 22px; vertical-align: -5px; font-family: inherit; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M5 12l-2 0l9 -9l9 9l-2 0%22/%3E%3Cpath d=%22M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7%22/%3E%3Cpath d=%22M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6%22/%3E%3C/svg%3E") center / 22px 22px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.75%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath stroke=%22none%22 d=%22M0 0h24v24H0z%22 fill=%22none%22/%3E%3Cpath d=%22M5 12l-2 0l9 -9l9 9l-2 0%22/%3E%3Cpath d=%22M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7%22/%3E%3Cpath d=%22M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6%22/%3E%3C/svg%3E") center / 22px 22px no-repeat; }

/* Collapsed category: the card is only the bar (no 8px gap and no light strip under it). */
.forabg.x-collapsed li.header { margin-bottom: 0; border-bottom: 0; }

/* Top bar: the notification and message buttons are exactly as tall as the other buttons (the 1px border was added on top of 40px, making them 42px). */
.x-topbar .x-user-icon > a { box-sizing: border-box; }

/* Top bar controls share an opaque, softly tinted surface. Keep label colours on the
   control itself, independent of the image/header behind the bar. */
#page-header .x-topbar ul.x-nav a:not([aria-current]),
#page-header .x-topbar .quick-links > a,
#page-header .x-topbar .x-user-guest:not(.x-user-register) > a,
#page-header .x-topbar .x-user-icon > a,
#page-header .x-topbar .x-user-profile .header-avatar {
    background: var(--x-topbar-control-bg);
    color: var(--x-topbar-control-text);
    border: 1px solid var(--x-topbar-control-border);
    opacity: 1;
    box-shadow: none;
}
#page-header .x-topbar ul.x-nav a:not([aria-current]):is(:hover, :focus-visible),
#page-header .x-topbar .quick-links > a:is(:hover, :focus-visible),
#page-header .x-topbar .x-user-guest:not(.x-user-register) > a:is(:hover, :focus-visible),
#page-header .x-topbar .x-user-icon > a:is(:hover, :focus-visible),
#page-header .x-topbar .x-user-profile .header-avatar:is(:hover, :focus-visible) {
    background: var(--x-topbar-control-bg);
    color: var(--x-topbar-control-hover-text);
    border-color: var(--x-topbar-control-hover-text);
}
#page-header .x-topbar ul.x-nav a:not([aria-current]) .x-nav-label,
#page-header .x-topbar .quick-links > a .icon,
#page-header .x-topbar .quick-links > a > span,
#page-header .x-topbar .x-user-guest:not(.x-user-register) > a .icon,
#page-header .x-topbar .x-user-guest:not(.x-user-register) > a > span,
#page-header .x-topbar .x-user-icon > a .icon { color: inherit; }
#page-header .x-topbar .x-user-profile .header-avatar,
#page-header .x-topbar .x-user-profile .header-avatar .username-coloured,
#page-header .x-topbar .x-user-profile .header-avatar .x-username,
#page-header .x-topbar .x-user-profile .header-avatar .icon { color: var(--x-topbar-control-text) !important; }
#page-header .x-topbar .x-user-profile .header-avatar:is(:hover, :focus-visible),
#page-header .x-topbar .x-user-profile .header-avatar:is(:hover, :focus-visible) .username-coloured,
#page-header .x-topbar .x-user-profile .header-avatar:is(:hover, :focus-visible) .x-username,
#page-header .x-topbar .x-user-profile .header-avatar:is(:hover, :focus-visible) .icon { color: var(--x-topbar-control-hover-text) !important; }

/* A theme can deepen its primary registration colour for readable white labels. */
#page-header .x-topbar .x-user-register > a:not(:hover) { background: var(--x-topbar-register-bg, var(--x-accent)); }

/* Use the same outer control height; keep the fixed navigation icons from shrinking
   into Quick links when guest Login / Register labels share the mobile row. */
#page-header .x-topbar ul.x-nav a,
#page-header .x-topbar .quick-links > a,
#page-header .x-topbar .x-user-guest > a,
#page-header .x-topbar .x-user-icon > a { box-sizing: border-box; height: var(--x-control-h, 40px); }
@media (max-width: 700px) {
    #page-header .x-topbar ul.x-nav { flex-shrink: 0; }
    #page-header .x-topbar .x-user-guest > a { padding-inline: 12px; }
}
@media (max-width: 360px) {
    #page-header .x-topbar .x-user-guest:not(.x-user-register) > a { width: var(--x-control-h, 40px); padding-inline: 0; }
    #page-header .x-topbar .x-user-guest:not(.x-user-register) > a > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* ===== X-Silver: the parts of the look that belong only to X-Silver (white breadcrumb bar, bare X logo header, white footer band, black icons, navy bars).
   Appended after base/theme/interface.css by build.sh. ===== */
.x-footer::before { background: var(--x-surface); border-top: 1px solid var(--x-border-strong); }

/* x-silver only */
/* WHITE BREADCRUMB BAR (X-Silver only, the sync script leaves it out of X-Mass): the bar under the header is white with a hairline above and below; breadcrumbs are dark text with the accent on hover, the search box inside it is a light field. */
.x-header-bottom { --x-on-bar-text: var(--x-text); --x-on-bar-1: rgba(15, 23, 42, .05); --x-on-bar-2: rgba(15, 23, 42, .12); }
.x-header-bottom::before { background: var(--x-surface); border-top: 1px solid var(--x-border-strong); border-bottom: 1px solid var(--x-border-strong); box-sizing: border-box; }
.x-crumbs a, .x-crumbs .crumb::before { color: var(--x-text); }
.x-crumbs .crumb:last-child a { color: var(--x-heading); }
.x-crumbs a:hover { text-decoration: none; color: var(--x-accent); opacity: 1; }
body .x-header-bottom .search-header input.inputbox::placeholder { color: var(--x-text-muted); }
.x-header-bottom .search-header fieldset { background: var(--x-surface-alt, #f5f7fa); border-color: var(--x-border-strong); }
.x-header-bottom .search-header fieldset:focus-within { background: var(--x-surface); border-color: var(--x-accent); }
.x-header-bottom .search-header .button-search-end { color: var(--x-text-muted); opacity: 1; }
.x-header-bottom .search-header .button-search-end:hover { color: var(--x-accent); background: var(--x-accent-soft); }
.x-crumbs li.responsive-search a { color: var(--x-text); }
/* end x-silver only */

/* x-silver only */
/* LEFT BRAND + BARE LOGO (X-Silver only; the sync script leaves it out of X-Mass). The logo, name and description sit at the left edge of the header band (in line with the cards), vertically centred. The logo file is just the mark, transparent, no card: the box is sized by --x-logo-w / --x-logo-h and uses "contain", so any replacement logo of any shape fits. Text sits on the right of the mark. */
.headerbar .x-header-top { min-height: var(--x-header-min); padding: var(--x-topbar-h) 0 0; box-sizing: border-box; justify-content: flex-start; align-items: center; }
.x-header-top .site-description { flex: none; width: auto; max-width: 100%; justify-content: start; gap: 4px 22px; }
.site-description .site_logo, .site-description .logo { background-position: center; }
.site-description h1 { grid-column: 2; grid-row: 1; align-self: end; margin: 0; white-space: normal; overflow: visible; overflow-wrap: anywhere; font-size: 2.1em; line-height: 1.1; }
@media (max-width: 700px) {
	:root { --x-header-min: 190px; }
	.headerbar .x-header-top { padding-top: 0; }
	.x-header-top .site-description { gap: 2px 16px; margin-left: -7px; }
	.site-description h1 { font-size: 1.6em; }
	.site-description p:not(.skiplink) { font-size: .95em; }
}
/* end x-silver only */

/* x-silver only */
/* BRAND CENTRED IN THE CLEAN HEADER (X-Silver only): the clean header is the space between the top bar and the breadcrumb bar. The header band starts 26px below the top of the page (the page padding), and the top bar covers its first 35px, so the band gets a 35px top padding and no bottom padding: the logo, name and description sit exactly in the middle of the clean space. Height of the clean space unchanged. */
@media (max-width: 700px) { .headerbar .x-header-top.x-header-top { padding-top: 0; padding-bottom: 12px; min-height: var(--x-header-min); } }
/* end x-silver only */

/* x-silver only */
/* Topic and forum icons are black in X-Silver (other themes take their text colour). */
/* end x-silver only */

/* Stacked logo (X above the name): shape and height of the header logo. */

.site_logo, a#logo.logo {
    display: none !important;
}

