/* ==========================================================================

   CAF 3.0 theme stylesheet

   Design tokens, layout, board index, topic list, post view, legacy compat.

   Everything themeable lives in the :root block. Dark mode overrides follow.

   ========================================================================== */



/* --------------------------------------------------------------------------

   1. Tokens

   -------------------------------------------------------------------------- */

:root {

	/* Brand (hue/sat/light so custom styles can retint with one variable) */

	--c3-brand-h: 214;

	--c3-brand-s: 72%;

	--c3-brand-l: 46%;

	--c3-brand: hsl(var(--c3-brand-h) var(--c3-brand-s) var(--c3-brand-l));

	--c3-brand-hover: hsl(var(--c3-brand-h) var(--c3-brand-s) calc(var(--c3-brand-l) - 8%));

	--c3-brand-deep: hsl(var(--c3-brand-h) calc(var(--c3-brand-s) - 20%) 26%);

	--c3-brand-soft: hsl(var(--c3-brand-h) 60% 95%);

	--c3-brand-soft-2: hsl(var(--c3-brand-h) 55% 90%);

	--c3-brand-text: #ffffff;

	--c3-accent: #f5a623;

	--c3-accent-hover: #e09410;

	--c3-accent-text: #1b1c22;



	/* Header band */

	--c3-header-from: hsl(var(--c3-brand-h) 55% 24%);

	--c3-header-to: hsl(var(--c3-brand-h) 62% 38%);

	--c3-header-text: #ffffff;

	--c3-header-muted: rgba(255, 255, 255, .72);



	/* Neutrals */

	--c3-bg: #f1f5f9;

	--c3-surface: #ffffff;

	--c3-surface-2: #f8fafc;

	--c3-surface-3: #eef2f7;

	--c3-border: #e2e8f0;

	--c3-border-strong: #cbd5e1;

	--c3-text: #1e293b;

	--c3-text-2: #334155;

	--c3-muted: #64748b;

	--c3-faint: #94a3b8;

	--c3-link: var(--c3-brand);

	--c3-link-hover: var(--c3-brand-hover);



	/* Status */

	--c3-success: #16a34a;

	--c3-danger: #dc2626;

	--c3-warn: #d97706;

	--c3-info: #0284c7;

	--c3-new: #ef4444;



	/* Shape */

	--c3-radius: 10px;

	--c3-radius-sm: 6px;

	--c3-radius-pill: 999px;

	--c3-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);

	--c3-shadow-md: 0 6px 18px rgba(15, 23, 42, .10);

	--c3-shadow-lg: 0 14px 38px rgba(15, 23, 42, .18);

	--c3-ring: 0 0 0 3px hsl(var(--c3-brand-h) var(--c3-brand-s) var(--c3-brand-l) / .25);



	/* Type */

	--c3-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	--c3-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

	--c3-font-size: 15px;

	--c3-line: 1.55;



	/* Layout */

	--c3-container: 1440px;

	--c3-gutter: 20px;



	/* Legacy aliases (templates copied from CAF 2 reference these) */

	--primary-color: var(--c3-brand);

	--primary-color-acc: var(--c3-brand-hover);

	--secondary-color: var(--c3-border-strong);

	--secondary-color-acc: var(--c3-muted);

	--body-bg: var(--c3-bg);

	--body-txt-color: var(--c3-text);

	--body-link-color: var(--c3-link);

	--body-link-color-hover: var(--c3-link-hover);

	--body-font-family: var(--c3-font);

	--main-content-bg: var(--c3-surface);

	--main-boards-title: var(--c3-text);

	--windowbg-bg: var(--c3-surface);

	--windowbg2-bg: var(--c3-surface-2);

	--roundframe-bg: var(--c3-surface-2);

	--content-border-color: var(--c3-border);

	--input-bg: var(--c3-surface);

	--input-txt-color: var(--c3-text);

	--button-bg: var(--c3-brand);

	--button-bg-hover: var(--c3-brand-hover);

	--button-txt-color: #fff;

	--button-txt-color-hover: #fff;

	--button-border-radius: var(--c3-radius-sm);

	--buttonlist-bg: var(--c3-surface-2);

	--buttonlist-txt-color: var(--c3-text-2);

	--nav-bg: var(--c3-surface);

	--catbg-bg: var(--c3-surface-2);

	--titlebg-bg: var(--c3-surface-2);

	--subnav-dropdown-border-radius: var(--c3-radius-sm);

	--footer-bg: transparent;

	--footer-txt-color: var(--c3-muted);

}



/* Dark palette. Applied by explicit toggle, or by OS preference when no toggle chosen. */

[data-theme="dark"] {

	--c3-brand-l: 58%;

	--c3-brand-soft: hsl(var(--c3-brand-h) 40% 18%);

	--c3-brand-soft-2: hsl(var(--c3-brand-h) 40% 24%);

	--c3-header-from: #0b1220;

	--c3-header-to: #12213a;

	--c3-bg: #0f172a;

	--c3-surface: #1e293b;

	--c3-surface-2: #172033;

	--c3-surface-3: #253248;

	--c3-border: #2e3b52;

	--c3-border-strong: #3f4d66;

	--c3-text: #e2e8f0;

	--c3-text-2: #cbd5e1;

	--c3-muted: #94a3b8;

	--c3-faint: #64748b;

	--c3-shadow: 0 1px 2px rgba(0, 0, 0, .35);

	--c3-shadow-md: 0 6px 18px rgba(0, 0, 0, .40);

	--c3-shadow-lg: 0 14px 38px rgba(0, 0, 0, .55);

	color-scheme: dark;

}

@media (prefers-color-scheme: dark) {

	:root:not([data-theme="light"]) {

		--c3-brand-l: 58%;

		--c3-brand-soft: hsl(var(--c3-brand-h) 40% 18%);

		--c3-brand-soft-2: hsl(var(--c3-brand-h) 40% 24%);

		--c3-header-from: #0b1220;

		--c3-header-to: #12213a;

		--c3-bg: #0f172a;

		--c3-surface: #1e293b;

		--c3-surface-2: #172033;

		--c3-surface-3: #253248;

		--c3-border: #2e3b52;

		--c3-border-strong: #3f4d66;

		--c3-text: #e2e8f0;

		--c3-text-2: #cbd5e1;

		--c3-muted: #94a3b8;

		--c3-faint: #64748b;

		--c3-shadow: 0 1px 2px rgba(0, 0, 0, .35);

		--c3-shadow-md: 0 6px 18px rgba(0, 0, 0, .40);

		--c3-shadow-lg: 0 14px 38px rgba(0, 0, 0, .55);

		color-scheme: dark;

	}

}



/* --------------------------------------------------------------------------

   2. Base

   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* Text sizes in this file are rem based, so the root must follow the chosen body size.
   The design was drawn at a 16px root with 15px body text; the 16/15 factor keeps that
   ratio when a visitor (font size widget) or a style (--c3-font-size) changes the size. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: calc(var(--body-font-size, var(--c3-font-size)) * 16 / 15); }

body.c3 {

	margin: 0;

	background: var(--c3-bg);

	color: var(--c3-text);

	font-family: var(--c3-font);

	font-size: var(--body-font-size, var(--c3-font-size));

	line-height: var(--c3-line);

	-webkit-font-smoothing: antialiased;

	-moz-osx-font-smoothing: grayscale;

	min-height: 100vh;

	display: flex;

	flex-direction: column;

	overflow-x: clip;

}

body.c3 a { color: var(--c3-link); text-decoration: none; transition: color .15s ease; }

body.c3 a:hover { color: var(--c3-link-hover); text-decoration: underline; }

body.c3 h1, body.c3 h2, body.c3 h3, body.c3 h4, body.c3 h5, body.c3 h6 {

	margin: 0; font-weight: 600; line-height: 1.3; color: var(--c3-text);

}

body.c3 p { margin: 0 0 .75em; }

body.c3 img { max-width: 100%; height: auto; vertical-align: middle; }

body.c3 hr { border: 0; border-top: 1px solid var(--c3-border); margin: 1rem 0; }

body.c3 ::selection { background: var(--c3-brand-soft-2); }

body.c3 a:focus-visible, body.c3 button:focus-visible, body.c3 input:focus-visible, body.c3 select:focus-visible, body.c3 textarea:focus-visible, body.c3 [tabindex]:focus-visible { outline: none; box-shadow: var(--c3-ring); border-radius: var(--c3-radius-sm); }



.c3-skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--c3-surface); padding: 8px 12px; border-radius: var(--c3-radius-sm); box-shadow: var(--c3-shadow-md); }

.c3-skip:focus { left: 8px; }

.c3-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }



.c3-container { width: 100%; max-width: var(--c3-container); margin: 0 auto; padding: 0 var(--c3-gutter); }



/* --------------------------------------------------------------------------

   3. Header: brand band, search, actions

   -------------------------------------------------------------------------- */

.c3-header { position: relative; z-index: 50; }

.c3-topbar {

	background: linear-gradient(135deg, var(--c3-header-from), var(--c3-header-to));

	color: var(--c3-header-text);

}

.c3-topbar__in { display: flex; align-items: center; gap: 16px; min-height: 66px; padding-top: 8px; padding-bottom: 8px; }

.c3-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c3-header-text) !important; text-decoration: none !important; min-width: 0; flex: 0 1 auto; overflow: hidden; }

.c3-brand img { max-height: 44px; width: auto; }

.c3-brand__name { min-width: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.c3-brand__mark { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.16); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }



.c3-search { flex: 1 1 auto; max-width: 460px; margin: 0 auto; position: relative; }

.c3-search__input {

	width: 100%; height: 40px; padding: 0 42px 0 14px; border-radius: var(--c3-radius-pill);

	border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: .92rem;

	transition: background .15s ease, border-color .15s ease;

}

.c3-search__input::placeholder { color: rgba(255,255,255,.7); }

.c3-search__input:focus { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); outline: none; box-shadow: none; }

.c3-search__btn { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

.c3-search__btn:hover { background: rgba(255,255,255,.18); }



.c3-topbar__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }

.c3-iconbtn {

	width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--c3-header-text);

	display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; cursor: pointer; position: relative;

	transition: background .15s ease;

}

.c3-iconbtn:hover { background: rgba(255,255,255,.16); color: #fff; text-decoration: none; }

.c3-topbar .c3-textlink { color: var(--c3-header-text); font-weight: 500; padding: 8px 10px; border-radius: var(--c3-radius-sm); }

.c3-topbar .c3-textlink:hover { background: rgba(255,255,255,.14); text-decoration: none; color: #fff; }

.c3-cta {

	display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--c3-radius-pill);

	background: var(--c3-accent); color: var(--c3-accent-text) !important; font-weight: 600; font-size: .9rem; text-decoration: none !important;

	border: 1px solid rgba(0,0,0,.08); transition: background .15s ease, transform .15s ease;

}

.c3-cta:hover { background: var(--c3-accent-hover); transform: translateY(-1px); }



/* User dropdown in the header (uses Bootstrap dropdown JS, styled here) */

.c3-user { position: relative; }

.c3-user__btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: var(--c3-radius-pill); color: var(--c3-header-text) !important; text-decoration: none !important; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); }

.c3-user__btn:hover { background: rgba(255,255,255,.18); }

.c3-user__btn .avatar_dot, .c3-user__btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

.c3-user__name { font-weight: 500; font-size: .92rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.c3-user__btn .caret { display: none; }

.c3-user__btn::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; margin-left: 2px; opacity: .8; }

.mod_attention { background: var(--c3-danger); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: var(--c3-radius-pill); }



/* Alerts bell (markup + ids preserved for alerts.js) */

#alerts_menu_top { position: relative; display: flex; align-items: center; }

#alerts_bell { color: var(--c3-header-text); font-size: 1.05rem; text-decoration: none; position: relative; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }

#alerts_bell:hover { background: rgba(255,255,255,.16); color: #fff; }

#alerts_bell .amt { position: absolute; top: 2px; right: 0; }

.amt { background: var(--c3-new); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 5px; border-radius: var(--c3-radius-pill); min-width: 17px; text-align: center; line-height: 15px; display: inline-block; }

#alerts_menu { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 32px); max-height: 420px; overflow-y: auto; background: var(--c3-surface); color: var(--c3-text); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow-lg); z-index: 1050; }

#alerts_menu .alerts_popup_header { padding: 10px 14px; border-bottom: 1px solid var(--c3-border); font-weight: 600; display: flex; justify-content: space-between; align-items: center; background: var(--c3-surface-2); }

#alerts_menu .alerts_popup_header a { font-size: .8rem; font-weight: 400; }

.unread_notify { padding: 10px 12px; border-bottom: 1px solid var(--c3-border); display: flex; align-items: flex-start; }

.unread_notify:hover { background: var(--c3-surface-2); }

