/* PAOKWORLD 2.0 theme (4.1) – loaded after SMF's index.css / responsive.css and overrides them.
   PAOKWORLD VERSION: 4.1.A2c
   Fonts: Commissioner, Fira Sans Extra Condensed (SIL Open Font License 1.1, see ../fonts/OFL.txt). */

@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/commissioner-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/commissioner-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/commissioner-greek-500-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/commissioner-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/commissioner-greek-600-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/commissioner-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/commissioner-greek-700-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/commissioner-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/commissioner-greek-800-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/commissioner-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fira-sans-extra-condensed-greek-700-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fira-sans-extra-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/fira-sans-extra-condensed-greek-800-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/fira-sans-extra-condensed-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-greek-400.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-greek-500.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-greek-600.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-greek-700.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF, U+1F00-1FFF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens · 4.1.A2: the new site's colours (Νύχτα default, set before paint from localStorage pw2b_theme) ---------- */
:root {
	--pw-bg: #EFEFF0;
	--pw-surface: #FFFFFF;
	--pw-head: #FFFFFF;
	--pw-ink: #151617;
	--pw-ink2: #64676C;
	--pw-line: #EBEBED;
	--pw-chip: #EFEFF1;
	--pw-quote: #F6F6F7;
	--pw-accent: #2C3440;          /* 4.1.A3 (owner 19 Oct): no violet – graphite, as the new site 0.9.3 */
	--pw-accent-soft: rgba(44, 52, 64, .08);
	--pw-on-accent: #FFFFFF;
	--pw-btn: #15171C;
	--pw-btn-ink: #FFFFFF;
	--pw-ok: #067647;
	--pw-err: #B42318;
	--pw-err-soft: #FEE4E2;
	--pw-warn-soft: #FEF0C7;
	--pw-live: #FF3B30;
	--pw-black: #15171C;
	--pw-radius: 16px;
	--pw-radius-s: 12px;
	--pw-font: "Inter", "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pw-display: "Fira Sans Extra Condensed", "Inter", system-ui, sans-serif;
	color-scheme: light;
}
html[data-theme="dark"] {
	--pw-bg: #0F1011; --pw-surface: #18191B; --pw-head: #151617; --pw-ink: #EDEEEF; --pw-ink2: #95989D;
	--pw-line: #2A2B2E; --pw-chip: #26272A; --pw-quote: #1F2022; --pw-accent: #D3D7DE; --pw-accent-soft: rgba(211, 215, 222, .12); --pw-on-accent: #111213;
	--pw-btn: #EDEEEF; --pw-btn-ink: #0F1011; --pw-ok: #5FD18B; --pw-err: #FF8A80; --pw-err-soft: #3A1A1A; --pw-warn-soft: #3A2E12;
	color-scheme: dark;
}

/* ---------- Base ---------- */
html.pw41 { background: var(--pw-bg); }
body.pw41 {
	margin: 0; padding: 0; background: var(--pw-bg); color: var(--pw-ink);
	font-family: var(--pw-font); font-size: 15px; line-height: 1.55;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.pw41 a:link, body.pw41 a:visited { color: inherit; text-decoration: none; }
body.pw41 a:hover { color: var(--pw-accent); text-decoration: none; }
body.pw41 .inner a:link, body.pw41 .inner a:visited, body.pw41 .bbc_link:link, body.pw41 .bbc_link:visited,
body.pw41 .signature a, body.pw41 .description a, body.pw41 .information a, body.pw41 .noticebox a { color: var(--pw-accent); text-decoration: underline; text-underline-offset: 2px; }
body.pw41 h1, body.pw41 h2, body.pw41 h3, body.pw41 h4 { font-family: var(--pw-font); color: var(--pw-ink); }
body.pw41 :focus-visible { outline: 3px solid var(--pw-accent); outline-offset: 2px; border-radius: 6px; }
.pw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pw-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 14px; border-radius: 10px; background: var(--pw-btn); color: var(--pw-btn-ink) !important; font-weight: 700; }
.pw-skip:focus { left: 12px; }
.pw-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
body.pw41 #footerfix { background: transparent; }
body.pw41 #wrapper { width: auto; max-width: 1280px; margin: 0 auto; padding: 0 24px 40px; background: none; border: 0; box-shadow: none; }
body.pw41 #upper_section { background: none; border: 0; padding: 18px 0 6px; margin: 0; box-shadow: none; }
body.pw41 #content_section { background: none; border: 0; padding: 0; margin: 0; box-shadow: none; }
body.pw41 #main_content_section { padding: 8px 0 0; }