.unread_notify_image { width: 36px; min-width: 36px; margin-right: 10px; }

.unread_notify_image img, .alert_image img { width: 32px; height: 32px; border-radius: 50%; }

#alerts_menu .details { flex: 1; font-size: .82rem; line-height: 1.4; }

.alert_text { color: var(--c3-text); }

.alert_time { color: var(--c3-muted); font-size: .74rem; }

.no_alerts { padding: 18px; text-align: center; color: var(--c3-muted); }

.unread_alert { background: var(--c3-brand-soft); }



/* --------------------------------------------------------------------------

   4. Navigation bar

   -------------------------------------------------------------------------- */

.c3-nav { background: var(--c3-surface); border-bottom: 1px solid var(--c3-border); box-shadow: var(--c3-shadow); }

.c3-nav__in { display: flex; align-items: center; min-height: 48px; padding-top: 0; padding-bottom: 0; }

.c3-nav .navbar-nav, .c3-nav__list { display: flex; flex-wrap: wrap; align-items: stretch; list-style: none; margin: 0; padding: 0; gap: 2px; }

.c3-nav .nav-item { position: relative; display: flex; }

.c3-nav .nav-item .nav-link, .c3-nav .nav-link {

	display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; min-height: 48px; color: var(--c3-text-2); font-weight: 500; font-size: .92rem;

	border-bottom: 2px solid transparent; text-decoration: none !important; white-space: nowrap; transition: color .15s ease, background .15s ease;

}

.c3-nav .nav-item .nav-link:hover { color: var(--c3-brand); background: var(--c3-surface-2); }

.c3-nav .nav-item.active > .nav-link, .c3-nav .navbar-nav .nav-item.active > .nav-link { color: var(--c3-brand); border-bottom-color: var(--c3-brand); }

.c3-nav .nav-link .caret { display: none; }

.c3-nav .nav-link.dropdown-toggle::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; margin-left: 2px; opacity: .7; vertical-align: middle; }

.c3-nav__toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--c3-border); background: var(--c3-surface); color: var(--c3-text-2); padding: 7px 12px; border-radius: var(--c3-radius-sm); font: inherit; font-size: .9rem; cursor: pointer; margin: 8px 0; }



/* Dropdown panels shared by nav, user menu, sort menus */

body.c3 .dropdown-menu {

	display: none; position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 200px; margin: 6px 0 0; padding: 6px; list-style: none;

	background: var(--c3-surface); color: var(--c3-text); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow-lg);

	font-size: .9rem; text-align: left;

}

body.c3 .dropdown-menu.show { display: block; }

body.c3 .dropdown-menu-right { right: 0; left: auto; }

body.c3 .dropdown-menu li { list-style: none; }

body.c3 .dropdown-item, body.c3 .dropdown-menu > li > a {

	display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--c3-radius-sm); color: var(--c3-text-2) !important; text-decoration: none !important;

	white-space: nowrap; background: transparent; border: 0; width: 100%; font: inherit; text-align: left;

}

body.c3 .dropdown-item:hover, body.c3 .dropdown-menu > li > a:hover, body.c3 .dropdown-item:focus { background: var(--c3-surface-3); color: var(--c3-text) !important; }

body.c3 .dropdown-menu .fa, body.c3 .dropdown-menu .fas, body.c3 .dropdown-menu .far { width: 16px; text-align: center; color: var(--c3-muted); }

body.c3 .dropdown-submenu { position: relative; }

body.c3 .dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -6px; }

body.c3 .dropdown-submenu:hover > .dropdown-menu { display: block; }

body.c3 .drop-animated { animation: c3-drop .14s ease-out; }

@keyframes c3-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }



/* --------------------------------------------------------------------------

   5. Page shell, breadcrumbs, ads region

   -------------------------------------------------------------------------- */

.c3-page { flex: 1 0 auto; padding: 18px 0 28px; }

#content_section.c3-content { background: transparent; padding: 0; margin: 0; border: 0; box-shadow: none; }

#main_content_section { width: 100%; min-height: 200px; }

.c3-crumbs { margin: 0 0 14px; }

.c3-crumbs .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; background: transparent; font-size: .84rem; color: var(--c3-muted); }

.c3-crumbs .breadcrumb li { display: inline-flex; align-items: center; }

.c3-crumbs .breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--c3-faint); }

.c3-crumbs .breadcrumb a { color: var(--c3-muted); }

.c3-crumbs .breadcrumb a:hover { color: var(--c3-brand); text-decoration: none; }

.c3-crumbs .breadcrumb li.active, .c3-crumbs .breadcrumb li.active a { color: var(--c3-text); font-weight: 500; }

.c3-crumbs .extra { display: none; }

.c3-crumbs--bottom { margin: 16px 0 0; }

.c3-adslot { margin: 0 0 16px; text-align: center; }

.c3-adslot:empty { display: none; }

.c3-offer { background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); padding: 16px; margin-bottom: 16px; }

.c3-offer h1 { font-size: 1.1rem; margin-bottom: 8px; }



/* --------------------------------------------------------------------------

   6. Cards, widgets, buttons, chips, avatars

   -------------------------------------------------------------------------- */

.c3-card { background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow); overflow: hidden; margin-bottom: 18px; }

.c3-card__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--c3-border); background: var(--c3-surface-2); }

.c3-card__title { font-size: .95rem; font-weight: 600; color: var(--c3-text); display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

.c3-card__title i { color: var(--c3-brand); font-size: .9em; }

.c3-card__title a { color: inherit; }

.c3-card__actions { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }

.c3-card__body { padding: 14px 16px; }

.c3-card__body--flush { padding: 0; }

.c3-card__foot { padding: 10px 16px; border-top: 1px solid var(--c3-border); background: var(--c3-surface-2); font-size: .85rem; color: var(--c3-muted); }

.c3-widget { margin-bottom: 16px; }

.c3-widget .c3-card__head { padding: 10px 14px; }

.c3-widget .c3-card__body { padding: 12px 14px; font-size: .88rem; }

.c3-widget .c3-card__body p:last-child { margin-bottom: 0; }



.c3-btn {

	display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: var(--c3-radius-sm);

	border: 1px solid var(--c3-border-strong); background: var(--c3-surface); color: var(--c3-text-2) !important; font: inherit; font-size: .86rem; font-weight: 500;

	line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;

}

.c3-btn:hover { background: var(--c3-surface-3); border-color: var(--c3-faint); }

.c3-btn:active { transform: translateY(1px); }

.c3-btn--primary { background: var(--c3-brand); border-color: var(--c3-brand); color: #fff !important; }

.c3-btn--primary:hover { background: var(--c3-brand-hover); border-color: var(--c3-brand-hover); }

.c3-btn--ghost { border-color: transparent; background: transparent; }

.c3-btn--ghost:hover { background: var(--c3-surface-3); border-color: transparent; }

.c3-btn--sm { padding: 5px 10px; font-size: .8rem; }

.c3-btn--pill { border-radius: var(--c3-radius-pill); }

.c3-btn i { font-size: .9em; }



.c3-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--c3-radius-pill); background: var(--c3-surface-3); color: var(--c3-text-2); font-size: .78rem; font-weight: 500; text-decoration: none !important; border: 1px solid transparent; }

.c3-chip:hover { border-color: var(--c3-border-strong); color: var(--c3-text); }

.c3-chip--new { background: var(--c3-brand-soft); color: var(--c3-brand); font-weight: 600; }

.c3-badge { display: inline-block; padding: 1px 7px; border-radius: var(--c3-radius-pill); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; vertical-align: middle; }

.c3-badge--new { background: var(--c3-new); color: #fff; }

.c3-badge--group { background: var(--c3-brand-soft); color: var(--c3-brand); }

.c3-badge--staff { background: var(--c3-brand); color: #fff; }



.c3-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--c3-surface-3); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none !important; user-select: none; }

.c3-avatar { position: relative; }
.c3-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.c3-avatar--xs { width: 22px; height: 22px; font-size: .62rem; }

.c3-avatar--sm { width: 30px; height: 30px; font-size: .78rem; }

.c3-avatar--md { width: 48px; height: 48px; font-size: 1.1rem; }

.c3-avatar--lg { width: 72px; height: 72px; font-size: 1.6rem; }

body.c3 .c3-avatar img.avatar { border-radius: inherit; }

.c3-avatar--letter { background: hsl(var(--c3-av-h, 210) 55% 46%); }

[data-theme="dark"] .c3-avatar--letter { background: hsl(var(--c3-av-h, 210) 45% 40%); }



.c3-time { color: var(--c3-muted); white-space: nowrap; cursor: default; }

.c3-muted { color: var(--c3-muted); }

.c3-faint { color: var(--c3-faint); }

.c3-sep { color: var(--c3-faint); margin: 0 6px; }

.c3-empty { padding: 28px 16px; text-align: center; color: var(--c3-muted); }



/* --------------------------------------------------------------------------

   7. Board index

   -------------------------------------------------------------------------- */

.c3-boardindex { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 22px; }

.c3-boardindex--side { grid-template-columns: minmax(0, 1fr) 320px; }

.c3-boardindex--side-left { grid-template-columns: 320px minmax(0, 1fr); }

.c3-boardindex--side-left .c3-boardindex__side { order: -1; }

.c3-boardindex__main { min-width: 0; }

.c3-boardindex__side { min-width: 0; }

.c3-boardindex:not(.c3-boardindex--side):not(.c3-boardindex--side-left) .c3-boardindex__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 16px; align-items: start; }

.c3-boardindex:not(.c3-boardindex--side):not(.c3-boardindex--side-left) .c3-boardindex__side .c3-widget--wide { grid-column: 1 / -1; }



.c3-cat { margin-bottom: 18px; }

.c3-cat__head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: linear-gradient(180deg, var(--c3-surface-2), var(--c3-surface)); border-bottom: 1px solid var(--c3-border); }

.c3-cat__title { font-size: .98rem; font-weight: 700; color: var(--c3-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.c3-cat__title a { color: inherit; }

.c3-cat__title a:hover { color: var(--c3-brand); text-decoration: none; }

.c3-cat__toggle { margin-left: auto; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--c3-muted); text-decoration: none !important; transition: background .15s ease, transform .2s ease; }

.c3-cat__toggle:hover { background: var(--c3-surface-3); color: var(--c3-text); }

.c3-cat__toggle img { display: none; }

.c3-cat--collapsed .c3-cat__toggle i { transform: rotate(-90deg); }

.c3-cat--collapsed .c3-cat__head { border-bottom: 0; }



.c3-board { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--c3-border); transition: background .15s ease; }

.c3-board:last-child { border-bottom: 0; }

.c3-board:hover { background: var(--c3-surface-2); }

.c3-board__marker { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--c3-surface-3); color: var(--c3-muted); font-size: 1.15rem; text-decoration: none !important; transition: background .15s ease, color .15s ease; }

.c3-board__marker img { width: 26px; height: 26px; object-fit: contain; }

.c3-board.is-new .c3-board__marker { background: var(--c3-brand-soft); color: var(--c3-brand); }

.c3-board.is-redirect .c3-board__marker { color: var(--c3-faint); }

.c3-board__main { flex: 1 1 0%; min-width: 0; }

.c3-board__name { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.3; }

.c3-board__name a { color: var(--c3-text); }

.c3-board__name a:hover { color: var(--c3-brand); text-decoration: none; }

.c3-board__desc { margin: 2px 0 0; font-size: .85rem; color: var(--c3-muted); }

.c3-board__mods { margin: 4px 0 0; font-size: .78rem; color: var(--c3-faint); }

.c3-board__mods a { color: var(--c3-muted); }

.c3-board__children { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }

.c3-board__statline { display: none; margin-top: 6px; font-size: .78rem; color: var(--c3-muted); }

.c3-board__statline i { margin-right: 4px; color: var(--c3-faint); }

.c3-board__stats { display: flex; gap: 22px; flex-shrink: 0; margin: 0 8px; }

.c3-stat { text-align: center; min-width: 48px; }

.c3-stat b { display: block; font-weight: 500; font-size: .95rem; color: var(--c3-text); font-variant-numeric: tabular-nums; }

.c3-stat span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c3-faint); margin-top: 1px; }

.c3-board__last { flex: 0 0 260px; display: flex; align-items: center; gap: 10px; min-width: 0; }

.c3-board__lastdetail { min-width: 0; flex: 1; }

.c3-board__lasttitle { display: block; font-size: .86rem; font-weight: 500; color: var(--c3-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.c3-board__lasttitle:hover { color: var(--c3-brand); text-decoration: none; }

.c3-board__lastmeta { font-size: .76rem; color: var(--c3-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.c3-board__lastmeta a { color: var(--c3-muted); font-weight: 500; }

.c3-board__last--empty { color: var(--c3-faint); font-size: .8rem; }

.moderation_link { color: var(--c3-warn) !important; font-weight: 700; font-size: .8rem; }



/* Legend + mark read row */

.c3-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 4px 2px 14px; font-size: .8rem; color: var(--c3-muted); }

.c3-legend__item { display: inline-flex; align-items: center; gap: 6px; }

.c3-legend__dot { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; background: var(--c3-surface-3); color: var(--c3-muted); }

.c3-legend__dot--new { background: var(--c3-brand-soft); color: var(--c3-brand); }

.c3-legend .c3-btn { margin-left: auto; }



/* Stats banner */

.c3-statbar { display: flex; flex-wrap: wrap; align-items: stretch; }

.c3-statbar__cell { flex: 1 1 140px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-right: 1px solid var(--c3-border); min-width: 0; }

.c3-statbar__cell:last-child { border-right: 0; }

.c3-statbar__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--c3-brand-soft); color: var(--c3-brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.c3-statbar__n { font-weight: 600; font-size: 1.05rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--c3-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.c3-statbar__n a { color: inherit; }

.c3-statbar__l { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c3-muted); margin-top: 2px; }

.c3-statbar__cell--wide { flex: 2 1 260px; }



/* Info center lists */

.c3-list { list-style: none; margin: 0; padding: 0; }

.c3-list__item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--c3-border); }

.c3-list__item:last-child { border-bottom: 0; }

.c3-list__detail { min-width: 0; flex: 1; }

.c3-list__title { display: block; font-weight: 500; font-size: .88rem; color: var(--c3-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.c3-list__meta { font-size: .76rem; color: var(--c3-muted); }

.c3-list__meta a { color: var(--c3-muted); font-weight: 500; }

.c3-online { font-size: .86rem; color: var(--c3-text-2); }

.c3-online__count { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 500; }

.c3-online__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c3-success); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }

.c3-online__names { line-height: 1.7; }

.c3-online__most { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--c3-border); font-size: .78rem; color: var(--c3-muted); }

.c3-fontsize { display: inline-flex; gap: 4px; padding: 3px; background: var(--c3-surface-3); border-radius: var(--c3-radius-sm); }

.c3-fontsize .caf-fs-btn { border: 0; background: transparent; color: var(--c3-muted); width: 44px; padding: 5px 0; border-radius: 4px; cursor: pointer; font-weight: 500; font-family: inherit; }

.c3-fontsize .caf-fs-btn:hover { background: var(--c3-surface); color: var(--c3-text); }

.c3-fontsize .caf-fs-btn.active { background: var(--c3-brand); color: #fff; }



/* --------------------------------------------------------------------------

   8. Toolbar (page links + buttons), pagination

   -------------------------------------------------------------------------- */

.c3-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }

.c3-toolbar--bottom { margin: 14px 0 0; }

.c3-toolbar .pagelinks { font-size: .84rem; color: var(--c3-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

.c3-toolbar__right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

body.c3 .pagelinks .navPages, body.c3 .pagelinks .current_page { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--c3-radius-sm); font-size: .84rem; }

body.c3 .pagelinks a.navPages { color: var(--c3-text-2); background: var(--c3-surface); border: 1px solid var(--c3-border); text-decoration: none; }

body.c3 .pagelinks a.navPages:hover { border-color: var(--c3-brand); color: var(--c3-brand); }

body.c3 .pagelinks .current_page { background: var(--c3-brand); color: #fff; font-weight: 600; }

body.c3 .pagelinks .expand_pages { padding: 0 4px; cursor: pointer; color: var(--c3-muted); }

body.c3 .pagelinks strong a { color: var(--c3-brand); }



/* Button strips (SMF template_button_strip -> .buttonlist) */

body.c3 .buttonlist { float: none; }

body.c3 .buttonlist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

body.c3 .buttonlist li { float: none; margin: 0; padding: 0; }

body.c3 .buttonlist a {

	display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--c3-radius-sm); border: 1px solid var(--c3-border-strong);

	background: var(--c3-surface); color: var(--c3-text-2); font-size: .82rem; font-weight: 500; text-decoration: none !important; line-height: 1.2; transition: background .15s ease, border-color .15s ease;

}

body.c3 .buttonlist a:hover { background: var(--c3-surface-3); border-color: var(--c3-faint); color: var(--c3-text); }

body.c3 .buttonlist a.active { background: var(--c3-brand); border-color: var(--c3-brand); color: #fff; }

body.c3 .buttonlist a i { font-size: .85em; }

body.c3 .buttonlist a i.fa-reply, body.c3 .buttonlist a i.fa-new_topic::before { content: "\f067"; }

body.c3 .buttonlist a i.fa-post_poll::before { content: "\f681"; }

body.c3 .buttonlist a i.fa-notify::before { content: "\f0f3"; }

body.c3 .buttonlist a i.fa-markread::before { content: "\f00c"; }

body.c3 .buttonlist a i.fa-add_poll::before { content: "\f681"; }

body.c3 .buttonlist a i.fa-mark_unread::before { content: "\f06e"; }

body.c3 .buttonlist a i.fa-send::before { content: "\f1d8"; }

body.c3 .buttonlist a i.fa-print::before { content: "\f02f"; }

body.c3 .buttonlist a i.fa-bookmark::before { content: "\f02e"; }

body.c3 .buttonlist a i.fa-move::before { content: "\f0b2"; }

body.c3 .buttonlist a i.fa-delete::before { content: "\f2ed"; }

body.c3 .buttonlist a i.fa-lock::before { content: "\f023"; }

body.c3 .buttonlist a i.fa-sticky::before { content: "\f08d"; }

body.c3 .buttonlist a i.fa-merge::before { content: "\f248"; }

body.c3 .buttonlist a i.fa-calendar::before { content: "\f073"; }

body.c3 .buttonlist a i.fa-vote::before, body.c3 .buttonlist a i.fa-results::before, body.c3 .buttonlist a i.fa-change_vote::before { content: "\f080"; }

body.c3 .buttonlist a i.fa-edit::before { content: "\f044"; }

body.c3 .buttonlist a i.fa-remove_poll::before { content: "\f2ed"; }

body.c3 .buttonlist a i[class*="fa-"]::before { font-family: "Font Awesome 5 Free"; font-weight: 900; }



/* Sort dropdown on topic lists */

.c3-sort { position: relative; }

.c3-sort .dropdown-menu li.active a { color: var(--c3-brand) !important; font-weight: 600; }



/* --------------------------------------------------------------------------

   9. Topic list (message index)

   -------------------------------------------------------------------------- */

.c3-topics__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.c3-topics__viewing { font-size: .8rem; color: var(--c3-muted); }

.c3-topics__group { padding: 7px 16px; background: var(--c3-surface-3); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c3-muted); border-bottom: 1px solid var(--c3-border); }

.c3-topic { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--c3-border); transition: background .15s ease; }

.c3-topic:last-child { border-bottom: 0; }

.c3-topic:hover { background: var(--c3-surface-2); }

.c3-topic.is-sticky { background: var(--c3-brand-soft); }

.c3-topic.is-sticky:hover { background: var(--c3-brand-soft-2); }

.c3-topic.approvebg, .c3-topic.approvetbg { background: #fff7ed; }

[data-theme="dark"] .c3-topic.approvebg, [data-theme="dark"] .c3-topic.approvetbg { background: #3a2a14; }

.c3-topic__icon { position: relative; flex-shrink: 0; }

.c3-topic__flag { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--c3-surface); border: 1px solid var(--c3-border); color: var(--c3-muted); display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; }

.c3-topic.is-sticky .c3-topic__flag { color: var(--c3-brand); }

.c3-topic.is-locked .c3-topic__flag { color: var(--c3-warn); }

.c3-topic__main { flex: 1 1 0%; min-width: 0; }

.c3-topic__title { font-size: .98rem; font-weight: 500; line-height: 1.35; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 0; }

.c3-topic__title a { color: var(--c3-text); }

.c3-topic__title a:hover { color: var(--c3-brand); text-decoration: none; }

.c3-topic.is-new .c3-topic__title a { font-weight: 600; }

.c3-topic__title img { display: none; }

.c3-topic__title a img.new_posts, .c3-topic__title a img[alt] { display: none; }

.c3-topic__title .c3-newdot { width: 8px; height: 8px; border-radius: 50%; background: var(--c3-brand); flex-shrink: 0; }

.c3-topic__meta { font-size: .78rem; color: var(--c3-muted); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.c3-topic__meta a { color: var(--c3-muted); font-weight: 500; }

.c3-topic__meta small { font-size: inherit; }

.c3-topic__meta small a { padding: 0 3px; }

.c3-topic__stats { display: flex; gap: 18px; flex-shrink: 0; margin: 0 8px; }

.c3-topic__last { flex: 0 0 250px; min-width: 0; font-size: .8rem; color: var(--c3-muted); display: flex; align-items: center; gap: 8px; }

.c3-topic__lastdetail { min-width: 0; flex: 1; }

.c3-topic__lastdetail .message { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.c3-topic__lastdetail a { color: var(--c3-text-2); font-weight: 500; }

.c3-topic__go { color: var(--c3-faint); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }

.c3-topic__go:hover { background: var(--c3-surface-3); color: var(--c3-brand); text-decoration: none; }

.c3-topic__qm { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }

.c3-topic__qm a { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--c3-faint); font-size: .78rem; }

.c3-topic__qm a:hover { background: var(--c3-surface-3); color: var(--c3-text); text-decoration: none; }

.c3-topic__qm img { display: none; }

.c3-topic__qm a:not(.c3-topic__go) { display: none; }

.c3-topic:hover .c3-topic__qm a, .c3-topic:focus-within .c3-topic__qm a { display: inline-flex; }

.c3-topic__qm .input_check { margin: 0 4px; }

.c3-topic__thumb { flex-shrink: 0; }

.c3-topic__thumb img { border-radius: 8px; max-width: 72px; max-height: 56px; object-fit: cover; }

.c3-qmbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--c3-border); background: var(--c3-surface-2); }

.c3-qmbar select { max-width: 220px; }

#message_index_jump_to, #display_jump_to { padding: 10px 16px; font-size: .84rem; color: var(--c3-muted); }

#message_index_jump_to:empty, #display_jump_to:empty { display: none; }

.description_board { color: var(--c3-muted); font-size: .9rem; margin: 0 0 14px; }

.topic_preview_content { display: none; }



/* --------------------------------------------------------------------------

   10. Topic view (display)

   -------------------------------------------------------------------------- */

.c3-thread__head { padding: 16px 18px; display: flex; align-items: flex-start; gap: 14px; }

.c3-thread__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--c3-brand-soft); color: var(--c3-brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }

.c3-thread__icon img { width: 20px; height: 20px; }

.c3-thread__title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }

.c3-thread__meta { margin-top: 5px; font-size: .8rem; color: var(--c3-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }

.c3-thread__meta i { margin-right: 4px; color: var(--c3-faint); }

#whoisviewing { margin: 0; padding: 8px 18px; border-top: 1px solid var(--c3-border); background: var(--c3-surface-2); font-size: .78rem; color: var(--c3-muted); }

.c3-thread .nextlinks, .c3-thread .nextlinks_bottom { font-size: .82rem; }

.c3-thread .nextlinks a, .c3-thread .nextlinks_bottom a { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: var(--c3-radius-sm); border: 1px solid var(--c3-border); background: var(--c3-surface); color: var(--c3-text-2); margin-right: 4px; text-decoration: none !important; }

.c3-thread .nextlinks a:hover, .c3-thread .nextlinks_bottom a:hover { border-color: var(--c3-brand); color: var(--c3-brand); }



.c3-posts { margin-bottom: 18px; }

.c3-post { display: flex; align-items: stretch; background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow); margin-bottom: 12px; overflow: hidden; }

.c3-post.approvebg { border-color: var(--c3-warn); }

.c3-post__rail { flex: 0 0 190px; padding: 18px 14px; background: var(--c3-surface-2); border-right: 1px solid var(--c3-border); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }

.c3-post__rail h4 { font-size: .95rem; font-weight: 600; margin: 2px 0 0; max-width: 100%; overflow-wrap: anywhere; }

.c3-post__rail h4 a { color: var(--c3-text); }

.c3-post__rail h4 img { width: 8px; height: 8px; margin-right: 4px; vertical-align: middle; }

.c3-post__rail .c3-avatar--lg img { width: 100%; height: 100%; object-fit: cover; }

.c3-post__rail .c3-avatar--lg { box-shadow: var(--c3-shadow); }

.c3-post__group { font-size: .74rem; }

.c3-post__stars img { height: 10px; width: auto; margin: 0 1px; }

.c3-post__count { font-size: .76rem; color: var(--c3-muted); }

.c3-post__count span { color: var(--c3-text-2); font-weight: 600; }

.c3-post__title { font-size: .76rem; color: var(--c3-muted); font-style: italic; }