/* ---------- Header ---------- */
.pw-header { position: sticky; top: 0; z-index: 80; background: var(--pw-head); border-bottom: 1px solid var(--pw-line); }
.pw-header-row { min-height: 72px; display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.pw-header-row > * { flex-shrink: 0; }
.pw-brand { display: flex; align-items: center; gap: 12px; color: var(--pw-ink) !important; }
.pw-brand:hover { color: var(--pw-ink) !important; }
.pw-brand-logo { width: 44px; height: 44px; border-radius: 50%; display: block; }
.pw-brand-text { display: flex; flex-direction: column; gap: 3px; }
.pw-brand-name { font-family: var(--pw-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: .2px; }
.pw-brand-name span { color: var(--pw-ink2); font-size: 17px; }
.pw-brand-slogan { font-size: 10px; letter-spacing: 1.4px; color: var(--pw-ink); }
.pw-brand-slogan b { font-weight: 800; }
.pw-brand-slogan .o { color: #D9480F; }
.pw-brand-slogan .b { color: #5B5BD6; }
html[data-theme="dark"] .pw-brand-slogan .b { color: #9D9EF5; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .pw-brand-slogan .b { color: #9D9EF5; } }
.pw-nav { display: flex; gap: 2px; flex-wrap: nowrap; font-size: 15px; font-weight: 700; white-space: nowrap; }
.pw-nav a { padding: 10px 14px; border-radius: 10px; color: var(--pw-ink2) !important; display: flex; align-items: center; gap: 6px; }
.pw-nav a:hover { color: var(--pw-ink) !important; background: var(--pw-chip); }
.pw-nav a[aria-current="page"] { background: var(--pw-chip); color: var(--pw-ink) !important; }
.pw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pw-live); display: inline-block; }
.pw-search { flex: 1 1 200px; flex-shrink: 1 !important; min-width: 140px; max-width: 340px; height: 44px; box-sizing: border-box; border-radius: var(--pw-radius-s); background: var(--pw-chip); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--pw-ink2); margin: 0; }
.pw-search input[type="search"] { flex-grow: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-family: inherit; font-size: 14px; color: var(--pw-ink); outline: none; padding: 0; height: 40px; }
.pw-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pw-iconbtn { position: relative; width: 44px; height: 44px; box-sizing: border-box; border-radius: var(--pw-radius-s); border: 1px solid var(--pw-line); background: transparent; color: var(--pw-ink) !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pw-iconbtn:hover { background: var(--pw-chip); }
.pw-iconbtn .amt, .pw-avatar-btn .amt { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--pw-accent); color: var(--pw-on-accent); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid var(--pw-head); margin: 0; }
.pw-avatar-btn { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--pw-chip); display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
.pw-avatar-btn img.avatar { width: 44px !important; height: 44px !important; max-width: none; object-fit: cover; margin: 0; float: none; }
.pw-initial { font-weight: 800; color: var(--pw-ink); }
.pw-pop { position: relative; display: inline-flex; }
body.pw41 .pw-pop .top_menu { top: 52px; right: 0; left: auto; padding: 8px; min-width: 300px; border-radius: 16px; border: 1px solid var(--pw-line); background: var(--pw-surface); color: var(--pw-ink); box-shadow: 0 14px 34px rgba(0,0,0,.16); }
body.pw41 #profile_menu { box-sizing: border-box; }
body.pw41 #profile_menu_top::after { display: none; content: none; }
body.pw41 .top_menu a { color: var(--pw-ink); }
body.pw41 .top_menu .profile_user_avatar img.avatar { border-radius: 50%; }
.pw-btn { height: 44px; padding: 0 16px; border-radius: var(--pw-radius-s); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; white-space: nowrap; }
.pw-btn-ghost { border: 1px solid var(--pw-line); color: var(--pw-ink) !important; }
.pw-btn-solid { background: var(--pw-btn); color: var(--pw-btn-ink) !important; font-weight: 800; }
.pw-btn-solid:hover { color: var(--pw-btn-ink) !important; opacity: .9; }

/* SMF menu (admin, moderation, profile…) as a slim row of pills */
.pw-subnav { background: var(--pw-head); border-bottom: 1px solid var(--pw-line); }
body.pw41 .pw-subnav #main_menu { float: none; margin: 0; padding: 6px 0; }
body.pw41 .pw-subnav .dropmenu { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
body.pw41 .pw-subnav .dropmenu > li { float: none; margin: 0; padding: 0; position: relative; }
body.pw41 .pw-subnav .dropmenu > li > a { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 32px; box-sizing: border-box; border-radius: 999px; border: 0; background: transparent; color: var(--pw-ink2); font-size: 13px; font-weight: 700; line-height: 1.2; box-shadow: none; }
body.pw41 .pw-subnav .dropmenu > li > a.active, body.pw41 .pw-subnav .dropmenu > li:hover > a { background: var(--pw-chip); color: var(--pw-ink); border: 0; }
body.pw41 .pw-subnav .dropmenu > li > a .main_icons { opacity: .7; }
body.pw41 .pw-subnav .dropmenu li ul { top: 34px; border-radius: 14px; border: 1px solid var(--pw-line); background: var(--pw-surface); box-shadow: 0 14px 34px rgba(0,0,0,.16); padding: 6px; }
body.pw41 .pw-subnav .dropmenu li li a { color: var(--pw-ink); border-radius: 8px; }
body.pw41 .pw-subnav .dropmenu li li:hover, body.pw41 .pw-subnav .dropmenu li li a:hover { background: var(--pw-chip); border-color: transparent; }
body.pw41 .pw-subnav .amt { background: var(--pw-accent); color: var(--pw-on-accent); border-radius: 9px; padding: 0 6px; font-size: 11px; }

.pw-preview-note { background: var(--pw-accent-soft); color: var(--pw-accent); font-size: 13px; font-weight: 700; }
.pw-preview-note .pw-wrap { padding-top: 7px; padding-bottom: 7px; }
.pw-preview-note a { text-decoration: underline !important; color: var(--pw-accent) !important; }

/* Breadcrumb */
body.pw41 .navigate_section.pw-crumbs { padding: 0; margin: 0 0 6px; background: none; }
body.pw41 .pw-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--pw-ink2); }
body.pw41 .pw-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
body.pw41 .pw-crumbs li + li::before { content: "›"; color: var(--pw-ink2); }
body.pw41 .pw-crumbs li.last { color: var(--pw-ink); font-weight: 700; }
body.pw41 .pw-crumbs a { color: var(--pw-ink2) !important; }
body.pw41 .pw-crumbs a:hover { color: var(--pw-accent) !important; }
.pw-news { border-radius: var(--pw-radius-s); background: var(--pw-surface); border: 1px solid var(--pw-line); padding: 10px 14px; margin-bottom: 10px; }
.pw-news p { margin: 0; }

/* ---------- SMF building blocks, restyled ---------- */
body.pw41 .cat_bar, body.pw41 .title_bar { background: none; border: 0; border-radius: 0; box-shadow: none; margin: 18px 0 10px; overflow: visible; }
body.pw41 .cat_bar h3.catbg, body.pw41 .catbg, body.pw41 .title_bar .titlebg, body.pw41 h3.titlebg, body.pw41 h4.titlebg,
body.pw41 .catbg a, body.pw41 .titlebg a { background: none; color: var(--pw-ink); border: 0; padding: 0 4px; min-height: 0; line-height: 1.15; font-family: var(--pw-display); font-weight: 800; font-size: 26px; text-shadow: none; box-shadow: none; }
body.pw41 .title_bar h4.titlebg, body.pw41 .title_bar .titlebg { font-size: 22px; }
body.pw41 .sub_bar { background: none; margin: 12px 0 6px; }
body.pw41 .subbg { background: none; color: var(--pw-ink2); font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; border: 0; padding: 0 4px; }
body.pw41 .windowbg, body.pw41 .roundframe, body.pw41 .generic_list_wrapper, body.pw41 .content, body.pw41 .up_contain {
	background: var(--pw-surface); color: var(--pw-ink); border: 1px solid var(--pw-line); border-radius: var(--pw-radius); box-shadow: none; }
body.pw41 .windowbg:nth-of-type(even), body.pw41 .windowbg:nth-of-type(odd) { background: var(--pw-surface); }
body.pw41 .roundframe { padding: 18px 20px; }
body.pw41 .information, body.pw41 .description, body.pw41 .descbox, body.pw41 .infobox, body.pw41 .noticebox, body.pw41 .errorbox {
	border-radius: 14px; border: 1px solid var(--pw-line); background: var(--pw-surface); color: var(--pw-ink); box-shadow: none; padding: 12px 14px 12px 16px; }
body.pw41 .infobox { background: var(--pw-accent-soft); border-color: transparent; }
body.pw41 .noticebox { background: var(--pw-warn-soft); border-color: transparent; }
body.pw41 .errorbox { background: var(--pw-err-soft); border-color: transparent; color: var(--pw-err); }
body.pw41 .infobox::before, body.pw41 .noticebox::before, body.pw41 .errorbox::before { display: none; }

/* Buttons */
body.pw41 .button, body.pw41 a.button, body.pw41 input[type="submit"], body.pw41 input[type="button"], body.pw41 button.button {
	background: var(--pw-surface); color: var(--pw-ink); border: 1px solid var(--pw-line); border-radius: var(--pw-radius-s);
	min-height: 40px; height: auto; padding: 8px 14px; box-sizing: border-box; font-family: var(--pw-font); font-weight: 700; font-size: 14px; line-height: 1.2;
	box-shadow: none; text-shadow: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-transform: none; }
body.pw41 .button:hover, body.pw41 input[type="submit"]:hover, body.pw41 input[type="button"]:hover { background: var(--pw-chip); color: var(--pw-ink); border-color: var(--pw-line); }
body.pw41 .button.active, body.pw41 input[type="submit"].button_submit, body.pw41 input[type="submit"][name="post"], body.pw41 #post_button,
body.pw41 .buttonlist .button_strip_reply, body.pw41 .buttonlist .button_strip_new_topic, body.pw41 .buttonlist .button_strip_post_poll {
	background: var(--pw-btn); color: var(--pw-btn-ink); border-color: var(--pw-btn); }
body.pw41 .button.active:hover, body.pw41 .buttonlist .button_strip_reply:hover, body.pw41 .buttonlist .button_strip_new_topic:hover { background: var(--pw-btn); color: var(--pw-btn-ink); opacity: .9; }
body.pw41 .buttonlist { display: flex; flex-wrap: wrap; gap: 6px; }
body.pw41 .buttonlist .button { margin: 0; }
body.pw41 .button .main_icons, body.pw41 .buttonlist .main_icons { display: none; }

/* Pagination */
body.pw41 .pagesection { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; padding: 0; }
body.pw41 .pagelinks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; float: none; padding: 0; margin: 0; }
body.pw41 .pagelinks .nav_page, body.pw41 .pagelinks .current_page, body.pw41 .pagelinks .expand_pages, body.pw41 .pagelinks a { min-width: 40px; height: 40px; padding: 0 10px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--pw-line); background: var(--pw-surface); color: var(--pw-ink); font-weight: 700; }
body.pw41 .pagelinks .current_page { background: var(--pw-btn); color: var(--pw-btn-ink); border-color: var(--pw-btn); }
body.pw41 .pagelinks .pages { display: none; }
body.pw41 .pagelinks .current_page::before, body.pw41 .pagelinks .current_page::after { content: none; display: none; }
body.pw41 .pw-pg-arrow { font-size: 18px; font-weight: 800; }
body.pw41 #moderationbuttons, body.pw41 .pagesection .buttonlist { margin-left: auto; }

/* Forms */
body.pw41 input[type="text"], body.pw41 input[type="password"], body.pw41 input[type="email"], body.pw41 input[type="search"], body.pw41 input[type="number"], body.pw41 input[type="url"],
body.pw41 select, body.pw41 textarea, body.pw41 .sceditor-container, body.pw41 .input_text {
	background: var(--pw-surface); color: var(--pw-ink); border: 1px solid var(--pw-line); border-radius: 10px; box-shadow: none; font-family: var(--pw-font); font-size: 15px; }
body.pw41 input[type="text"], body.pw41 input[type="password"], body.pw41 input[type="email"], body.pw41 input[type="number"], body.pw41 input[type="url"], body.pw41 select { min-height: 40px; padding: 6px 10px; box-sizing: border-box; }
body.pw41 textarea { padding: 10px 12px; line-height: 1.6; }
body.pw41 input:focus, body.pw41 select:focus, body.pw41 textarea:focus { border-color: var(--pw-ink); outline: none; box-shadow: 0 0 0 3px var(--pw-accent-soft); }
body.pw41 input[type="checkbox"], body.pw41 input[type="radio"] { accent-color: var(--pw-ink); width: 18px; height: 18px; vertical-align: middle; }
body.pw41 dl.settings dt, body.pw41 dl.settings dd { padding: 6px 0; }