.c3-post__more { list-style: none; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px dashed var(--c3-border); width: 100%; font-size: .74rem; color: var(--c3-muted); text-align: center; }

.c3-post__more li { margin: 3px 0; overflow-wrap: anywhere; }

.c3-post__more ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }

.c3-post__more .profile ul li a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--c3-surface-3); color: var(--c3-muted); }

.c3-post__more .profile ul li a:hover { background: var(--c3-brand-soft); color: var(--c3-brand); text-decoration: none; }

.c3-post__more .profile ul li a img { width: 14px; height: 14px; }

.c3-post__more .warning img { vertical-align: middle; }

.c3-post__more .karma_allow a { margin: 0 4px; }

.c3-post__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.c3-post__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 18px; border-bottom: 1px solid var(--c3-border); }

.c3-post__bar .keyinfo { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 320px; }

.c3-post__bar .messageicon img { width: 16px; height: 16px; opacity: .7; }

.c3-post__bar h5 { font-size: .9rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.c3-post__bar h5 a { color: var(--c3-text-2); }

.c3-post__bar .smalltext { font-size: .78rem; color: var(--c3-muted); white-space: nowrap; }

.c3-post__bar .smalltext strong { font-weight: 500; }

.c3-post__num { font-size: .78rem; color: var(--c3-faint); font-variant-numeric: tabular-nums; margin-left: auto; }

.c3-post__num a { color: inherit; }

body.c3 .quickbuttons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }

body.c3 .quickbuttons li { margin: 0; padding: 0; float: none; }

body.c3 .quickbuttons li a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: var(--c3-radius-sm); font-size: .78rem; font-weight: 500; color: var(--c3-muted); background: transparent; border: 1px solid transparent; text-decoration: none !important; }

body.c3 .quickbuttons li a:hover { background: var(--c3-surface-3); color: var(--c3-text); }

body.c3 .quickbuttons li a::before { font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: .85em; }

body.c3 .quickbuttons li.quote_button a::before { content: "\f10e"; }

body.c3 .quickbuttons li.modify_button a::before { content: "\f044"; }

body.c3 .quickbuttons li.remove_button a::before { content: "\f2ed"; }

body.c3 .quickbuttons li.split_button a::before { content: "\f0c4"; }

body.c3 .quickbuttons li.approve_button a::before { content: "\f00c"; }

body.c3 .quickbuttons li.restore_button a::before { content: "\f0e2"; }

body.c3 .quickbuttons li.inline_mod_check { display: inline-flex; align-items: center; padding: 0 6px; }

.c3-post__body { padding: 16px 18px 6px; flex: 1; }

.c3-post__body .post { margin: 0; padding: 0; min-height: 0; clear: none; border: 0; }

.c3-post__body .inner { padding: 0; margin: 0; border: 0; font-size: .97rem; line-height: 1.65; overflow-wrap: anywhere; }

.c3-post__body .inner p { margin-bottom: .9em; }

.c3-post__body .approve_post { background: #fff7ed; color: #9a3412; padding: 6px 10px; border-radius: var(--c3-radius-sm); margin-bottom: 10px; font-size: .84rem; }

.c3-post__foot { padding: 8px 18px 12px; }

.c3-post__foot:empty { display: none; }

.moderatorbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 18px; font-size: .76rem; color: var(--c3-faint); border-top: 1px solid var(--c3-border); }

.moderatorbar .modified { color: var(--c3-muted); }

.moderatorbar .reportlinks { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }

.moderatorbar .reportlinks img { opacity: .6; }

.moderatorbar a { color: var(--c3-muted); }

.signature { padding: 10px 18px 14px; margin: 0; border-top: 1px dashed var(--c3-border); font-size: .8rem; color: var(--c3-muted); }

.signature img { max-height: 120px; }

.custom_fields_above_signature { padding: 6px 18px; font-size: .8rem; color: var(--c3-muted); }

.attachments { padding: 10px 18px 12px; font-size: .82rem; color: var(--c3-muted); }

.attachments a { color: var(--c3-text-2); }

.attachments img { border-radius: 8px; margin: 4px 0; }

.attachments fieldset { border: 1px solid var(--c3-border); border-radius: var(--c3-radius-sm); padding: 8px 10px; }

.c3-post__share { padding: 4px 18px 10px; display: flex; gap: 10px; align-items: center; }

.c3-post__share img { height: 24px; border-radius: 4px; }

.c3-post__share iframe { max-width: 100%; }

.modifybutton { display: none !important; }

.c3-post__adrow { padding: 12px 18px; }

hr.post_separator { display: none; }



/* BBC inside posts */

body.c3 .bbc_code, body.c3 code.bbc_code, body.c3 .codeheader + code { display: block; font-family: var(--c3-mono); font-size: .82rem; line-height: 1.5; background: var(--c3-surface-2); border: 1px solid var(--c3-border); border-radius: var(--c3-radius-sm); padding: 10px 12px; margin: 6px 0 10px; max-height: 24em; overflow: auto; white-space: pre; color: var(--c3-text); }

body.c3 .codeheader, body.c3 .quoteheader { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--c3-muted); margin: 8px 0 2px; }

body.c3 .quoteheader a { color: var(--c3-brand); }

body.c3 blockquote.bbc_standard_quote, body.c3 blockquote.bbc_alternate_quote, body.c3 .bbc_standard_quote, body.c3 .bbc_alternate_quote { margin: 4px 0 12px; padding: 10px 14px; border-left: 3px solid var(--c3-brand); background: var(--c3-brand-soft); border-radius: 0 var(--c3-radius-sm) var(--c3-radius-sm) 0; font-size: .92em; color: var(--c3-text-2); overflow: auto; }

body.c3 .bbc_alternate_quote { background: var(--c3-surface-2); border-left-color: var(--c3-border-strong); }

body.c3 .bbc_img { border-radius: 8px; }

body.c3 .bbc_img.resized { cursor: pointer; }

body.c3 .bbc_link { text-decoration: underline; text-decoration-color: var(--c3-brand-soft-2); text-underline-offset: 2px; }

body.c3 .bbc_table { border-collapse: collapse; }

body.c3 .bbc_table td { padding: 4px 8px; border: 1px solid var(--c3-border); }

body.c3 .bbc_list { padding-left: 1.4em; }

body.c3 .bbc_tt { font-family: var(--c3-mono); }

body.c3 .bbc_color { }

body.c3 .bbc_size { }

body.c3 .bbc_u { text-decoration: underline; }

body.c3 .bbc_s { text-decoration: line-through; }



/* Moderation buttons & quick reply */

#moderationbuttons { margin: 14px 0; }

#moderationbuttons .buttonlist { float: none; }

#quickreplybox { margin-top: 18px; }

#quickreplybox .c3-card__head a { color: var(--c3-text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }

#quickreplybox .c3-card__head img.icon { width: 12px; opacity: .6; }

#quickReplyOptions .roundframe { background: transparent; border: 0; padding: 0; }

#quickReplyOptions .quickReplyContent textarea { width: 100%; min-height: 150px; font-family: inherit; font-size: .95rem; padding: 12px; border: 1px solid var(--c3-border-strong); border-radius: var(--c3-radius-sm); background: var(--c3-surface); color: var(--c3-text); resize: vertical; }

#quickReplyOptions .quickReplyContent textarea:focus { border-color: var(--c3-brand); box-shadow: var(--c3-ring); outline: none; }

#quickReplyOptions .righttext.padding { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0 0; }

#quickReplyOptions .lefttext { color: var(--c3-muted); font-size: .82rem; }

#quickReplyOptions .lowerframe, #quickReplyOptions .upperframe { display: none; }



/* Poll */

#poll .c3-card__body h4 { font-size: 1.05rem; margin-bottom: 12px; }

#poll dl.options { margin: 0; }

#poll dl.options dt { font-weight: 500; margin: 8px 0 4px; }

#poll dl.options dt.voted { color: var(--c3-brand); }

#poll dl.options dd { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }

#poll .statsbar .bar { display: block; height: 10px; border-radius: 5px; background: var(--c3-brand); min-width: 4px; flex: 0 0 auto; }

#poll .statsbar .bar div { height: 100%; border-radius: 5px; background: var(--c3-brand); }

#poll .percentage { font-size: .82rem; color: var(--c3-muted); }

#poll ul.options { list-style: none; margin: 0 0 12px; padding: 0; }

#poll ul.options li { padding: 6px 0; }

#pollmoderation { margin-bottom: 14px; }



/* Related topics (module) */

.related-topics-list li:hover { background: var(--c3-surface-2) !important; }

.related-topics-list li { border-color: var(--c3-border) !important; }

.related-topic-info a { color: var(--c3-text) !important; }



/* --------------------------------------------------------------------------

   11. Forms

   -------------------------------------------------------------------------- */

body.c3 input[type="text"], body.c3 input[type="password"], body.c3 input[type="email"], body.c3 input[type="search"], body.c3 input[type="url"], body.c3 input[type="number"],

body.c3 .input_text, body.c3 .input_password, body.c3 select, body.c3 textarea {

	font: inherit; font-size: .92rem; color: var(--c3-text); background: var(--c3-surface); border: 1px solid var(--c3-border-strong); border-radius: var(--c3-radius-sm);

	padding: 7px 10px; max-width: 100%; transition: border-color .15s ease, box-shadow .15s ease;

}

body.c3 input:focus, body.c3 select:focus, body.c3 textarea:focus { border-color: var(--c3-brand); box-shadow: var(--c3-ring); outline: none; }