/* Tables (lists, member list, admin) */
body.pw41 .table_grid { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--pw-surface); border: 1px solid var(--pw-line); border-radius: var(--pw-radius); overflow: hidden; }
body.pw41 .table_grid th, body.pw41 .table_grid .title_bar th, body.pw41 tr.title_bar th { background: var(--pw-chip); color: var(--pw-ink2); font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; border: 0; padding: 10px 12px; }
body.pw41 .table_grid td { border-top: 1px solid var(--pw-line); padding: 10px 12px; background: transparent; }
body.pw41 .table_grid tr.windowbg { border-radius: 0; border: 0; }

/* Popups (login overlay, help) */
body.pw41 .popup_container { background: rgba(14,14,16,.45); }
body.pw41 .popup_window { border-radius: 20px; border: 1px solid var(--pw-line); background: var(--pw-surface); color: var(--pw-ink); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
body.pw41 .popup_heading { font-family: var(--pw-display); font-weight: 800; font-size: 22px; color: var(--pw-ink); background: none; border: 0; }

/* Board index & message index (baseline – own templates come in 4.1.A2) */
body.pw41 #boardindex_table .windowbg, body.pw41 #topic_container .windowbg, body.pw41 .boardindex_table .windowbg { border-radius: 0; border: 0; border-top: 1px solid var(--pw-line); margin: 0; padding: 14px 18px; }
body.pw41 .boardindex_table, body.pw41 #topic_container { background: var(--pw-surface); border: 1px solid var(--pw-line); border-radius: var(--pw-radius); overflow: hidden; }
body.pw41 .boardindex_table .windowbg:first-child, body.pw41 #topic_container .windowbg:first-child { border-top: 0; }
body.pw41 .info .subject, body.pw41 .info a.subject, body.pw41 .board_name a { font-size: 16px; font-weight: 700; color: var(--pw-ink); }
body.pw41 .board_description, body.pw41 .info p, body.pw41 .board_stats, body.pw41 .lastpost, body.pw41 .lastpost p, body.pw41 .smalltext { color: var(--pw-ink2); }
body.pw41 .new_posts, body.pw41 a.new_posts { background: var(--pw-accent); color: var(--pw-on-accent) !important; border-radius: 999px; padding: 1px 7px; font-size: 10px; font-weight: 800; text-decoration: none !important; }
body.pw41 .windowbg.sticky { background: var(--pw-quote); }
body.pw41 .windowbg.locked .subject::after { content: " · κλειδωμένο"; color: var(--pw-ink2); font-weight: 500; font-size: 13px; }

/* Topic view (baseline – own template in 4.1.A3) */
body.pw41 #forumposts .windowbg { margin: 0 0 12px; padding: 18px 20px; border-radius: var(--pw-radius); }
body.pw41 .poster h4, body.pw41 .poster h4 a { font-size: 16px; font-weight: 800; color: var(--pw-ink); }
body.pw41 .poster li, body.pw41 .poster .membergroup, body.pw41 .poster .postcount { color: var(--pw-ink2); font-size: 13px; }
body.pw41 .poster .avatar img, body.pw41 .poster img.avatar { border-radius: 50%; }
body.pw41 .keyinfo .smalltext, body.pw41 .keyinfo .page_number { color: var(--pw-ink2); }
body.pw41 #forumposts .inner, body.pw41 .postarea .inner, body.pw41 .post .inner, body.pw41 .inner { border-top: 0 !important; font-size: 16px; line-height: 1.7; color: var(--pw-ink); border-top: 0; }
body.pw41 blockquote.bbc_standard_quote, body.pw41 blockquote.bbc_alternate_quote, body.pw41 .bbc_standard_quote, body.pw41 .bbc_alternate_quote {
	background: var(--pw-quote); color: var(--pw-ink2); border: 0; border-radius: 12px; padding: 10px 14px; margin: 8px 0 12px; font-size: 15px; box-shadow: none; }
body.pw41 blockquote cite { color: var(--pw-ink); font-weight: 700; font-style: normal; border: 0; }
body.pw41 .codeheader, body.pw41 .quoteheader { color: var(--pw-ink2); }
body.pw41 code.bbc_code { background: var(--pw-quote); border: 1px solid var(--pw-line); border-radius: 10px; color: var(--pw-ink); }
body.pw41 .signature, body.pw41 .custom_fields_above_signature { border-top: 1px solid var(--pw-line); color: var(--pw-ink2); font-size: 13px; }
body.pw41 .quickbuttons > li > a, body.pw41 .quickbuttons > li > button { background: transparent; color: var(--pw-ink2); border: 0; border-radius: 10px; font-weight: 700; font-size: 13px; padding: 6px 10px; }
body.pw41 .quickbuttons > li > a:hover, body.pw41 .quickbuttons > li:hover > a { background: var(--pw-chip); color: var(--pw-ink); }
body.pw41 .quickbuttons li ul { border-radius: 14px; border: 1px solid var(--pw-line); background: var(--pw-surface); box-shadow: 0 14px 34px rgba(0,0,0,.16); }
body.pw41 .moderatorbar { border-top: 1px solid var(--pw-line); }
body.pw41 .post_like, body.pw41 .smflikebutton { color: var(--pw-ink2); }
body.pw41 #quickreply .roundframe, body.pw41 #quickreply_options { border-radius: var(--pw-radius); }

/* ---------- Footer ---------- */
.pw-footer { text-align: left !important; background: var(--pw-head) !important; border-top: 1px solid var(--pw-line) !important; color: var(--pw-ink); margin-top: 32px; padding: 0 !important; }
.pw-footer-row { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; padding-top: 32px; padding-bottom: 18px; }
.pw-footer-about { flex: 1 1 280px; }
.pw-footer-name { font-family: var(--pw-display); font-size: 24px; font-weight: 800; }
.pw-footer-about p { margin: 6px 0 0; color: var(--pw-ink2); font-size: 14px; line-height: 1.6; }
.pw-footer-links { display: flex; gap: 48px; flex-wrap: wrap; font-size: 14px; }
.pw-footer-links div { display: flex; flex-direction: column; gap: 8px; }
.pw-footer-links a { color: var(--pw-ink2) !important; }
.pw-footer-links a:hover { color: var(--pw-accent) !important; }
.pw-copy { padding-bottom: 24px; font-size: 12px; color: var(--pw-ink2); }
.pw-copy a { color: var(--pw-ink2) !important; }

/* Narrow desktop / tablet: drop the search field before anything wraps */
@media (max-width: 1180px) { .pw-search { display: none; } }
@media (max-width: 960px) { .pw-brand-slogan { display: none; } .pw-nav a { padding: 10px 10px; } }

/* ---------- Phone tab bar ---------- */
.pw-tabbar { display: none; }
@media (max-width: 768px) {
	body.pw41 { font-size: 15px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.pw-wrap, body.pw41 #wrapper { padding-left: 12px; padding-right: 12px; }
	.pw-header-row { min-height: 58px; gap: 8px; flex-wrap: nowrap; }
	.pw-brand-logo { width: 34px; height: 34px; }
	.pw-brand-name { font-size: 21px; }
	.pw-brand-name span { font-size: 14px; }
	.pw-brand-slogan { display: none; }
	.pw-nav { display: none; }
	.pw-search { display: none; }
	.pw-footer-row { padding-top: 22px; }
	.pw-actions { gap: 2px; }
	.pw-iconbtn { border: 0; }
	.pw-btn { height: 38px; padding: 0 12px; font-size: 14px; }
	.pw-btn-ghost { display: none; }
	.pw-subnav { overflow-x: auto; }
	body.pw41 .pw-subnav .dropmenu { flex-wrap: nowrap; }
	body.pw41 .cat_bar h3.catbg, body.pw41 .catbg { font-size: 22px; }
	body.pw41 .pw-pop .top_menu { position: fixed; top: 64px; left: 8px; right: 8px; min-width: 0; width: auto; }
	.pw-footer-links { gap: 28px; }
	.pw-tabbar {
		display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		height: calc(76px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); box-sizing: border-box;
		background: var(--pw-head); border-top: 1px solid var(--pw-line); font-size: 10px; font-weight: 700; letter-spacing: .3px; }
	.pw-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--pw-ink2) !important; }
	.pw-tabbar a[aria-current="page"] { color: var(--pw-ink) !important; }
	.pw-tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--pw-accent); }
	.pw-tab-live-ball { position: relative; width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: var(--pw-black); color: #F4F1EA; border: 4px solid var(--pw-head); display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
	.pw-tab-live-ball::after { content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--pw-live); border: 2px solid var(--pw-head); }
	body.pw41.action_display .pw-tabbar { display: none; }
	body.pw41.action_display { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) { body.pw41 * { transition: none !important; animation: none !important; } }