body.c3 select { padding-right: 28px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2394a3b8' d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }

body.c3 input[disabled], body.c3 input[disabled].input_text { background: var(--c3-surface-3); color: var(--c3-faint); }

body.c3 .input_check, body.c3 .input_radio, body.c3 input[type="checkbox"], body.c3 input[type="radio"] { accent-color: var(--c3-brand); width: 16px; height: 16px; vertical-align: middle; }

body.c3 textarea { line-height: 1.5; }

body.c3 button, body.c3 input[type="button"], body.c3 input[type="submit"], body.c3 .button_submit, body.c3 input.button_submit, body.c3 a.button_submit, body.c3 .button_reset {

	display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: var(--c3-radius-sm); border: 1px solid var(--c3-brand);

	background: var(--c3-brand); color: #fff; font: inherit; font-size: .86rem; font-weight: 500; line-height: 1.2; cursor: pointer; text-decoration: none !important;

	min-height: 0; height: auto; transition: background .15s ease, border-color .15s ease;

}

body.c3 button:hover, body.c3 input[type="submit"]:hover, body.c3 .button_submit:hover, body.c3 .button_reset:hover { background: var(--c3-brand-hover); border-color: var(--c3-brand-hover); color: #fff; }

body.c3 .button_reset, body.c3 input[type="button"], body.c3 input[type="button"]:hover { background: var(--c3-surface); border-color: var(--c3-border-strong); color: var(--c3-text-2) !important; }

body.c3 input[type="button"]:hover, body.c3 .button_reset:hover { background: var(--c3-surface-3); }

body.c3 .c3-iconbtn, body.c3 .c3-search__btn, body.c3 .caf-fs-btn, body.c3 .c3-nav__toggle, body.c3 .c3-btn, body.c3 .c3-sort > button, body.c3 .c3-cat__toggle, body.c3 .navbar-toggler, body.c3 .close { background: none; border-color: transparent; color: inherit; min-height: 0; }

body.c3 .c3-btn { border-color: var(--c3-border-strong); background: var(--c3-surface); color: var(--c3-text-2) !important; }

body.c3 .c3-btn--primary { border-color: var(--c3-brand); background: var(--c3-brand); color: #fff !important; }

body.c3 .c3-btn--primary:hover { background: var(--c3-brand-hover); }

body.c3 .c3-btn--ghost { border-color: transparent; background: transparent; }

body.c3 .c3-sort > button { border-color: var(--c3-border-strong); background: var(--c3-surface); color: var(--c3-text-2) !important; }

body.c3 .c3-sort > button:hover { background: var(--c3-surface-3); }

body.c3 .c3-fontsize .caf-fs-btn { color: var(--c3-text-2); }

body.c3 .c3-fontsize .caf-fs-btn.active { background: var(--c3-brand); color: #fff; }

body.c3 .c3-search__btn { color: #fff; }

body.c3 .c3-iconbtn { color: var(--c3-header-text); }

body.c3 .c3-cat__toggle { color: var(--c3-muted); }

body.c3 label { font-weight: 500; }

body.c3 fieldset { border: 1px solid var(--c3-border); border-radius: var(--c3-radius-sm); padding: 10px 14px; margin: 0 0 12px; }

body.c3 legend { padding: 0 6px; font-weight: 600; font-size: .9rem; }

body.c3 dl.settings { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 10px 16px; margin: 0; align-items: center; }

body.c3 dl.settings dt, body.c3 dl.settings dd { margin: 0; float: none; width: auto; clear: none; }

body.c3 dl.settings dt { color: var(--c3-text-2); font-size: .9rem; }

body.c3 dl.settings dd input.input_text, body.c3 dl.settings dd select, body.c3 dl.settings dd textarea { width: 100%; }



/* --------------------------------------------------------------------------

   12. Legacy SMF/CAF2 compatibility (pages not rewritten: profile, PM, admin...)

   -------------------------------------------------------------------------- */

body.c3 .topslice, body.c3 .botslice, body.c3 .upperframe, body.c3 .lowerframe, body.c3 .innerframe, body.c3 .ie6_header img[src*="blank.gif"] { display: none !important; }

body.c3 .cat_bar, body.c3 .title_bar, body.c3 .title_barIC { background: var(--c3-surface-2); border: 1px solid var(--c3-border); border-bottom: 0; border-radius: var(--c3-radius) var(--c3-radius) 0 0; margin: 0; }

body.c3 .catbg, body.c3 .catbg2, body.c3 .titlebg, body.c3 h3.catbg, body.c3 h4.titlebg, body.c3 h3.titlebg, body.c3 .cat_bar h3, body.c3 .title_bar h4, body.c3 .title_barIC h3, body.c3 .title_barIC h4 {

	background: transparent; border: 0; color: var(--c3-text); font-size: .92rem; font-weight: 600; text-shadow: none; padding: 11px 16px; margin: 0; line-height: 1.3; display: flex; align-items: center; gap: 8px; min-height: 0; height: auto;

}

body.c3 .catbg a, body.c3 .titlebg a { color: var(--c3-text); }

body.c3 .catbg img.icon, body.c3 .titlebg img.icon { width: 16px; float: none; margin: 0; opacity: .7; }

body.c3 .catbg .fa, body.c3 .titlebg .fa, body.c3 .catbg .fas, body.c3 .titlebg .fas { color: var(--c3-brand); }

body.c3 .ie6_header { display: inline-flex; align-items: center; gap: 8px; float: none; }

body.c3 .windowbg, body.c3 .windowbg2, body.c3 .windowbg3, body.c3 .roundframe, body.c3 .content, body.c3 .tborder, body.c3 .information, body.c3 .description, body.c3 .plainbox {

	background: var(--c3-surface); color: var(--c3-text); border: 1px solid var(--c3-border); border-radius: var(--c3-radius);

}

body.c3 .windowbg, body.c3 .windowbg2, body.c3 .windowbg3 { padding: 14px 16px; margin-bottom: 12px; }

body.c3 .cat_bar + .windowbg, body.c3 .title_bar + .windowbg, body.c3 .cat_bar + .windowbg2, body.c3 .title_bar + .windowbg2, body.c3 .cat_bar + .roundframe, body.c3 .title_bar + .roundframe, body.c3 .cat_bar + .content, body.c3 .cat_bar + .tborder, body.c3 .cat_bar + .information, body.c3 .cat_bar + .description, body.c3 .cat_bar + .table_grid, body.c3 .title_bar + .table_grid, body.c3 .cat_bar + div.flow_hidden, body.c3 .cat_bar + form, body.c3 .cat_bar + .windowbg > .content { border-top-left-radius: 0; border-top-right-radius: 0; }

body.c3 .cat_bar + .windowbg, body.c3 .cat_bar + .windowbg2, body.c3 .title_bar + .windowbg, body.c3 .title_bar + .windowbg2 { margin-bottom: 16px; }

body.c3 .windowbg .content, body.c3 .windowbg2 .content, body.c3 .tborder .content, body.c3 .roundframe .content, body.c3 .windowbg .windowbg, body.c3 .windowbg2 .windowbg2, body.c3 .tborder .windowbg, body.c3 .tborder .windowbg2 { border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; }

body.c3 .roundframe { padding: 14px 16px; margin-bottom: 12px; background: var(--c3-surface-2); }

body.c3 .content { padding: 14px 16px; }

body.c3 .tborder { padding: 0; margin-bottom: 16px; overflow: hidden; }

body.c3 .information { padding: 12px 16px; background: var(--c3-brand-soft); border-color: var(--c3-brand-soft-2); color: var(--c3-text-2); font-size: .9rem; margin-bottom: 14px; }

body.c3 .description { padding: 12px 16px; color: var(--c3-muted); font-size: .9rem; margin-bottom: 14px; }

body.c3 .errorbox, body.c3 .error { color: var(--c3-danger); }

body.c3 .errorbox { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--c3-radius-sm); padding: 10px 14px; margin: 0 0 12px; font-size: .9rem; }

body.c3 .noticebox, body.c3 .infobox { background: var(--c3-brand-soft); border: 1px solid var(--c3-brand-soft-2); border-radius: var(--c3-radius-sm); padding: 10px 14px; margin: 0 0 12px; font-size: .9rem; }

body.c3 .alert { color: var(--c3-danger); font-weight: 600; }

body.c3 .smalltext { font-size: .8rem; }

body.c3 .middletext { font-size: .88rem; }

body.c3 .largetext { font-size: 1.1rem; }

body.c3 .centertext { text-align: center; }

body.c3 .righttext { text-align: right; }

body.c3 .lefttext { text-align: left; }

body.c3 .floatleft { float: left; }

body.c3 .floatright { float: right; }

body.c3 .clear { clear: both; }

body.c3 .clear_left { clear: left; }

body.c3 .clear_right { clear: right; }

body.c3 .flow_hidden { overflow: hidden; }

body.c3 .flow_auto { overflow: auto; }

body.c3 .padding { padding: 10px; }

body.c3 .reset { list-style: none; margin: 0; padding: 0; }

body.c3 .hrcolor { border-color: var(--c3-border); }

body.c3 .bordercolor { border-color: var(--c3-border); }

body.c3 .help { cursor: help; }

body.c3 .new_posts { color: var(--c3-brand); font-weight: 600; }

body.c3 .pagesection { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }

body.c3 .pagesection .pagelinks { font-size: .84rem; color: var(--c3-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

body.c3 .pagesection .buttonlist { margin-left: auto; }

body.c3 .pagesection .buttonlist.floatleft { margin-left: 0; }



/* Tables */

body.c3 table.table_grid, body.c3 table.table_list, body.c3 .topic_table table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); overflow: hidden; margin-bottom: 16px; font-size: .9rem; }

body.c3 table.table_grid th, body.c3 table.table_grid thead td, body.c3 table.table_list th, body.c3 tr.catbg th, body.c3 tr.titlebg th, body.c3 tr.catbg td, body.c3 tr.titlebg td { background: var(--c3-surface-2); color: var(--c3-text-2); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--c3-border); text-align: left; }

body.c3 table.table_grid th a, body.c3 tr.catbg th a, body.c3 tr.titlebg th a { color: var(--c3-text-2); }

body.c3 table.table_grid td, body.c3 table.table_list td, body.c3 .topic_table table td { padding: 10px 12px; border-bottom: 1px solid var(--c3-border); vertical-align: middle; }

body.c3 table.table_grid tr:last-child td, body.c3 table.table_list tr:last-child td { border-bottom: 0; }

body.c3 table.table_grid tr.windowbg td, body.c3 table.table_grid tr.windowbg2 td, body.c3 tr.windowbg, body.c3 tr.windowbg2 { background: transparent; }

body.c3 tr.windowbg, body.c3 tr.windowbg2, body.c3 td.windowbg, body.c3 td.windowbg2 { border: 0; border-radius: 0; padding: 0; margin: 0; }

body.c3 td.windowbg, body.c3 td.windowbg2 { padding: 10px 12px; }

body.c3 table.table_grid tbody tr:hover td { background: var(--c3-surface-2); }

body.c3 .first_th, body.c3 .last_th { background-image: none !important; }

body.c3 .table_grid .lefttext, body.c3 .table_grid .centertext { }



/* Admin/generic menus */

body.c3 #adm_submenus, body.c3 .generic_menu, body.c3 #admin_menu { margin-bottom: 14px; }

body.c3 #adm_submenus .dropmenu, body.c3 .dropmenu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

body.c3 .dropmenu li { float: none; position: relative; }

body.c3 .dropmenu li a, body.c3 #adm_submenus .dropmenu li a { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: var(--c3-radius-sm); background: var(--c3-surface); border: 1px solid var(--c3-border); color: var(--c3-text-2); font-size: .85rem; font-weight: 500; text-decoration: none; margin: 0; }

body.c3 .dropmenu li a:hover, body.c3 .dropmenu li a.active, body.c3 .dropmenu li.chosen > a, body.c3 .dropmenu li a.chosen { background: var(--c3-brand); border-color: var(--c3-brand); color: #fff; }

body.c3 .dropmenu li ul { display: none; position: absolute; top: 100%; left: 0; z-index: 900; min-width: 200px; margin: 4px 0 0; padding: 6px; list-style: none; background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow-lg); }

body.c3 .dropmenu li:hover > ul { display: block; }

body.c3 .dropmenu li ul li a { display: block; border: 0; background: transparent; padding: 7px 10px; }

body.c3 .dropmenu li ul li a:hover { background: var(--c3-surface-3); color: var(--c3-text); }

body.c3 #admin_content, body.c3 #main_admsection { min-width: 0; }

body.c3 #adm_submenus { border: 0; background: transparent; padding: 0; }



/* Login modal (Bootstrap modal markup, restyled) */

body.c3 .modal-content { background: var(--c3-surface); color: var(--c3-text); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow-lg); }

body.c3 #loginModal .modal-header { background: linear-gradient(135deg, var(--c3-header-from), var(--c3-header-to)); color: #fff; border-bottom: 0; padding: 16px 20px; }

body.c3 #loginModal .modal-header .close { color: #fff; opacity: .8; text-shadow: none; font-size: 24px; background: transparent; border: 0; padding: 0 4px; }

body.c3 #loginModal .modal-body { padding: 22px 24px 8px; }

body.c3 #loginModal .login-welcome { font-size: .9rem; color: var(--c3-muted); margin-bottom: 16px; }

body.c3 #loginModal .login-field { margin-bottom: 14px; }

body.c3 #loginModal .login-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--c3-text-2); margin-bottom: 4px; }

body.c3 #loginModal .login-field input, body.c3 #loginModal .login-field select { width: 100%; padding: 10px 12px; }

body.c3 #loginModal .login-hint { font-size: .74rem; color: var(--c3-faint); margin-top: 6px; }

body.c3 #loginModal .modal-footer { border-top: 1px solid var(--c3-border); padding: 12px 24px; background: var(--c3-surface-2); }

body.c3 #loginModal .modal-footer .button_submit { width: 100%; padding: 11px; font-size: .95rem; }

body.c3 #loginModal .login-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; font-size: .76rem; color: var(--c3-faint); }

body.c3 #loginModal .login-divider::before, body.c3 #loginModal .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--c3-border); }

body.c3 .modal-backdrop { background: #0f172a; }



/* Member list, profile bits copied from CAF2 */

body.c3 #mlist .mem-box { background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); padding: 14px; }

body.c3 #mlist .mem-box img.avatar { border-radius: 50%; width: 56px; height: 56px; object-fit: cover; }

body.c3 .profile-wrapper { gap: 16px; }

body.c3 #basicinfo img.avatar { border-radius: 14px; }

body.c3 .avatar { border-radius: 50%; }

body.c3 img.avatar_dot { border-radius: 50%; }



/* Editor */

body.c3 .sceditor-container, body.c3 .rich_editor_frame { border: 1px solid var(--c3-border-strong) !important; border-radius: var(--c3-radius-sm); }

body.c3 #bbcBox_message, body.c3 #smileyBox_message { padding: 6px 0; }



/* Bootstrap leftovers used in copied templates */

body.c3 .btn-xs { display: none; }

body.c3 .mobile_on { visibility: hidden; }

body.c3 .navbar-toggler { display: none; }



/* --------------------------------------------------------------------------

   13. Footer, back-to-top, mobile tab bar

   -------------------------------------------------------------------------- */

.c3-footer { border-top: 1px solid var(--c3-border); background: var(--c3-surface); padding: 20px 0 22px; font-size: .82rem; color: var(--c3-muted); margin-top: auto; }

.c3-footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }

.c3-footer__links { display: flex; flex-wrap: wrap; gap: 4px 14px; }

.c3-footer__links a { color: var(--c3-muted); }

.c3-footer__links a:hover { color: var(--c3-brand); text-decoration: none; }

.c3-footer__copy { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; }

.c3-footer__socials { display: inline-flex; gap: 6px; }

.c3-footer__socials a { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c3-surface-3); color: var(--c3-muted); }

.c3-footer__socials a:hover { background: var(--c3-brand); color: #fff; text-decoration: none; }

.c3-footer__load { width: 100%; font-size: .74rem; color: var(--c3-faint); }

#back-to-top { position: fixed; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--c3-brand); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--c3-shadow-md); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; z-index: 60; text-decoration: none !important; }

#back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }



.c3-tabbar { display: none; }



/* --------------------------------------------------------------------------

   14. Responsive

   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {

	.c3-boardindex--side, .c3-boardindex--side-left { grid-template-columns: minmax(0, 1fr); }

	.c3-boardindex--side .c3-boardindex__side, .c3-boardindex--side-left .c3-boardindex__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 16px; order: 0; }

	.c3-board__last { flex-basis: 220px; }

}

@media (max-width: 991px) {

	.c3-nav__toggle { display: inline-flex; }

	.c3-nav__collapse { display: none; width: 100%; }

	.c3-nav__collapse.show { display: block; }

	.c3-nav__in { flex-wrap: wrap; }

	.c3-nav .navbar-nav, .c3-nav__list { flex-direction: column; gap: 0; padding-bottom: 8px; }

	.c3-nav .nav-item { display: block; }

	.c3-nav .nav-item .nav-link, .c3-nav .nav-link { min-height: 42px; border-bottom: 0; border-left: 2px solid transparent; padding: 0 10px; }

	.c3-nav .nav-item.active > .nav-link, .c3-nav .navbar-nav .nav-item.active > .nav-link { border-left-color: var(--c3-brand); background: var(--c3-brand-soft); }

	.c3-nav .dropdown-menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--c3-border); border-radius: 0; margin: 0 0 6px 14px; padding: 2px 0; background: transparent; }

	.c3-nav .dropdown-submenu > .dropdown-menu { position: static; margin: 0 0 0 10px; }

	.c3-board__stats { display: none; }

	.c3-board__statline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

	.c3-topic__stats { display: none; }

	.c3-topic__last { flex-basis: 170px; }

}

@media (max-width: 767px) {

	:root { --c3-gutter: 12px; }

	body.c3 { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

	.c3-topbar__in { gap: 10px; min-height: 58px; }

	.c3-search { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; max-width: none; padding: 10px var(--c3-gutter); background: var(--c3-header-to); z-index: 40; }

	.c3-search.is-open { display: block; }

	.c3-search-toggle { display: inline-flex; }

	.c3-user__name { display: none; }

	.c3-cta { padding: 7px 12px; font-size: .82rem; }

	.c3-topbar .c3-textlink { padding: 6px 8px; }

	.c3-page { padding: 12px 0 20px; }

	.c3-board { flex-wrap: wrap; gap: 10px 12px; padding: 12px; }

	.c3-board__marker { width: 40px; height: 40px; }

	.c3-board__last { flex: 1 1 100%; padding: 8px 0 0; border-top: 1px dashed var(--c3-border); }

	.c3-topic { flex-wrap: wrap; gap: 8px 12px; padding: 12px; }

	.c3-topic__last { flex: 1 1 100%; padding-top: 6px; border-top: 1px dashed var(--c3-border); }

	.c3-topic__last .c3-avatar { display: none; }

	.c3-thread__title { font-size: 1.15rem; }

	.c3-post { flex-direction: column; }

	.c3-post__rail { flex: none; flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; gap: 4px 12px; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--c3-border); }

	.c3-post__rail .c3-avatar--lg { width: 44px; height: 44px; font-size: 1rem; border-radius: 50%; }

	.c3-post__rail h4 { margin: 0; }

	.c3-post__rail .c3-post__stars { display: none; }

	.c3-post__more { display: none; }

	.c3-post__rail.is-open .c3-post__more { display: block; text-align: left; }

	.c3-post__body { padding: 14px; }

	.c3-post__bar { padding: 10px 14px; }

	.c3-post__bar h5 { display: none; }

	.moderatorbar, .signature, .attachments, .c3-post__share { padding-left: 14px; padding-right: 14px; }

	.c3-statbar__cell { flex-basis: 50%; border-bottom: 1px solid var(--c3-border); }

	.c3-statbar__cell:nth-child(2n) { border-right: 0; }

	.c3-footer__copy { margin-left: 0; }

	body.c3 dl.settings { grid-template-columns: 1fr; gap: 4px 0; }

	.c3-post__bar .keyinfo { flex: 1 1 100%; flex-wrap: wrap; }

	.c3-post__bar .smalltext { white-space: normal; }

	.c3-post__num { margin-left: 0; }

	.c3-topic__qm a:not(.c3-topic__go) { display: inline-flex; }

	.c3-toolbar__right { margin-left: 0; justify-content: flex-start; }

	.c3-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 4px 4px calc(env(safe-area-inset-bottom, 0px) + 6px); background: var(--c3-surface); border-top: 1px solid var(--c3-border); box-shadow: 0 -6px 18px rgba(15,23,42,.08); }

	.c3-tabbar__item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; padding: 4px 2px 2px; color: var(--c3-muted); font-size: .64rem; font-weight: 500; text-decoration: none !important; background: transparent; border: 0; font-family: inherit; }

	.c3-tabbar__item i { font-size: 1.15rem; }

	.c3-tabbar__item.is-active, .c3-tabbar__item:hover { color: var(--c3-brand); }

	.c3-tabbar__item .amt { position: absolute; margin-left: 18px; margin-top: -4px; }

	#back-to-top { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }

}

@media (max-width: 480px) {

	.c3-brand__name { font-size: 1.05rem; }

	.c3-board__desc { display: none; }

	.c3-post__rail .c3-post__count, .c3-post__rail .c3-post__title { display: none; }

	.c3-statbar__cell { flex-basis: 100%; border-right: 0; }

}



/* --------------------------------------------------------------------------

   15. Print

   -------------------------------------------------------------------------- */

@media print {

	.c3-header, .c3-footer, .c3-tabbar, #back-to-top, .c3-toolbar, .quickbuttons, #quickreplybox, #moderationbuttons, .c3-adslot { display: none !important; }

	body.c3 { background: #fff; color: #000; }

	.c3-post { break-inside: avoid; box-shadow: none; }

}



/* --------------------------------------------------------------------------

   16. Additions: Bootstrap navbar overrides, theme menu, mobile helpers

   -------------------------------------------------------------------------- */

body.c3 .c3-topbar__in.navbar { padding: 8px var(--c3-gutter); justify-content: flex-start; flex-wrap: nowrap; position: relative; }

body.c3 .c3-nav.navbar { display: block; padding: 0; }

body.c3 .c3-nav .navbar-collapse { align-items: stretch; }

body.c3 .c3-nav .navbar-expand-lg .navbar-nav .dropdown-menu, body.c3 .c3-nav .navbar-nav .dropdown-menu { position: absolute; float: none; }

body.c3 .c3-toolbar__right.navbar { padding: 0; flex-wrap: wrap; justify-content: flex-end; }

.c3-search-toggle { display: none; }

.c3-theme { position: relative; display: inline-flex; }

.c3-theme__menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; background: var(--c3-surface); color: var(--c3-text); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow-lg); z-index: 1060; }

.c3-theme__menu.is-open { display: block; animation: c3-drop .14s ease-out; }

body.c3 .c3-theme__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--c3-radius-sm); background: transparent; color: var(--c3-text-2) !important; font: inherit; font-size: .88rem; cursor: pointer; text-align: left; min-height: 0; }

body.c3 .c3-theme__opt:hover { background: var(--c3-surface-3); color: var(--c3-text) !important; }

body.c3 .c3-theme__opt > i:first-child { width: 16px; text-align: center; color: var(--c3-muted); }

body.c3 .c3-theme__opt span { flex: 1; }

body.c3 .c3-theme__opt .c3-theme__chk { opacity: 0; font-size: .75rem; color: var(--c3-brand); }

body.c3 .c3-theme__opt.is-on .c3-theme__chk { opacity: 1; }

body.c3 .c3-post__moretoggle { display: none; border: 1px solid var(--c3-border); background: var(--c3-surface); color: var(--c3-muted) !important; width: 30px; height: 30px; padding: 0; border-radius: 50%; margin-left: auto; min-height: 0; }

body.c3 .c3-post__moretoggle:hover { background: var(--c3-surface-3); }

@media (max-width: 767px) {

	body.c3 .c3-post__moretoggle { display: inline-flex; align-items: center; justify-content: center; }

	.c3-post__rail .c3-post__group { order: 5; }

}



/* Search field in the brand band must win over the generic input rule. */

body.c3 .c3-search input.c3-search__input { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: var(--c3-radius-pill); padding: 0 42px 0 14px; height: 40px; }

body.c3 .c3-search input.c3-search__input:focus { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); box-shadow: none; }

body.c3 .c3-search input.c3-search__input::placeholder { color: rgba(255,255,255,.7); }

body.c3 .c3-nav__toggle { display: none; }

body.c3 a.button_submit, body.c3 a.button_submit:hover { color: #fff; }

@media (max-width: 991px) {

	body.c3 .c3-nav__toggle { display: inline-flex; }

}



/* Tab bar button and small-screen card headers. */

body.c3 button.c3-tabbar__item { background: transparent; border: 0; border-radius: 0; color: var(--c3-muted); padding: 4px 2px 2px; }

body.c3 button.c3-tabbar__item:hover { background: transparent; color: var(--c3-brand); }

@media (max-width: 767px) {

	.c3-card__head { flex-wrap: wrap; }

	.c3-card__actions { margin-left: auto; }

	.c3-post__bar { gap: 6px 10px; }

}


/* --------------------------------------------------------------------------
   17. Admin center (sidebar layout from GenericMenu) and shoutbox block
   -------------------------------------------------------------------------- */
body.c3 #main_container { display: flex; align-items: flex-start; gap: 18px; position: static; }
body.c3 #left_admsection { flex: 0 0 240px; width: 240px; float: none; padding: 0; }
body.c3 #main_admsection { flex: 1 1 auto; min-width: 0; overflow: visible; position: static; }
body.c3 .adm_section { background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow); margin: 0 0 12px; overflow: hidden; }
body.c3 .adm_section .title_bar { border: 0; border-radius: 0; background: var(--c3-surface-2); border-bottom: 1px solid var(--c3-border); }
body.c3 .adm_section h4.titlebg { padding: 9px 12px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c3-muted); }
body.c3 .adm_section h4.titlebg .submenu-toggle { margin-left: auto; color: var(--c3-faint); font-size: .7rem; }
body.c3 .left_admmenu { list-style: none; margin: 0; padding: 6px; }
body.c3 .left_admmenu li { padding: 0; margin: 0; list-style: none; }
body.c3 .left_admmenu li a { display: flex; align-items: center; gap: 8px; width: auto; padding: 7px 10px; border-radius: var(--c3-radius-sm); background: transparent; color: var(--c3-text-2); font-size: .86rem; line-height: 1.3; text-decoration: none; }
body.c3 .left_admmenu li a:hover { background: var(--c3-surface-3); color: var(--c3-text); }
body.c3 .left_admmenu li a.active { background: var(--c3-brand-soft); color: var(--c3-brand); font-weight: 600; }
body.c3 .left_admmenu li a img, body.c3 .left_admmenu li a .fa, body.c3 .left_admmenu li a .fas { width: 16px; flex-shrink: 0; margin: 0; text-align: center; opacity: .8; }
body.c3 .left_admmenu li a img { height: 16px; object-fit: contain; opacity: 1; }
body.c3 .submenu-toggle { float: none; text-decoration: none !important; }

/* Admin main column: cards */
body.c3 #admincenter .cat_bar, body.c3 #main_admsection .cat_bar, body.c3 #admin_content .cat_bar { margin-top: 0; }
body.c3 #admincenter .roundframe, body.c3 #main_admsection .roundframe { border-radius: 0 0 var(--c3-radius) var(--c3-radius); margin-bottom: 16px; }
body.c3 #admincenter #quick_search { float: right; }
body.c3 #admincenter #quick_search form { display: flex; align-items: center; gap: 6px; }
body.c3 #admincenter #quick_search form img { display: none; }
body.c3 #admincenter #quick_search .input_text { width: 180px; padding: 5px 9px; font-size: .84rem; }
body.c3 #admincenter #quick_search select { padding: 5px 26px 5px 9px; font-size: .84rem; }
body.c3 #admincenter #quick_search .button_submit { padding: 6px 12px; font-size: .8rem; }
body.c3 #welcome { font-size: .92rem; }
body.c3 #admin_main_section { overflow: visible; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
body.c3 #live_news, body.c3 #supportVersionsTable { float: none; width: auto; font-size: inherit; }
body.c3 #live_news { flex: 1 1 380px; min-width: 0; }
body.c3 #supportVersionsTable { flex: 0 1 300px; }
body.c3 #live_news .windowbg, body.c3 #supportVersionsTable .windowbg { margin-bottom: 0; }
body.c3 #live_news .content, body.c3 #supportVersionsTable .content { padding: 0; }
body.c3 #smfAnnouncements, body.c3 #version_details { max-height: 260px; overflow: auto; font-size: .86rem; padding: 0; }
body.c3 #smfAnnouncements dt { border-bottom: 1px dashed var(--c3-border); padding: 6px 0 2px; font-weight: 600; }
body.c3 #smfAnnouncements dd { margin: 0 0 8px; color: var(--c3-text-2); }
body.c3 #quick_tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 24px; }
body.c3 #quick_tasks li { float: none; width: auto; height: auto; margin: 0; padding: 0; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: start; }
body.c3 #quick_tasks li > a:first-child { grid-row: 1 / span 2; }
body.c3 #quick_tasks li .home_image { float: none; margin: 0; width: 40px; height: 40px; object-fit: contain; }
body.c3 #quick_tasks li h5 { font-size: 1rem; font-weight: 600; margin: 0 0 2px; }
body.c3 #quick_tasks li .task { font-size: .84rem; color: var(--c3-muted); }
body.c3 .windowbg2.clear_right { clear: none; }
body.c3 #update_section:empty { display: none; }