/* ---------- 4.1.A2 fixes from the owner's screenshots (19 Oct) ---------- */
/* category titles: description under the title, not over it */
body.pw41 .cat_bar { height: auto; min-height: 0; }
body.pw41 .cat_bar h3.catbg, body.pw41 .catbg { height: auto; line-height: 1.15; overflow: visible; }
body.pw41 .cat_bar .desc, body.pw41 .cat_bar + .desc, body.pw41 div.desc, body.pw41 .board_description { position: static; display: block; margin: 4px 0 0; padding: 0; font-family: var(--pw-font); font-size: 13.5px; font-weight: 400; line-height: 1.4; color: var(--pw-ink2); letter-spacing: 0; text-transform: none; }
/* Night: no light bars left */
body.pw41 .quickbuttons, body.pw41 ul.quickbuttons { background: transparent; border: 0; box-shadow: none; }
body.pw41 .quickbuttons > li, body.pw41 .quickbuttons > li > a, body.pw41 .quickbuttons > li > button { background: transparent; }
body.pw41 .quickbuttons > li > a:hover, body.pw41 .quickbuttons > li:hover > a { background: var(--pw-chip); }
body.pw41 .sceditor-container { background: var(--pw-surface); border: 1px solid var(--pw-line); border-radius: var(--pw-radius-s); overflow: hidden; }
body.pw41 .sceditor-toolbar { background: var(--pw-chip); border-bottom: 1px solid var(--pw-line); }
body.pw41 .sceditor-group { background: var(--pw-surface); border-color: var(--pw-line); border-radius: 8px; }
body.pw41 .sceditor-button:hover, body.pw41 .sceditor-button.active { background: var(--pw-chip); }
body.pw41 .sceditor-container textarea, body.pw41 .sceditor-container iframe { background: var(--pw-surface); color: var(--pw-ink); }
html[data-theme="dark"] body.pw41 .sceditor-button div { filter: invert(.85) hue-rotate(180deg); }
html[data-theme="dark"] body.pw41 #smileyBox_message img, html[data-theme="dark"] body.pw41 .sceditor-group img { filter: none; }
/* active tabs (profile, π.μ., admin): the new site's accent instead of SMF orange */
body.pw41 .generic_menu .dropmenu > li > a.active, body.pw41 #adm_submenus .dropmenu > li > a.active, body.pw41 .dropmenu.menu_nav li a.active,
body.pw41 #admin_menu .dropmenu > li > a.active, body.pw41 .generic_menu .dropmenu > li > a.active:hover {
	background: var(--pw-accent); color: var(--pw-on-accent); border: 0; border-radius: 999px; text-decoration: none; box-shadow: none; }