/* Generic admin sub-tabs and descriptions */
body.c3 #adm_submenus { margin: 12px 0 16px; }
body.c3 p.windowbg.description { margin-top: 0; }
body.c3 #admin_content > .cat_bar:first-child { margin-top: 0; }

/* Shoutbox block injected above the page content */
body.c3 h3.catbg.centertext { display: flex; align-items: center; gap: 8px; background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); margin: 0 0 14px; padding: 9px 14px; font-size: .9rem; }
body.c3 h3.catbg.centertext .floatleft, body.c3 h3.catbg.centertext .floatright, body.c3 h3.catbg.centertext .left { float: none; }
body.c3 h3.catbg.centertext img { padding: 0 !important; margin: 0 !important; vertical-align: middle; }
body.c3 #ShoutBox { margin: -8px 0 16px; }
body.c3 #ShoutBox .roundframe { border-radius: var(--c3-radius); }
body.c3 #ShoutBox .tborder { border: 0; margin: 0; }

@media (max-width: 991px) {
	body.c3 #main_container { flex-direction: column; }
	body.c3 #left_admsection { flex-basis: auto; width: 100%; }
	body.c3 .adm_section { margin-bottom: 8px; }
	body.c3 .left_admmenu { display: flex; flex-wrap: wrap; gap: 2px; }
	body.c3 .left_admmenu li a { padding: 6px 9px; }
}

/* Admin dropdown menu layout (GenericMenu dropdown mode) */
body.c3 .subnavbar { background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow); padding: 6px 8px; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: center; }
body.c3 .subnavbar .navbar-brand { display: none; }
body.c3 .subnavbar .navbar-toggler { display: none; }
body.c3 .subnavbar .navbar-collapse { display: flex !important; flex-basis: auto; }
body.c3 .subnavbar .navbar-nav { display: flex; flex-wrap: wrap; flex-direction: row; gap: 4px; list-style: none; margin: 0; padding: 0; }
body.c3 .subnavbar .nav-item { position: relative; }
body.c3 .subnavbar .navbar-nav .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--c3-radius-sm); color: var(--c3-text-2); font-size: .86rem; font-weight: 500; text-decoration: none; }
body.c3 .subnavbar .navbar-nav .nav-link:hover { background: var(--c3-surface-3); color: var(--c3-text); }
body.c3 .subnavbar .navbar-nav .nav-item.active > .nav-link { background: var(--c3-brand-soft); color: var(--c3-brand); }
body.c3 .subnavbar .navbar-nav .nav-link.dropdown-toggle::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; margin-left: 2px; opacity: .7; }
body.c3 .subnavbar .navbar-nav .dropdown-menu { position: absolute; float: none; min-width: 220px; }
body.c3 .subnavbar .dropdown-item.active { background: var(--c3-brand-soft); color: var(--c3-brand) !important; font-weight: 600; }
body.c3 .subnavbar .submenu-toggle { margin-left: auto; color: var(--c3-faint); padding: 0 6px; }
body.c3 #admin_content { clear: none; padding-top: 0; }

/* --------------------------------------------------------------------------
   18. Profile summary, ezPortal columns and blocks, generic content tables
   -------------------------------------------------------------------------- */
body.c3 .cat_bar:has(+ .profile-wrapper), body.c3 .cat_bar:has(+ table), body.c3 .cat_bar:has(+ #adm_submenus), body.c3 .cat_bar:has(+ ul), body.c3 .cat_bar:has(+ .c3-card), body.c3 .cat_bar:last-child { border-bottom: 1px solid var(--c3-border); border-radius: var(--c3-radius); margin-bottom: 14px; }
body.c3 .profile-wrapper { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 16px; }
body.c3 .profile-cover { flex: 0 0 38%; max-width: 38%; min-width: 0; }
body.c3 .profile-basics { flex: 1 1 auto; min-width: 0; }
body.c3 .profile-wrapper .windowbg, body.c3 .profile-wrapper .windowbg2 { margin: 0; }
body.c3 .profile-cover .cover-image { position: relative; height: 150px; border-radius: var(--c3-radius) var(--c3-radius) 0 0; background: linear-gradient(135deg, var(--c3-header-from), var(--c3-header-to)); background-size: cover; background-position: center; border: 1px solid var(--c3-border); border-bottom: 0; }
body.c3 .profile-cover .cover-overlay { height: 100%; border-radius: inherit; background: rgba(0, 0, 0, .18); }
body.c3 .profile-cover .cover-top { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; padding: 0 0 6px; }
body.c3 .cover-top .profile-row-item { text-align: center; }
body.c3 .cover-top .profile-row-item > img.avatar_dot { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--c3-surface); background: var(--c3-surface); box-shadow: var(--c3-shadow-md); position: relative; top: 54px; object-fit: cover; }
body.c3 span.profile-title, body.c3 span.profile-title a { color: #fff !important; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
body.c3 .profile-details { border-radius: 0; border-top: 0; padding: 60px 16px 14px; text-align: center; }
body.c3 .profile-details .cover-bottom { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
body.c3 .cover-bottom .profile-row-item { flex: 1 1 0; text-align: center; min-width: 0; }
body.c3 .cover-bottom .profile-row-item:nth-child(2) { flex-basis: 100%; order: -1; }
body.c3 h4.profile-name { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; overflow-wrap: anywhere; }
body.c3 span.profile-button a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--c3-radius-pill); border: 1px solid var(--c3-border-strong); background: var(--c3-surface); color: var(--c3-text-2); font-size: .8rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
body.c3 span.profile-button a:hover { background: var(--c3-surface-3); color: var(--c3-text); }
body.c3 .profile-cf { padding: 10px 0 0; }
body.c3 .profile-cf ul { margin: 0; padding: 0; list-style: none; text-align: center; }
body.c3 .profile-cf ul li { display: inline-block; margin: 2px 3px; }
body.c3 .profile-cover > .windowbg2 { border-top: 0; border-radius: 0 0 var(--c3-radius) var(--c3-radius); }
body.c3 .profile-wrapper .content { padding: 4px 16px; }
body.c3 .profile-wrapper dl { display: flex; flex-flow: row wrap; width: 100%; margin: 0; }
body.c3 .profile-wrapper dt { flex-basis: 34%; padding: 10px 8px 10px 0; font-weight: 600; font-size: .86rem; color: var(--c3-muted); border-bottom: 1px solid var(--c3-border); }
body.c3 .profile-wrapper dd { flex-basis: 66%; flex-grow: 1; margin: 0; padding: 10px 0; font-size: .92rem; border-bottom: 1px solid var(--c3-border); min-width: 0; overflow-wrap: anywhere; }
body.c3 .profile-wrapper dt:last-of-type, body.c3 .profile-wrapper dd:last-of-type { border-bottom: 0; }
body.c3 .profile-wrapper .signature { border: 0; padding: 12px 0 4px; }
body.c3 .profile-cover img.avatar_dot { border-radius: 50%; }
body.c3 #detailedinfo, body.c3 #basicinfo { float: none; width: auto; }
body.c3 div#profile_error, body.c3 div#profile_success { border-radius: var(--c3-radius-sm); }

/* Tables dropped straight into content boxes (profile stats, ratings, etc.) */
body.c3 .windowbg > table:not([class]), body.c3 .windowbg2 > table:not([class]), body.c3 .content > table:not([class]), body.c3 .roundframe > table:not([class]) { border-collapse: collapse; max-width: 100%; }
body.c3 .windowbg > table:not([class]) td, body.c3 .windowbg2 > table:not([class]) td, body.c3 .content > table:not([class]) td { padding: 6px 8px; border-bottom: 1px solid var(--c3-border); text-align: left; vertical-align: middle; }
body.c3 .windowbg > table:not([class]) tr:last-child td, body.c3 .windowbg2 > table:not([class]) tr:last-child td { border-bottom: 0; }

/* ezPortal columns and blocks */
body.c3 .toggle_icon { display: inline-block; color: var(--c3-faint); padding: 0 0 6px; font-size: .8rem; }
body.c3 #column1 { padding-right: 14px; }
body.c3 #column3 { padding-left: 14px; }
body.c3 #column1 h3.catbg, body.c3 #column3 h3.catbg { font-size: .84rem; padding: 9px 12px; }
body.c3 #column1 .windowbg2.padding, body.c3 #column3 .windowbg2.padding, body.c3 #column1 .windowbg.padding, body.c3 #column3 .windowbg.padding { padding: 10px 12px; font-size: .86rem; margin-bottom: 14px; overflow-wrap: anywhere; }
body.c3 #column1 img, body.c3 #column3 img { max-width: 100%; height: auto; }
body.c3 #column1 input[type="text"], body.c3 #column1 input[type="password"], body.c3 #column1 select, body.c3 #column1 textarea, body.c3 #column1 .input_text, body.c3 #column1 .input_password,
body.c3 #column3 input[type="text"], body.c3 #column3 input[type="password"], body.c3 #column3 select, body.c3 #column3 textarea, body.c3 #column3 .input_text, body.c3 #column3 .input_password { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
body.c3 #column1 .button_submit, body.c3 #column3 .button_submit, body.c3 #column1 input[type="submit"], body.c3 #column3 input[type="submit"] { width: 100%; }
body.c3 #column1 table, body.c3 #column3 table { width: 100%; max-width: 100%; }
body.c3 .ssi_table { width: 100%; border-collapse: collapse; }
body.c3 .ssi_table td { display: block; width: auto; text-align: left; padding: 2px 0; }
body.c3 .ssi_table label { font-size: .8rem; font-weight: 600; color: var(--c3-text-2); }
body.c3 .ssi_table input.input_text, body.c3 .ssi_table input.input_password { width: 100%; }
body.c3 .ssi_table .button_submit { width: 100%; margin-top: 4px; }
body.c3 #column1 form#ic_login, body.c3 #column3 form#ic_login { height: auto; padding: 0; }
body.c3 #column1 form#ic_login ul li, body.c3 #column3 form#ic_login ul li { float: none; width: auto; text-align: left; margin: 0 0 6px; }

@media (max-width: 767px) {
	body.c3 .profile-wrapper { flex-direction: column; }
	body.c3 .profile-cover { flex-basis: auto; max-width: none; width: 100%; }
}
/* ezPortal login block: stack the label/field table cells inside narrow side columns */
body.c3 #column1 form table, body.c3 #column3 form table { width: 100%; border-collapse: collapse; }
body.c3 #column1 form table td, body.c3 #column3 form table td { display: block; width: auto; text-align: left; padding: 2px 0; }
body.c3 #column1 form label, body.c3 #column3 form label { font-size: .8rem; font-weight: 600; color: var(--c3-text-2); }
body.c3 #column1 form .button_submit, body.c3 #column3 form .button_submit, body.c3 #column1 form input[type="submit"], body.c3 #column3 form input[type="submit"] { margin-top: 4px; }
/* Profile detail lists: stacked in the narrow cover column, two-column in the wide one */
body.c3 .profile-cover dl dt { flex-basis: 100%; padding: 8px 0 0; border-bottom: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
body.c3 .profile-cover dl dd { flex-basis: 100%; padding: 2px 0 8px; }
body.c3 .profile-basics dl dt { flex: 0 0 30%; }
body.c3 .profile-basics dl dd { flex: 1 1 60%; }

/* Table header rows carrying catbg/titlebg must stay table rows, not flex rows */
body.c3 tr.titlebg, body.c3 tr.catbg, body.c3 tr.catbg2 { display: table-row; padding: 0; background: var(--c3-surface-2); }
body.c3 tr.titlebg td, body.c3 tr.catbg td, body.c3 tr.titlebg th, body.c3 tr.catbg th { display: table-cell; }

/* --------------------------------------------------------------------------
   19. Statistics center
   -------------------------------------------------------------------------- */
.c3-stats__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; border-top: 1px solid var(--c3-border); }
.c3-stats__fact { padding: 12px 16px; border-right: 1px solid var(--c3-border); border-bottom: 1px solid var(--c3-border); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c3-stats__fact span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c3-muted); }
.c3-stats__fact b { font-weight: 600; font-size: 1rem; color: var(--c3-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.c3-stats__fact small { font-size: .74rem; color: var(--c3-faint); }
.c3-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 18px; align-items: start; }
.c3-rank .c3-card__head { padding: 10px 16px; }
.c3-rank .c3-card__title { font-size: .92rem; }
.c3-rank__row { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--c3-border); }
.c3-rank__row:last-child { border-bottom: 0; }
.c3-rank__row:hover { background: var(--c3-surface-2); }
.c3-rank__pos { flex: 0 0 22px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--c3-faint); font-variant-numeric: tabular-nums; }
.c3-rank__pos--1 { color: #d97706; }
.c3-rank__pos--2 { color: #6b7280; }
.c3-rank__pos--3 { color: #b45309; }
.c3-rank__main { flex: 1 1 auto; min-width: 0; }
.c3-rank__name { font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c3-rank__name a { color: var(--c3-text); }
.c3-rank__name a:hover { color: var(--c3-brand); text-decoration: none; }
.c3-rank__bar { height: 5px; margin-top: 5px; border-radius: 3px; background: var(--c3-surface-3); overflow: hidden; }
.c3-rank__bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--c3-brand), var(--c3-brand-hover)); min-width: 3px; }
.c3-rank__num { flex: 0 0 auto; font-size: .88rem; font-weight: 600; color: var(--c3-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c3-stats__history .c3-card__head { border-bottom: 0; }
body.c3 .c3-stats__history table#stats { border: 0; border-radius: 0; margin: 0; }
body.c3 .c3-stats__history table#stats tbody th { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--c3-text); background: transparent; text-align: center; padding: 9px 12px; border-bottom: 1px solid var(--c3-border); font-variant-numeric: tabular-nums; }
body.c3 .c3-stats__history table#stats tbody th.lefttext, body.c3 .c3-stats__history table#stats tbody th.stats_month, body.c3 .c3-stats__history table#stats tbody td.stats_day { text-align: left; }
body.c3 .c3-stats__history table#stats tr.c3-stats__year th { font-weight: 700; background: var(--c3-surface-2); }
body.c3 .c3-stats__history table#stats tr.c3-stats__year th a { color: var(--c3-text); }
body.c3 .c3-stats__history table#stats th.stats_month { padding-left: 30px; }
body.c3 .c3-stats__history table#stats th.stats_month a { color: var(--c3-text-2); }
body.c3 .c3-stats__history table#stats td { text-align: center; font-size: .84rem; color: var(--c3-muted); font-variant-numeric: tabular-nums; }
body.c3 .c3-stats__history table#stats td.stats_day { padding-left: 52px; }
body.c3 .c3-stats__history table#stats img { width: 9px; height: 9px; opacity: .55; vertical-align: middle; margin-right: 4px; }
body.c3 .c3-stats__history table#stats tbody tr:hover td, body.c3 .c3-stats__history table#stats tbody tr:hover th { background: var(--c3-surface-2); }
@media (max-width: 767px) {
	.c3-stats__grid { grid-template-columns: 1fr; }
	.c3-stats__fact { border-right: 0; }
	body.c3 .c3-stats__history table#stats th, body.c3 .c3-stats__history table#stats td { padding: 8px 6px; font-size: .8rem; }
	body.c3 .c3-stats__history table#stats th.stats_month { padding-left: 16px; }
	body.c3 .c3-stats__history table#stats td.stats_day { padding-left: 24px; }
}

/* --------------------------------------------------------------------------
   20. Personal messages
   -------------------------------------------------------------------------- */
.c3-pm__head { margin: 20px 0 12px; }
.c3-pm__title { font-size: 1.05rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.c3-pm__title i { color: var(--c3-brand); }
.c3-pm__msg .c3-post__bar { row-gap: 6px; }
.c3-pm__msg .c3-post__bar h5 { white-space: normal; font-size: 1rem; }
.c3-pm__meta { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .78rem; color: var(--c3-muted); }
.c3-pm__meta i { margin-right: 5px; color: var(--c3-faint); }
.c3-pm__meta a { color: var(--c3-text-2); font-weight: 500; }
.c3-pm__replied { color: var(--c3-success); }
.c3-pm__replied i { color: inherit; }
.c3-pm__foot .reportlinks { margin-left: 0; }
.c3-pm__foot .labels { margin-left: auto; }
.c3-pm__foot .labels select { padding: 4px 26px 4px 8px; font-size: .8rem; }
body.c3 .quickbuttons li.reply_button a::before { content: "\f3e5"; }
body.c3 .quickbuttons li.reply_all_button a::before { content: "\f122"; }
body.c3 .quickbuttons li.forward_button a::before { content: "\f064"; }
body.c3 .quickbuttons li.inline_mod_check .input_check { margin: 0; }
body.c3 #personal_messages .table_grid td img { vertical-align: middle; }
body.c3 #personal_messages .table_grid th a { display: inline-flex; align-items: center; gap: 4px; }
body.c3 #personal_messages .table_grid th img { vertical-align: middle; }
body.c3 #personal_messages .table_grid td:first-child img { opacity: .75; }
body.c3 #personal_messages .pagesection .floatleft, body.c3 #personal_messages .pagesection .floatright { float: none; }
body.c3 #personal_messages .pagesection .floatright { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
body.c3 .pagelinks strong, body.c3 .pagesection .floatleft strong { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--c3-radius-sm); background: var(--c3-brand); color: #fff; font-weight: 600; font-size: .84rem; }
body.c3 .pagesection .floatleft { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: .84rem; color: var(--c3-muted); }
body.c3 .pagesection .floatleft a.navPages { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--c3-radius-sm); color: var(--c3-text-2); background: var(--c3-surface); border: 1px solid var(--c3-border); text-decoration: none; }
body.c3 #personal_messages .title_bar h3.titlebg { display: flex; align-items: center; gap: 10px; }
body.c3 .capacity_bar { display: inline-block; height: 8px; width: 10em; border-radius: 4px; background: var(--c3-surface-3); overflow: hidden; vertical-align: middle; }
body.c3 .capacity_bar span { display: block; height: 100%; border-radius: 4px; }
body.c3 .capacity_bar .empty { background: var(--c3-success); }
body.c3 .capacity_bar .filled { background: var(--c3-warn); }
body.c3 .capacity_bar .full { background: var(--c3-danger); }
body.c3 #personal_messages > .title_bar { border-bottom: 1px solid var(--c3-border); border-radius: var(--c3-radius); margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   21. Profile statistics (show stats)
   -------------------------------------------------------------------------- */
.c3-stats__facts--flat { border-top: 0; }
.c3-stats__grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.c3-rank__sub { font-size: .74rem; color: var(--c3-faint); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c3-chart { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding: 26px 4px 0; }
.c3-chart__col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; }
.c3-chart__track { width: 100%; flex: 1 1 auto; display: flex; align-items: flex-end; border-bottom: 1px solid var(--c3-border); }
.c3-chart__bar { width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--c3-brand), var(--c3-brand-hover)); opacity: .85; transition: opacity .15s ease; }
.c3-chart__col:hover .c3-chart__bar { opacity: 1; }
.c3-chart__label { font-size: .66rem; color: var(--c3-muted); margin-top: 6px; white-space: nowrap; }
.c3-chart__val { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-size: .7rem; font-weight: 600; color: var(--c3-text-2); background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: 4px; padding: 2px 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 2; }
.c3-chart__col:hover .c3-chart__val { opacity: 1; }
@media (max-width: 991px) {
	.c3-chart { height: 160px; gap: 2px; }
	.c3-chart__col:nth-child(even) .c3-chart__label { visibility: hidden; }
}
@media (max-width: 600px) {
	.c3-chart__label { font-size: .58rem; }
	.c3-chart__col:not(:nth-child(4n+1)) .c3-chart__label { visibility: hidden; }
}

/* Post form: additional options as a grid of toggle chips */
body.c3 #postAdditionalOptionsHeader { margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid var(--c3-border); font-size: .92rem; }
body.c3 #postAdditionalOptionsHeader img { vertical-align: middle; opacity: .6; margin-right: 4px; }
body.c3 #postMoreOptions { font-size: inherit; margin-top: 12px; }
body.c3 ul.post_options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
body.c3 ul.post_options li { margin: 0; padding: 0; list-style: none; }
body.c3 ul.post_options label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; border: 1px solid var(--c3-border); border-radius: var(--c3-radius-sm); background: var(--c3-surface-2); color: var(--c3-text-2); font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
body.c3 ul.post_options label:hover { border-color: var(--c3-border-strong); background: var(--c3-surface-3); }
body.c3 ul.post_options label:has(input:checked) { border-color: var(--c3-brand); background: var(--c3-brand-soft); color: var(--c3-brand); }
body.c3 ul.post_options .input_check { margin: 0; flex-shrink: 0; }
body.c3 #postAttachment, body.c3 #postAttachment2, body.c3 #postAttachment3 { margin: 6px 0 10px; }
body.c3 #postAttachment dt, body.c3 #post_header dt { font-weight: 600; color: var(--c3-text-2); }
body.c3 #shortcuts { margin: 16px 0 0; font-size: .76rem; color: var(--c3-faint); }
body.c3 #post_header dd .input_text { width: 100%; max-width: 780px; }

/* Light-mode contrast fixes: badge links, secondary submit buttons, login modal title */
body.c3 a.c3-badge, body.c3 a.c3-badge:hover { color: #fff; text-decoration: none; }
body.c3 a.c3-badge--group { color: var(--c3-brand); }
body.c3 a.c3-chip { color: var(--c3-text-2); }
body.c3 a.c3-chip--new { color: var(--c3-brand); }
body.c3 input[type="submit"].button_reset, body.c3 .button_submit.button_reset { background: var(--c3-surface); border-color: var(--c3-border-strong); color: var(--c3-text-2); }
body.c3 input[type="submit"].button_reset:hover, body.c3 .button_submit.button_reset:hover { background: var(--c3-surface-3); color: var(--c3-text); }
body.c3 #loginModal .modal-title, body.c3 #loginModal .modal-title i { color: #fff; }

/* --------------------------------------------------------------------------
   22. Member list
   -------------------------------------------------------------------------- */
.c3-letters { display: flex; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }
.c3-letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 6px; font-size: .74rem; font-weight: 600; color: var(--c3-muted); text-decoration: none !important; }
.c3-letters a:hover { background: var(--c3-brand-soft); color: var(--c3-brand); }
.c3-mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0 0 16px; }
body.c3 #mlist .mem-box, .c3-mcard { width: auto; flex-basis: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 14px 16px; background: var(--c3-surface); border: 1px solid var(--c3-border); border-radius: var(--c3-radius); box-shadow: var(--c3-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.c3-mcard:hover { transform: translateY(-2px); box-shadow: var(--c3-shadow-md); }
.c3-mcard__avatar { position: relative; margin-bottom: 4px; }
.c3-mcard__avatar .c3-avatar--lg { width: 64px; height: 64px; font-size: 1.4rem; }
.c3-mcard__status { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--c3-faint); border: 2px solid var(--c3-surface); }
.c3-mcard__status.is-online { background: var(--c3-success); }
body.c3 .c3-mcard__name { font-size: 1rem; font-weight: 600; margin: 0; max-width: 100%; overflow-wrap: anywhere; line-height: 1.3; }
.c3-mcard__name a { color: var(--c3-text); }
.c3-mcard__name a:hover { color: var(--c3-brand); text-decoration: none; }
.c3-mcard__group { margin-top: 2px; }
.c3-mcard__meta { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: var(--c3-muted); margin-top: 4px; }
.c3-mcard__meta i { margin-right: 5px; color: var(--c3-faint); }
.c3-mcard__icons { display: flex; gap: 6px; margin-top: 8px; }
.c3-mcard__icons a { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c3-surface-3); color: var(--c3-muted); font-size: .78rem; text-decoration: none !important; }
.c3-mcard__icons a:hover { background: var(--c3-brand-soft); color: var(--c3-brand); }
.c3-mcards__none { grid-column: 1 / -1; }
.c3-mlist__searchrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.c3-mlist__searchrow label { font-weight: 600; color: var(--c3-text-2); }
.c3-mlist__searchrow .input_text { flex: 1 1 260px; max-width: 480px; }
@media (max-width: 767px) {
	.c3-letters { justify-content: flex-start; }
	.c3-mcards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
	.c3-mcard { padding: 14px 10px 12px; }
}
body.c3 a.c3-avatar, body.c3 a.c3-avatar:hover { color: #fff; text-decoration: none; }