html[data-theme="dark"] body.pw41 .generic_menu .dropmenu > li > a.active, html[data-theme="dark"] body.pw41 #admin_menu .dropmenu > li > a.active { color: #0F1115; }
body.pw41 .generic_menu .dropmenu > li > a, body.pw41 #admin_menu .dropmenu > li > a { border-radius: 999px; padding: 4px 12px; text-decoration: none; }
/* 4.1.A2c: Night – boxes with a white background written into them (TinyPortal blocks / articles, old custom HTML) turn dark too */
html[data-theme="dark"] body.pw41 #main_content_section [style*="background:#fff" i],
html[data-theme="dark"] body.pw41 #main_content_section [style*="background: #fff" i],
html[data-theme="dark"] body.pw41 #main_content_section [style*="background-color:#fff" i],
html[data-theme="dark"] body.pw41 #main_content_section [style*="background-color: #fff" i],
html[data-theme="dark"] body.pw41 #main_content_section [style*="background:white" i],
html[data-theme="dark"] body.pw41 #main_content_section [style*="background: white" i],
html[data-theme="dark"] body.pw41 #main_content_section [style*="background-color:white" i],
html[data-theme="dark"] body.pw41 #main_content_section [style*="background-color: white" i],
html[data-theme="dark"] body.pw41 #main_content_section [style*="rgb(255, 255, 255)" i],
html[data-theme="dark"] body.pw41 .tp_block, html[data-theme="dark"] body.pw41 .tp_article, html[data-theme="dark"] body.pw41 .tparticle,
html[data-theme="dark"] body.pw41 .tp_article_frame, html[data-theme="dark"] body.pw41 .tpcontainer, html[data-theme="dark"] body.pw41 .tborder {
	background: var(--pw-surface) !important; color: var(--pw-ink) !important; border-color: var(--pw-line) !important; }
html[data-theme="dark"] body.pw41 #main_content_section [style*="color:#000" i], html[data-theme="dark"] body.pw41 #main_content_section [style*="color: #000" i],
html[data-theme="dark"] body.pw41 #main_content_section [style*="color:black" i], html[data-theme="dark"] body.pw41 #main_content_section [style*="color: black" i] { color: var(--pw-ink) !important; }

/* 4.1.A5 (owner 23 Oct): the same brand as the new site – «PAOKWORLD» + «#OldEra_thePAOKpath» in orange */
.pw-brand-tag { font: 700 11px/1 var(--pw-text, inherit); letter-spacing: .06em; color: #D9692A; white-space: nowrap; }
