/* Hide some info on small screens that are 992px or less. */
@media screen and (max-width: 992px) {
  .hide1 {
    display:none;
  }
}
/* Hide even more on smaller screens that are 768px or less. */
@media screen and (max-width: 768px) {
  .hide1, .hide2 {
    display:none;
  }
}

body {
	background: #e5e5e5;
	color: #000;
	margin: 0px;
	font-family: Verdana,Geneva,Lucida,'Lucida Grande',Arial,Helvetica,Sans-serif;
	font-size: 100%;
}

.header, .content, .footer {
	display:block;
	clear: both;
	background: #fff;
	border: 1px solid #aebdc4;
	padding: 5px;
	margin: 5px;

	-moz-border-radius: 0.75em;
	-webkit-border-radius: 0.75em;
	border-radius: 0.75em;

/* Uncomment for fixed width layout:
	margin: 0 auto;
	width: 800px;
*/
}

text,	a:link, a:visited, a:active, a.CatLink, .CatDesc, .CatLockedName, .GenText,
	.GenTextRed, .ErrorText, .SmallText, .DateText, .TopBy, th, a.thLnk:link, a.thLnk:active, a.thLnk:visited,
	a.thLnk:active, .RowStyleA, .RowStyleB, .RowStyleC, .MsgToolBar, .PollTable, .MsgIg, td.miniMH,
	.ContentTable, .MsgTable, .DialogTable, .PreviewTable, .AnnonTable, .AnnText, td.NoAvatar, td.Av1, td.Av2, td.tabA,
	.AnnSubjText, a.PagerLink, .LevelText, .MsgSubText, .MsgBodyText, th.SelTS, th.SelFS, legend, td.tabH, div.tabT,
	.MiniTable, .quote, .dashed, .adminColor, .modsColor, td.tabI, td.tabA:hover,
	.brdrNormal, .brdrSelected, input.button, form, img, .StClr, .AnClr, td.msgot, td.msgud, div.ctags, td.mvTc, td.pmNav,
	.ModOpt, .MsgR1, .MsgR2, .MsgR3, .mnavMsg, .mnavWarnTbl, .mnavNoRes, font.lg, td.tt, table.tt, tr.tab, table.tab,
	a.big:link, a.big:active, a.big:visited, .small, a.small:link, a.small:active, a.small:visited, .curtime,
	font.anon, font.reg, td.permYES, td.permNO, td.repI, font.selmsgInd, fieldset
{
	font-family: Verdana,Geneva,Lucida,'Lucida Grande',Arial,Helvetica,Sans-serif;
	font-size: 10pt;
	line-height: 1.6;
}

a:link, a:visited, a:active, a.PagerLink {
	color: #069;
	text-decoration: underline;
}

a.CatLink {
	font-size: 10pt;
	font-weight: bold;
	text-decoration: none;
	color: #000;
}

.CatDesc {
	color: #000;
	height: 23px;
	background: url('/theme/default/images/tableHeaderbg2.png');
}

.CatLockedName {
	font-size: 10pt;
	font-weight: bold;
}

.CatLockPad {
	padding-left: 20px;
}

text, .GenText, .MsgIg, td.repI {
	color: #000;
}

.GenTextRed {
	color: red;
}

.ErrorText {
	color: red;
	font-weight: bold;
}

.SmallText, .DateText, .TopBy, td.permYES, td.permNO, .SmallText a {
	color: #202020;
	font-size: x-small;
}

th {
	font-size: 10pt;
	text-align: left;
	color: #fff;
	font-weight: bold;
	height: 23px;
	vertical-align: middle;
	background: url('/theme/default/images/tableHeaderbg.png');
}

a.thLnk:link, a.thLnk:active, a.thLnk:visited {
	font-size: 10pt;
	text-decoration: underline;
	color: #eee;
}

a.thLnk:visited {
	color: #c2cdd6;
}

.RowStyleA, td.tt {
	background: #eee;
}

.RowStyleB, .curtime, fieldset {
	background: #dee2e6;
}

.RowStyleC {
	background: #c2cdd6;
}

.row:hover td {
	opacity: 0.8;
}

.MsgToolBar {
	background: #dee2e6;
	padding-left: 3px;
	padding-right: 3px;
}

.MsgSpacer {
	padding-bottom: 2px;
	padding-top: 2px;
}

.PollTable, .ContentTable, .MsgTable, .DialogTable, .PreviewTable, .AnnonTable {
	background: #fff;
	border: 0;
	padding: 0;
	margin: 0;
	clear: both;
}

font.ptp { /* space between poll title & number of votes */
	font-size: smaller;
	padding-left: 10px;
}

.ContentTable, .AnnonTable, .MsgTable, table.pad {
	width: 100%;
}

.MsgTable {
	margin-top: 0;
	margin-bottom: 0;
	border: 1px solid #888;
}

.DialogTable {
	width: 66%;
}

.PreviewTable {
	width: 75%;
}

.AnnText {
	color: #000;
	background: #f5d300;
	margin-top: 7px;
	margin-bottom: 7px;
}

.AnnSubjText {
	font-weight: bold;
}

.MsgSubText {
	font-weight: bold;
}

a.MsgSubText, a.MsgSubText:visited {
	color: black;
	text-decoration: none;
}

.MsgBodyText {
	font-size: 10pt;
	display: block;
	line-height: 1.7;
}

.FormattingToolsBG {
	padding-left: 5px;
	vertical-align: bottom;
	background: transparent;
}

.FormattingToolsCLR {
	-moz-border-radius: 0.15em;
	-webkit-border-radius: 0.15em;
	border-radius: 0.15em;

	padding: 1px;
	background: #fff;
}
.FormattingToolsCLR:hover {
	border: 1px; 
	background: #dee;
}

.MiniTable {
	background: #fff;
	border: 0;
	padding: 0;
	margin: 0;
}

cite {
	/* quote titles */
	color: #202020;
	font-size: 9pt;
	font-weight: bold;
	margin-left: 20px;
	display: block;
	background: transparent url('/theme/default/images/quote.gif') left top no-repeat;
	padding-left: 25px;
}

blockquote {
	/* quote tags */
	color: #444;
	background: #fafafa;
	border-left: 1px dashed #c2cdd6;
	margin: 8px 1px 0 20px;
	overflow: hidden;
	padding: 5px;
	font-style: italic;
}
blockquote:first-letter {
	margin: 0 .1em 0 -0.12em;
	font-family: "Monotype Corsiva", "Apple Chancery", fantasy;
	font-size: 160%;
	font-weight: bold;
	font-variant: small-caps;
}

blockquote blockquote {
	/* nested quote tags */
	background-color: #f0f0f0;
	margin: 8px 1px 0 10px;
}

blockquote blockquote blockquote {
	/* double nested quote tags */
	background-color: #e0e0e0;
}

.quote {
	/* old pre v3 quotes */
	color: #444444;
	background: #FAFAFA;
	border: 1px solid #c2cdd6;
}

.indent {
	/* [indent] & [tab] tags */
	margin-left: 35px;
}

.dashed {
	border: 1px dashed #1b7cad;
}

.adminColor {
	font-weight: bold;
	color: #f00;
}

.modsColor {
	color: #0b0;
	font-weight: bold;
}

.brdrNormal, td.tabItop, td.tabImid, td.tabIbot {
	border: #000;
	border-style: solid;
	border-left-width: 0;
	border-top-width: 0;
	border-right-width: 0;
	border-bottom-width: 1px;
	background-repeat: repeat;
	background-position: top;
}

.brdrSelected, td.tabAmid, td.tabAmid, td.tabAbot {
	border: #000;
	border-style: solid;
	border-left-width: 0;
	border-top-width: 0;
	border-right-width: 0;
	border-bottom-width: 0;
	background-repeat: repeat;
	background-position: top;
}

form {
	padding: 0;
	margin: 0;
}

img {
        border: 0;
        max-width: 800px;
        transition:all 0.5s ease-out;
}
img:hover {
    transform: scale(1.05);
}

figcaption {
        font-style: italic;
        font-variant: small-caps;
        font-size: smaller;
}

a[href^="mailto:"] {
	background: url(/theme/default/images/email.png) no-repeat right center;
	padding-right:17px;
}

.StClr {
	font-weight: bold;
	color: green;
}

.AnClr {
	font-weight: bold;
	color: red;
}

.ModOpt, .ModOpt a {
	color: #a8b1b8;
	font-size: x-small;
	text-align: right;
}

.TopBy {
	margin-bottom: 0;
	padding-right: 2px;
	text-align: right;
}

.MsgR2, .MsgR1, .MsgR3, .MsgIg {
	background: #dee2e6;
	border-bottom: 1px solid #aaa;
	padding: 2px;
}

.MsgIg {
	border: 0;
}

.MsgR1 {
	background: #ccd4dc;
}

.MsgR3 {
	background: #f4f4f4;
	padding: 1ex;
	padding-top: 2ex;
}

.mnavMsg {
	border-bottom: 1px dashed #eee;
	width: 100%;
}

.mnavWarnTbl {
	border: 1px dashed red;
}

.mnavNoRes {
	border: 1px dashed blue;
}

font.lg {
	font-size: 10pt;
}

td.tt {
	text-align: left;
	width: 100%;
	border-bottom: 1px solid #fff;
}

table.tt {
	width: 100%;
	padding: 1px;
	margin: 0;
	text-align: center;
	border: 1px solid #000;
}

a.big:link, a.big:active, a.big:visited {
	color: #069;
	font-size: 11pt;
}

.small, a.small:link, a.small:active, a.small:visited {
	font-size: 9pt;
	font-weight: normal;
}

a.small:link, a.small:active, a.small:visited {
	color: #069;
}

a:hover, a.big:hover, td.msgud a:hover, td.msgot a:hover {
	color: #dc143c;
}

td.msgud, td.msgot, td.msgot a, div.ctags {
	color: #202020;
	font-size: 8pt;
	vertical-align: top;
	width: 33%;
	white-space: nowrap;
}

td.msgud {
	padding-right: 10px;
	text-align: left;
}

td.msgot {
	text-align: right;
}

div.ctags {
	padding: 2px;
	width: 100%;
}

legend {
	font-size: 11pt;
	font-weight: bold;
	background-color: #fff;
	border: 1px solid #aebdc4;
}

fieldset {
	border: 1px solid #aebdc4;
}

th.SelTS, th.SelFS {
	padding: 2px;
	color: #fff;
}

th.SelFS {
	 border-bottom: 1px solid #fff;
	 color: #fff;
}

td.NoAvatar {
	background: #f4f4f4;
	text-align: center;
}

td.Av1, td.Av2 {
	text-align: center;
	background: #f4f4f4;
	vertical-align: middle;
	white-space: nowrap;
}

td.Av2 {
	background: #fefefe;
}

td.tabI, td.tabA, td.tabI:hover, td.tabOVER, td.tabON {
	border: 1px solid black;
	background: #dee7f7;
        padding: 2px;
}

td.tabOVER, td.tabI:hover, td.tabI:active {
	background: #fff;
}

td.tabON {
	background: #5279bd;
}

a.tabON:link, a.tabON:active, a.tabON:visited, a.tabON:hover {
	color: #fff;
	font-weight: bold;
	text-decoration: none;
}

div.tabT {
	padding: 1px;
        padding-left: 10px;
        padding-right: 10px;
}

table.tab {
	border-bottom: 1px solid #000;
}

.curtime {
	border: 1px solid #aebdc4;
	vertical-align: middle;
	padding: 1px 3px 1px 3px;
}

td.pmSn {
	background: #fff;
}

td.pmSa {
	background: #fffa00;
}

td.pmSf {
	background: red;
}

table.pmDu {
	width: 175px;
	background-color: #fff;
	border: 1px #c2cdd6 solid;
}

td.mvTc {
	background: #e5ffe7;
}

td.pmNav {
	background: #fff;
	text-align: right;
}

td.miniMH {
	text-align: center;
}

tr.mnavH {
	background: #eee;
}

tr.mnavM {
	background: #dee2e6;
}

table.regConf {
	width: 80%;
	border: 1px dashed #f00;
}

font.anon, font.reg {
	color: #0a0;
}

td.permYES, td.permNO {
	text-align: center;
	color: red;
	white-space: nowrap;
}

td.permNO {
	color: blue;
}

font.regEW {
	font-size: xx-small;
	color: #050;
	font-weight: bold;
}

td.repI {
	padding: 5px;
	padding-left: 20px;
}

table.pad {
	margin-top: 2px;
	margin-bottom: 2px;
}

font.selmsgInd {
	font-size: xx-small;
	font-weight: bold;
	text-decoration: none;
}

td.avatarPad {
	padding-right: 3px;
	vertical-align: top;
}

div.pre {
	font-family: monospace;
	padding: 5px;
	border: 1px blue dashed;
	font-size: 10pt;
	white-space: pre;
	background: #fafafa;
	overflow: auto;
	margin: 5px;
}

/* Code formatting. */
pre { white-space: pre-wrap; }
.codehead, .codehead a { color: #202020; background: #e9e9e9; font-size: xx-small; font-weight:bold; }
html pre.prettyprint { border:none; padding: 0; margin: 5px;} 

a.big:active, a:active, a.CatLink:active, a.UserControlPanel:active, a.thLnk:active, 
a.small:active, a.PagerLink:active, a.MsgSubText:active {
	color: #dc143c;
}

/* BBcode [imgl] & [imgr] tags. */
img.l {
	float: left;
	clear: right;
	margin: 3px;
}

img.r {
	float: right;
	clear: left;
	margin: 3px;
}

.AttachmentsList {
	margin-left: 0;
	list-style: none;
	margin-top: 10px;
	padding: 0;
}

.signature {
	border-top: 1px dotted #a0a0a0;
	color: #202020;
	font-size: 8pt;
}

.header {color:#fff; background:#5478a4;}
.header a {color:#fff; text-decoration:none;}
.headtitle {padding: 10px; font-size:xx-large; font-weight:bold; text-decoration:none;}
.headdescr {padding: 20px 10px 0px 20px; color:#eee; font-size:small;}
.headsearch {padding: 0 0 10px 20px; font-size: small; font-weight:bold; float:right; white-space: nowrap;}

/* Make textareas's resizable (jQuery UI). */
.ui-resizable-s {
	height: 9px;
	background: #eee url("/theme/default/images/grippie.gif") no-repeat center 2px;
 	border: 1px solid #ddd;
	border-top-width: 0;
	overflow: hidden;
}
.ui-resizable-resizing textarea {
	opacity: 0.5;
	filter: alpha(opacity=50);
	zoom: 1;
}

/* The following are partial elements that are used to save space. */
.wo { width:		1px; }
.wa { width:		100%; }
.ac { text-align:	center; }
.al { text-align:	left; }
.ar { text-align:	right; }
.fl { float: 		left; }
.fr { float: 		right; }
.vb { vertical-align:	bottom; }
.vt { vertical-align:	top; }
.vm { vertical-align:	middle; }
.nw { white-space: 	nowrap; }
.fb { font-weight:	bold; }
.dn { display: none; visibility:hidden;}
.clear { clear: both; }

img.at { float: left; clear: left; }

div.sr { float: left; padding: 5px; }

div.ctb {text-align: center; clear: both;}
div.ctb table {margin: 0 auto; text-align: left;}
div.ip { overflow: auto; margin: 0; padding: 2px; width: 600px; height: 400px; }
span.vt { padding-left: 20px; }
table.icqCP { font-family: arial, sans-serif; font-size: smaller; border: 0; }
div.pmL { padding-top: 2px; }
table.ucPW { width: 175px; }

/* Colors for highlighting search terms. */
.st0 { background-color: #ffff66; }
.st1 { background-color: #a0ffff; }
.st2 { background-color: #99ff99; }
.st3 { background-color: #ffd7a8; }
.st4 { background-color: #ff9999; }
.st5 { background-color: #aba8ff; }
.st6 { background-color: #b3ff66; }
.st7 { background-color: #fff2a8; }
.st8 { background-color: #a8d1ff; }
.st9 { background-color: #ffb7b7; }

/* User Control Panel / Top Level Menu. */
#UserControlPanel {
	float: right;
	width: 100%;
	margin: 5px 0 10px 10px;
}
#UserControlPanel ul {
	list-style: none;
	float: right;
	padding: 0;
	margin: 0;
	text-align:right;
}
#UserControlPanel li {
	margin: 0 7px 0 0;
	position:relative;
	display: inline;
	white-space: nowrap;
}
#UserControlPanel li a {
	color: #069;
	text-decoration: none;
}

/* Calendar. */
table.calendar {border-left:1px solid #999; }
tr.calendar-row {}
td.calendar-day {min-height:80px; font-size:11px; position:relative; } * html div.calendar-day { height:80px; }
td.calendar-day:hover {background:#eceff5; }
td.calendar-day-np {background:#eee; min-height:80px; } * html div.calendar-day-np { height:80px; }
td.calendar-day-head {background:#ccc; font-weight:bold; text-align:center; width:120px; padding:5px; border-bottom:1px solid #999; border-top:1px solid #999; border-right:1px solid #999; }
div.day-number {background:#999; position:absolute; z-index:2; top:-5px; right:-25px; padding:5px; color:#fff; font-weight:bold; width:20px; text-align:center; }
td.calendar-day, td.calendar-day-np { width:120px; padding:5px 25px 5px 5px; border-bottom:1px solid #999; border-right:1px solid #999; }

/* Buttons. */
input.button:link, input.button:visited, input.button {
	background:#ddd url(/theme/default/images/button.png) repeat-x scroll left top;
	border-color:#ccc #b4b2b4 #ccc #b4b2b4;
	position: relative;
	cursor: pointer;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
	-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
input.button:hover, input.button:hover {
	background:#e2e2e2 url(/theme/default/images/button.png) repeat-x scroll left -115px;
	color:#000;
}
.small.button, .small.button:visited   { font-size: 11px; }

/* Karma voting */
a.karma {
    text-decoration: none;
}
a.up {
    color: green;
    font-weight: bold;
}
a.down {
    color: red;
    font-weight: bold;
}

/* Blog page - two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {
    float: left;
    width: 74%;
}

/* Right column */
.rightcolumn {
    float: left;
    width: 24%;
    padding-left: 10px;
}

/* Add a card effect for articles */
.card {
    background-color: #f4f4f4;
    padding: 0 10px 10px 10px;
    margin-top: 10px;
    font-size: 10pt;
    line-height: 1.7;
    box-shadow: inset 0 0 10px #ccc;
}
.card a {
    text-decoration: none;
}
.rightcolumn .card {
    background-color: #ddd;
}

/* Clear floats after the columns */
.group:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive layout - hide the sidebar when the screen is less than 768px wide. */
@media screen and (max-width: 768px) {
  .rightcolumn {
    display:none;
    width: 0%;
  }
  .leftcolumn {
    width: 98%;
    padding: 0;
  }
}

/* FootballSportsTalk — swh theme (redesign). Ported onto FUDforum's markup.
   Color in OKLCH; neutrals tinted toward brand hue. Dark via prefers-color-scheme
   (a manual toggle comes with the header.tmpl override). */

/* Display + body fonts (Saira Condensed + Inter) load via a Google Fonts <link> in
   header.tmpl. The bundled Jakarta woff2 stays in the theme but is no longer referenced. */

:root {
  --brand: #c8371a;
  --brand-strong: #a82f16;
  --accent-fill: #e8451f;
  --accent-fill-strong: #cf3a17;
  --brand-tint: #f7ebe6;
  --brand-tint-2: #f0ddd6;
  --ring: rgba(232,69,31,0.4);
  --ink: #141922;    /* slate-800 - headings */
  --text: #2c343f;   /* slate-700 - body text; matches the reference forum (sviluppodev) exactly; 10.8:1 on white */
  --muted: #5a6472;  /* slate-600 - secondary text; 7.5:1 */
  --faint: #5f6b7a;  /* slate-500 - meta/timestamps; 4.9:1 */
  --line: #e6e2d8;
  --line-soft: #efe9df;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efe9df;
  --nav-bg: rgba(246,244,239,0.86);
  --success: #0e6f31;
  --r-sm: 8px; --r: 10px; --r-lg: 14px; --r-pill: 999px;
  --sh-1: 0 1px 2px oklch(50% 0.03 262 / 0.06), 0 1px 3px oklch(50% 0.03 262 / 0.05);
  --sh-2: 0 2px 6px oklch(50% 0.03 262 / 0.07), 0 8px 20px oklch(50% 0.03 262 / 0.06);
  --font-display: "Saira Condensed", "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1440px;
  /* Per-category accent (icon) + tint (tile bg) — matches the approved mock. */
  --c-host: #e8451f;  --c-host-t: #fbe7e0;
  --c-virt: #7c5cff;  --c-virt-t: #ece7ff;
  --c-lnx:  #1f9d55;  --c-lnx-t:  #e2f3ea;
  --c-hw:   #c77d0e;   --c-hw-t:   #f7ecd8;
  --c-net:  #2f6df0;  --c-net-t:  #e6edfd;
  --c-sec:  #d1224b;   --c-sec-t:  #fce4ea;
  --c-cloud:#2b7d99;   --c-cloud-t:#e2f0f4;
  --c-beg:  #0e8f8f;   --c-beg-t:  #dbf1f1;
  --c-arch: #5a6472;  --c-arch-t: #eceef1;
  --c-gen:  #e8451f;  --c-gen-t:  #fbe7e0;
  --tab-ink: #5a6472; --badge-hot: #c8371a; --badge-open: #7f570e;
  --role-admin: #c8371a; --role-mod: #0e6f31;
  --vote-up: #e8451f; --vote-down: #2b7d99;   /* Reddit-style action colors for post voting */
  color-scheme: light;
}
/* Dark theme — applied only via the manual toggle (data-theme="dark"), NOT auto.
   Keeps the site reliably light until the toggle + dark polish ship. */
:root[data-theme="dark"] {
  --brand: #e8451f; --brand-strong: #f0613d;
  --accent-fill: #e8451f; --accent-fill-strong: #cf3a17;
  --brand-tint: #232b36; --brand-tint-2: #1b222c;
  --ring: rgba(232,69,31,0.5);
  --ink: #ffffff; --text: #cdd6e0;
  --muted: #94a3b8; --faint: #64748b;
  --line: #2a3342; --line-soft: #1e2530;
  --bg: #0b0f14; --surface: #1f2632; --surface-2: #161c26;
  --nav-bg: rgba(11,15,20,0.9);
  --vote-up: #ff5a1f; --vote-down: #6fb3c9;
  /* Category accents — muted tints for dark. */
  --c-host-t: #2a1f1b;  --c-host: #f0613d;
  --c-virt-t: #221f2e;  --c-virt: #a48cff;
  --c-lnx-t:  #182a20;  --c-lnx:  #5fd08f;
  --c-hw-t:   #2a2416;   --c-hw:   #e0a94e;
  --c-net-t:  #1a2233;  --c-net:  #6f9bf5;
  --c-sec-t:  #2a1a20;   --c-sec:  #f06a89;
  --c-cloud-t:#17242a;  --c-cloud:#6fb3c9;
  --c-beg-t:  #132a2a;   --c-beg:  #4fd0d0;
  --c-arch-t: #232833; --c-arch: #94a3b8;
  --c-gen-t:  #2a1f1b;  --c-gen:  #f0613d;
  --tab-ink: #94a3b8; --badge-hot: #e8451f; --badge-open: #d8b46a;
  --role-admin: #f0613d; --role-mod: #6ee7a8;
  --sh-1: 0 1px 2px oklch(0% 0 0 / 0.35), 0 1px 3px oklch(0% 0 0 / 0.3);
  --sh-2: 0 2px 6px oklch(0% 0 0 / 0.4), 0 8px 20px oklch(0% 0 0 / 0.35);
  color-scheme: dark;
}

/* ---- base ---- */
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a, a:link, a:visited { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---- top nav (mock) ---- */
.swh-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 18px; height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.02em; }
.brand-name b { color: var(--brand); font-weight: 800; }
.brand-tag { font-size: 11px; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--r); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  color: var(--text); text-decoration: none;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-ico { width: 18px; height: 18px; color: var(--faint); flex: none; }
.nav-links a:hover .nav-ico { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 44px;
  padding: 0 16px; border-radius: var(--r); font-family: var(--font-display);
  font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-outline { border-color: var(--line); background: var(--surface); }
.btn-primary { background: var(--accent-fill); color: #fff; }
a.btn-outline:link, a.btn-outline:visited { color: var(--ink); }
a.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
a.btn-primary:link, a.btn-primary:visited, a.btn-primary:hover { color: #fff; }
a.btn-primary:hover { background: var(--accent-fill-strong); }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--brand); }
.theme-toggle .ti-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ti-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ti-moon { display: block; }
.swh-push-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.swh-push-btn:hover { color: var(--ink); border-color: var(--brand); }
.swh-push-btn.is-on { color: var(--brand); border-color: var(--brand); }
.headtitle, .headdescr, .headimg { display: none; }
.nav-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; flex: none; place-items: center; }
.nav-cb:focus-visible + .nav-toggle { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Logged-in username chip + Sign-In dropdown (pure-CSS, JS-off safe) */
.nav-actions { position: relative; }
.nav-user { gap: 6px; }
.nav-user .nav-ico { width: 16px; height: 16px; }
.nav-user-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-cb { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.login-open { cursor: pointer; }
.login-pop { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; width: 264px; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.nav-actions:has(.login-cb:checked) .login-pop { display: flex; }
.login-pop-l { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-display); font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.login-pop-l input { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); color: var(--ink); font-size: 0.9rem; font-weight: 400; }
.login-pop-l input:focus { outline: none; border-color: var(--brand); }
.login-pop .btn-primary { justify-content: center; margin-top: 2px; }
.login-pop-alt { font-size: 0.8rem; color: var(--muted); text-align: center; text-decoration: none; }
.login-pop-alt:hover { color: var(--brand); }
/* --- User Control Panel (account settings / notifications / subscriptions tabs + section headers) --- */
table.tab { border-collapse: separate; border-spacing: 3px 0; margin: 6px 0 20px; width: auto; }
.tab td { background: transparent !important; border: 0 !important; padding: 0 !important; }
.tab .tabT { padding: 0; }
.tab .tabT a, .tab a.tabON { display: block; padding: 8px 15px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--muted); text-decoration: none; border-radius: var(--r) var(--r) 0 0; white-space: nowrap; }
.tab td.tabI:hover .tabT a { color: var(--ink); background: var(--surface-2); }
.tab td.tabON .tabT a, .tab a.tabON, .tab a.tabON:link, .tab a.tabON:visited { color: var(--brand) !important; background: var(--surface) !important; box-shadow: inset 0 -2px 0 var(--brand); }
.CatDesc, th.CatDesc { background: var(--surface-2) !important; color: var(--ink) !important; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 11px 16px !important; border: 0 !important; border-top: 1px solid var(--line) !important; }
.ContentTable td.RowStyleC, td.RowStyleC { background: transparent !important; color: var(--muted); }
.ContentTable input[type="text"], .ContentTable input[type="password"], .ContentTable input[type="email"], .ContentTable input[type="number"], .ContentTable select, .ContentTable textarea {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); color: var(--ink); font-size: 0.9rem; font-family: var(--font-body); max-width: 100%;
}
.ContentTable input:focus, .ContentTable select:focus, .ContentTable textarea:focus { outline: none; border-color: var(--brand); }
/* --- Backend readability pass (User CP, moderator, member/search list pages): bigger + darker
       text per client request 2026-08-18. Scoped to the settings/list surfaces (.ContentTable,
       the UCP tab bar, fieldsets) so the home feed, hero and message body stay as approved. --- */
.tab .tabT a, .tab a.tabON { font-size: 0.96rem; }
.CatDesc, th.CatDesc { font-size: 0.9rem; }
.ContentTable th { font-size: 13px; color: var(--text); }
.ContentTable td { font-size: 1.03rem; color: var(--text); }
/* ...but the message poster box also uses .ContentTable — keep the backend-readability bump OFF it,
   so the poster meta (Messages/Registered/rank) stays small, not larger than the post body. */
.MsgR2 .ContentTable td { font-size: 0.86rem; }
.MsgR2 .ContentTable td.msgud, .MsgR2 .ContentTable td.msgot { font-size: 0.8rem; }
.ContentTable td.RowStyleC, td.RowStyleC { color: var(--text); }
.ContentTable .GenText, .ContentTable .SmallText, fieldset, fieldset .SmallText { font-size: 0.85rem; color: var(--text); }
.ContentTable .DateText { font-size: 0.9rem; color: var(--muted); }
.ContentTable label, .ContentTable td.RowStyleA, .ContentTable td.RowStyleB { color: var(--text); }
.ContentTable input[type="text"], .ContentTable input[type="password"], .ContentTable input[type="email"], .ContentTable input[type="number"], .ContentTable select, .ContentTable textarea { font-size: 0.98rem; color: var(--ink); }
/* --- Help: inline feature screenshots in the Community Features section --- */
.help-shot { display: block; max-width: min(100%, 520px); height: auto; margin: 12px 0 2px; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--sh-1); background: var(--surface); }
/* --- Ad zones (M4 ad rotation: header banner / sidebar / in-thread) --- */
.swh-ad-label { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.swh-ad-body { font-size: 0.9rem; line-height: 1.45; }
.swh-ad-body a { color: var(--brand-ink); text-decoration: none; font-weight: 600; }
.swh-ad-body a:hover { text-decoration: underline; }
.swh-ad-header { max-width: var(--container); margin: 12px auto 0; padding: 10px 32px; text-align: center; }
.swh-ad-header .swh-ad-body { font-size: 0.92rem; }
.swh-ad-inpost { margin: 0 0 4px; padding: 12px 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); text-align: center; }
.swh-ad-inpost .swh-ad-body a { display: inline-block; }
.swh-ad-inpost .swh-ad-body img { display: block; max-width: 100%; height: auto; }
.swh-ad-cell { padding: 6px 0 !important; border: 0 !important; background: transparent !important; }
/* --- Help pages (t=help_index): larger + darker text (client request 2026-08-18). Scoped via
       td.content, which is help-specific (UCP/list ContentTables use RowStyle* cells, not td.content). --- */
.ContentTable td.content, .ContentTable td.content .GenText { font-size: 1rem !important; color: var(--ink) !important; line-height: 1.62; }
.ContentTable td.content .GenText a, .ContentTable td.content li { font-size: 1rem !important; }
.ContentTable:has(td.content) th, .ContentTable:has(td.content) th a { font-size: 0.98rem !important; color: var(--ink) !important; }
/* --- Mobile message/thread page: stack the toolbar so the action buttons wrap instead of overflowing --- */
@media (max-width: 680px) {
  /* cap the message column + all its nested tables to the viewport (no horizontal overflow).
     table-layout:fixed stops the outer table expanding to a non-wrapping child (the toolbar). */
  .content > table[width="100%"] { table-layout: fixed; }
  .content > table[width="100%"]:has(.MsgTable) { max-width: 100%; }
  table.wa td.vb.ar, table.wa td.ar, table.wa td { white-space: normal; }
  .MsgTable, .MsgTable table, .ContentTable { max-width: 100%; }
  .MsgR2 .ContentTable { table-layout: fixed; width: 100%; }
  .MsgR2 .ContentTable td { overflow-wrap: anywhere; }
  /* Poster meta row: the 4 fixed cells (avatar | name+stats | rank | IP) collide on narrow
     screens. Flow them instead — avatar + name/stats on line 1, rank wraps under, IP hidden. */
  .MsgR2 .ContentTable, .MsgR2 .ContentTable > tbody { display: block; }
  .MsgR2 .ContentTable > tbody > tr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; }
  .MsgR2 .ContentTable td.avatarPad { flex: 0 0 auto; }
  .MsgR2 .ContentTable td.msgud { flex: 1 1 auto; min-width: 0; white-space: normal; word-break: break-word; }
  .MsgR2 .ContentTable td.msgud * { white-space: normal !important; }
  .MsgR2 .ContentTable td.msgud + td.msgud { flex-basis: 100%; color: var(--muted); }
  .MsgR2 .ContentTable td.msgot { display: none; }
  table.wa, table.wa > tbody, table.wa > tbody > tr { display: block; width: 100%; }
  table.wa td { display: block; width: 100% !important; text-align: left !important; }
  table.wa td.vb.ar, table.wa td.ar { text-align: left !important; margin-top: 12px; }
  table.wa:has(.act-btn) { margin-bottom: 14px; }
  .act-btn { height: 34px; padding: 0 12px; font-size: 0.82rem; margin-bottom: 6px; }
  .act-btn + .act-btn { margin-left: 6px; }
  .crumb { gap: 5px; font-size: 0.82rem; }
  .crumb-cur { max-width: 100%; white-space: normal; }
  .MsgSubText { font-size: 0.98rem; }
  .content > table[width="100%"] > tbody > tr > td { padding: 12px 16px 24px; }
  .msg-toolbar { gap: 6px; }
  .MsgTable td, .MsgR1, .MsgR2, .MsgR3 { padding-left: 12px !important; padding-right: 12px !important; }
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-links .menu-only { display: none; }
@media (max-width: 860px) {
  .brand-tag { display: none; }
  .nav-toggle { display: inline-grid; }
  .nav-actions .btn { display: none; }        /* Sign In + Create Account move into the menu */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px; box-shadow: var(--sh-2);
  }
  .nav-inner:has(.nav-cb:checked) .nav-links, .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 0.95rem; }
  .nav-links .menu-only { display: flex; margin-top: 2px; }
  .nav-links .menu-only.nav-cta { color: #fff; background: var(--accent-fill); font-weight: 700; justify-content: center; }
  .nav-links .menu-only.nav-cta:hover { background: var(--accent-fill-strong, var(--brand-strong)); }
}

/* ---- main content: full-width passthrough (kill FUDforum's centered box) ---- */
.content {
  display: block; max-width: none; margin: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.content > table[width="100%"] { width: 100% !important; max-width: var(--container); margin: 0 auto; border-collapse: collapse; border-spacing: 0; }
.content > table[width="100%"] > tbody > tr > td { padding: 14px 32px 30px; }
/* contained inner width for everything except the full-bleed hero */
.page { max-width: none; margin: 0; padding: 24px 0 0; }

/* top user nav ( Search Help Members Register Login Home ) — redundant with the new nav */
#UserControlPanel { display: none; }
#UserControlPanel ul {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none;
}
#UserControlPanel li { list-style: none; }
#UserControlPanel a {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  border-radius: var(--r); color: var(--text); font-weight: 600; font-size: 14px;
}
#UserControlPanel a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
#UserControlPanel img { width: 16px; height: 16px; }

/* show-links subnav */
#ShowLinks {
  display: block; margin: 0 0 6px; padding: 0; font-size: 0.82rem;
  color: var(--text);
}
#ShowLinks .GenText, #ShowLinks b { color: var(--text); font-weight: 700; }
#ShowLinks a { font-weight: 600; }

/* ---- main tables as cards ---- */
.ContentTable {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); overflow: hidden;
}
.ContentTable th {
  text-align: left; background: var(--surface-2); color: var(--muted);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.ContentTable td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.RowStyleA, .RowStyleB { background: transparent; }
.ContentTable tr:hover td { background: var(--surface-2); }
/* Neutralize FUDforum's default blue-gradient table header (bare `th` with a PNG bg
   image + white text). Used by the thread-list "Topic/Replies/Views" header. */
th { background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-align: left; height: auto; padding: 10px 13px; border-bottom: 1px solid var(--line); }

/* category header row */
.CatDesc {
  background: var(--brand-tint) !important; border-bottom: 1px solid var(--line) !important;
  padding: 10px 14px !important;
}
.CatLink {
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink);
  letter-spacing: -0.01em;
}
.CatLink:hover { color: var(--brand-strong); }

/* forum name link */
.big {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink);
}
.big:hover { color: var(--brand-strong); }

.DateText { color: var(--faint); font-size: 12px; }
.SmallText { font-size: 13px; color: var(--muted); }
.GenText { color: var(--text); }
.thLnk { font-weight: 600; }
.adminColor { color: var(--role-admin); font-weight: 700; }
.modsColor { color: var(--role-mod); font-weight: 700; }

/* quick login + buttons + inputs */
.fr { float: none; margin: 0 0 20px; }
/* Thread-list header (t=thread): the theme neutralises .fr floats, which left the "New Topic"
   button flowing inline after the Show-links. Flex this specific container so Show-links sit
   left and New Topic sits far right. */
div.wa:has(> .fl):has(> .fr) { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
div.wa:has(> .fl):has(> .fr) > .fl, div.wa:has(> .fl):has(> .fr) > .fr { margin: 0; }
/* Thread-list bulk-action row (Delete/Move/Merge/Lock selected): breathing room from the
   header + thread rows, and a small gap between the buttons. */
table.pad td.RowStyleC:has(input.button.small) { padding-top: 16px; padding-bottom: 8px; }
input.button.small + input.button.small { margin-left: 6px; }
input[type="text"], input[type="password"], input[type="search"], textarea, select {
  border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-sm);
  padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink);
}
input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring);
}
.button, input[type="submit"], input[name="quick_login_submit"] {
  height: 38px; padding: 0 18px; border: 0; border-radius: var(--r);
  background: var(--accent-fill); color: #fff; font-family: var(--font-display);
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.button:hover, input[type="submit"]:hover { background: var(--accent-fill-strong); }

/* legend / misc — override base gray backgrounds */
fieldset {
  border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px;
  margin: 0 0 16px; color: var(--muted); font-size: 13px; background: var(--surface);
}
fieldset legend { color: var(--faint); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 0 6px; background: transparent; }
.curtime, .curtime b { color: var(--muted); font-size: 12px; background: transparent; }
.RowStyleB { background: transparent; }

/* ---- hero ---- */
.hero { background: linear-gradient(180deg, var(--brand-tint) 0%, var(--brand-tint-2) 55%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 940px; margin: 0 auto; padding: clamp(32px,4vw,52px) 24px clamp(26px,3.5vw,42px); text-align: center; }
.hero-inner h1 { font-family: var(--font-display); font-size: clamp(1.45rem, 0.9rem + 1.5vw, 1.75rem); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.hero-sub { margin: 12px auto 0; max-width: 40em; font-size: clamp(0.98rem, 0.95rem + 0.25vw, 1.1rem); color: var(--text); }
.hero-search { display: flex; gap: 8px; max-width: 760px; margin: 22px auto 0; background: var(--surface); padding: 6px; border-radius: var(--r-lg); box-shadow: var(--sh-2); border: 1px solid var(--line); }
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring), var(--sh-2); }
.hero-search input { flex: 1; border: 0; background: transparent; font-size: 1rem; color: var(--ink); padding: 10px 14px; outline: none; min-width: 0; }
.hero-search input::placeholder { color: var(--faint); }
.hero-search .btn { padding: 0 22px; flex: none; }
.hero-chips { margin: 16px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.chips-label { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 0.82rem; font-weight: 600; }
.chip:link, .chip:visited { color: var(--brand-strong); }
.chip:hover { border-color: var(--brand); }

/* ---- category cards ---- */
.cats { margin-bottom: 32px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Category heading hidden visually (matches the mock's sr-only "Categories" label). */
.cat-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cat-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 196px; padding: 30px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.cat-card:hover { border-color: oklch(88% 0.02 255); box-shadow: var(--sh-2); text-decoration: none; }
.cat-top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cat-tile { width: 52px; height: 52px; border-radius: 11px; background: var(--ct, var(--c-gen-t)); color: var(--ci, var(--c-gen)); display: grid; place-items: center; flex: none; transition: transform .15s ease; }
.cat-card:hover .cat-tile { transform: translateY(-1px); }
.cat-ico { width: 28px; height: 28px; background: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-image: var(--ico); mask-image: var(--ico); }
/* Per-category accent (tile) + icon (mask), keyed by the forum-name class emitted in draw_forum_list.tmpl. */
.t-host  { --ct: var(--c-host-t);  --ci: var(--c-host);  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12c3-4.5 6-6.5 9-6.5s6 2 9 6.5c-3 4.5-6 6.5-9 6.5s-6-2-9-6.5Z'/%3E%3Cpath d='M7.5 12h9'/%3E%3Cpath d='M10 10.5v3M12 10.5v3M14 10.5v3'/%3E%3C/svg%3E"); }
.t-virt  { --ct: var(--c-virt-t);  --ci: var(--c-virt);  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9a2 2 0 0 1-2 2H6l-4 3V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2Z'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v10l-4-3h-6a2 2 0 0 1-2-2v-1'/%3E%3C/svg%3E"); }
.t-cloud { --ct: var(--c-cloud-t); --ci: var(--c-cloud); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M5.6 5.6c3.5 3 3.5 9.8 0 12.8'/%3E%3Cpath d='M18.4 5.6c-3.5 3-3.5 9.8 0 12.8'/%3E%3C/svg%3E"); }
.t-lnx   { --ct: var(--c-lnx-t);   --ci: var(--c-lnx);   --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 L14.17 9.01 L20.56 9.22 L15.52 13.14 L17.29 19.28 L12 15.7 L6.71 19.28 L8.48 13.14 L3.44 9.22 L9.83 9.01 Z'/%3E%3C/svg%3E"); }
.t-net   { --ct: var(--c-net-t);   --ci: var(--c-net);   --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3 4 7 8 11'/%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M16 21 20 17 16 13'/%3E%3Cpath d='M20 17H4'/%3E%3C/svg%3E"); }
.t-sec   { --ct: var(--c-sec-t);   --ci: var(--c-sec);   --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5Z'/%3E%3C/svg%3E"); }
.t-hw    { --ct: var(--c-hw-t);    --ci: var(--c-hw);    --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='1.5'/%3E%3Cpath d='M9 2v2M15 2v2M9 20v2M15 20v2M2 9h2M2 15h2M20 9h2M20 15h2'/%3E%3C/svg%3E"); }
.t-beg   { --ct: var(--c-beg-t);   --ci: var(--c-beg);   --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c0 1 2.7 2.5 6 2.5s6-1.5 6-2.5v-5'/%3E%3C/svg%3E"); }
.t-arch  { --ct: var(--c-arch-t);  --ci: var(--c-arch);  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='4' rx='1'/%3E%3Cpath d='M5 8v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8'/%3E%3Cpath d='M10 12h4'/%3E%3C/svg%3E"); }
.t-gen   { --ct: var(--c-gen-t);   --ci: var(--c-gen);   --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='1.5'/%3E%3Crect x='3' y='13' width='18' height='7' rx='1.5'/%3E%3Cpath d='M7 7.5h.01M7 16.5h.01'/%3E%3C/svg%3E"); }
.cat-hd { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.cat-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); line-height: 1.1; }
.cat-card:hover .cat-name { color: var(--brand-strong); }
.cat-count { font-size: 0.86rem; font-weight: 700; color: var(--brand); margin-top: 1px; }
.cat-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.4; display: block; max-width: 26ch; margin-inline: auto; }
@media (max-width: 760px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---- Home two-column: latest discussions + sidebar ---- */
.swh-home { display: grid; grid-template-columns: minmax(0,1fr) 322px; gap: 20px; margin-top: 32px; align-items: start; }
.s-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.s-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.s-head h2 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.s-tabs { display: inline-flex; gap: 2px; background: var(--brand-tint); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.s-tab { font-size: 0.8rem; font-weight: 700; color: var(--tab-ink); padding: 5px 13px; border-radius: 999px; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
a.s-tab:link, a.s-tab:visited { color: var(--tab-ink); }
.s-tab:hover { color: var(--ink); text-decoration: none; }
.s-tab.is-on, a.s-tab.is-on:link, a.s-tab.is-on:visited { color: #fff; background: var(--accent-fill, var(--brand)); box-shadow: var(--sh-1); }
.s-tab.is-on:hover { color: #fff; }
.s-empty { padding: 34px 18px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.s-list { display: flex; flex-direction: column; }
.s-thread { display: flex; gap: 13px; align-items: flex-start; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.s-thread:last-child { border-bottom: 0; }
.s-thread:hover { background: var(--brand-tint); text-decoration: none; }
.s-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%); }
.s-av-img, .s-av-sm.s-av-img { padding: 0; overflow: hidden; background: none; }
.s-av-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.s-body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.s-title { font-weight: 700; color: var(--ink); line-height: 1.35; font-size: 0.98rem; }
.s-thread:hover .s-title { color: var(--brand-strong); }
.s-snip { font-size: 0.84rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.s-tag { font-size: 0.72rem; font-weight: 600; color: var(--text); background: var(--brand-tint); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.s-counts { flex: none; display: flex; flex-direction: column; gap: 4px; text-align: right; font-size: 0.72rem; color: var(--muted); min-width: 74px; }
.s-counts b { color: var(--ink); font-weight: 800; }
.s-status { flex: 0 0 190px; display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
.s-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.s-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-hot  { color: var(--badge-hot); background: oklch(56% 0.14 150 / 0.14); }
.s-open { color: var(--badge-open); background: oklch(62% 0.14 72 / 0.15); }
.s-ans  { color: var(--brand); background: var(--brand-tint); }
.s-byline { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.s-byline b { color: var(--text); font-weight: 700; }
.s-av-sm { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.66rem; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%); }
.s-foot { padding: 13px 18px; border-top: 1px solid var(--line); }
.s-side { display: flex; flex-direction: column; gap: 16px; }
.s-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px 20px; }
.s-card-h { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-card-h .link-more { font-size: 0.78rem; font-weight: 700; }
.s-pop { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.s-pop a { display: flex; flex-direction: column; gap: 2px; }
.s-pop .p-t { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.s-pop a:hover .p-t { color: var(--brand-strong); }
.s-pop .p-v { font-size: 0.73rem; color: var(--muted); }
.s-stats { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; align-items: center; }
.s-stats dt { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--text); }
.s-stat-ico { width: 17px; height: 17px; color: var(--muted); flex: none; }
.s-stats dd { font-size: 0.92rem; font-weight: 800; color: var(--ink); text-align: right; }
.s-stats dd.s-accent { color: var(--brand-strong); }
.s-join p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 13px; }
.s-join .btn { width: 100%; justify-content: center; }
/* Newsletter sign-up card (posts to phpList at /lists/, double opt-in by email). */
.s-news p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.s-news-form { display: flex; flex-direction: column; gap: 8px; }
/* Members-only newsletter (21 Oct): home box button + Newsletter page + registration checkbox. */
.s-news-join { display: flex; width: 100%; justify-content: center; align-items: center; }
.s-news-small { margin: 10px 0 0; font-size: 0.82rem; color: var(--muted); }
.nl-card { max-width: 46rem; margin: 18px 0 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.nl-card h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.35rem; }
.nl-card p { margin: 0 0 14px; color: var(--text); line-height: 1.55; }
.nl-pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.nl-pick input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.nl-pick span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.nl-pick strong { display: block; color: var(--ink); font-size: 1rem; }
.nl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.nl-err { color: #b91c1c; }
.reg-newsletter { margin: 12px 0; } .reg-newsletter label { display: flex; gap: 8px; align-items: flex-start; }
/* Newsletter card header: animated mail icon ("you've got mail": float, periodic wiggle, ping dot). */
.s-news-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.s-news-title .s-card-h { margin-bottom: 3px; }
.s-news-kicker { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.s-news-icon { position: relative; flex: none; width: 64px; height: 64px; }
.s-news-icon img { display: block; width: 64px; height: 64px; transform-origin: 50% 85%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28)); animation: nl-mail 4.8s ease-in-out infinite; }
.s-news-icon::after { content: ""; position: absolute; top: 3px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #ef4444; border: 2px solid var(--surface); animation: nl-ping 2.4s ease-out infinite; }
.s-news:hover .s-news-icon img { animation-duration: 2.4s; }
@keyframes nl-mail {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-4px) rotate(-2deg); }
  60% { transform: translateY(0) rotate(0deg); }
  70% { transform: rotate(-7deg); }
  76% { transform: rotate(6deg); }
  82% { transform: rotate(-4deg); }
  88% { transform: rotate(2deg); }
}
@keyframes nl-ping { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); } }
@media (prefers-reduced-motion: reduce) { .s-news-icon img, .s-news-icon::after { animation: none; } }
.s-news-form input[type="email"] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 0.95rem; }
.s-news-form input[type="email"]:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 1px; }
.s-news-form .btn { width: 100%; justify-content: center; }
.s-news-pick { display: flex; gap: 18px; font-size: 0.88rem; color: var(--ink); }
.s-news-pick label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.s-news-pick input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
/* --- Sidebar: Popular Discussions "glist" (icon + title + author) + Top Members "mlist" (mock 1:1) --- */
.glist { list-style: none; margin: 0; padding: 0; }
.glist li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.glist a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
.glist .g-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.glist .g-ic svg { width: 17px; height: 17px; }
.g-body { min-width: 0; }
.g-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.glist a:hover .g-title { color: var(--brand-strong); }
.g-meta { display: block; font-size: 0.76rem; color: var(--faint); margin-top: 2px; }
.g-meta b { color: var(--muted); font-weight: 600; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.mlist li + li { border-top: 1px solid var(--line-soft); }
.rank { width: 16px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 0.84rem; color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.mlist li:nth-child(1) .rank { color: oklch(72% 0.15 85); }
.mlist li:nth-child(2) .rank { color: oklch(72% 0.02 260); }
.mlist li:nth-child(3) .rank { color: oklch(60% 0.11 55); }
.m-av { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; color: var(--muted); flex: none; overflow: hidden; box-shadow: inset 0 0 0 1px oklch(50% 0.02 262 / 0.14); }
.m-av img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.m-name { font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-pts { font-size: 0.78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-pts span { color: var(--faint); font-weight: 500; }
.dot-live { width: 7px; height: 7px; margin: 0 5px; border-radius: 50%; background: oklch(66% 0.17 150); display: inline-block; box-shadow: 0 0 0 3px oklch(66% 0.17 150 / 0.2); flex: none; }
@media (max-width: 900px) { .swh-home { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .s-head { flex-direction: column; align-items: flex-start; gap: 11px; }
  .s-counts { display: none; }
  /* Stack the status row below the title/snippet so the body gets full width. */
  .s-thread { flex-wrap: wrap; }
  .s-status { order: 3; flex-basis: 100%; margin-left: 55px; min-width: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
}

/* ---- hero art ---- */
.hero { position: relative; overflow: hidden; margin: -14px calc(50% - 50vw) 0; width: 100vw; }
.hero-inner { position: relative; z-index: 2; }
.hero-art { position: absolute; inset: 0; z-index: 1; max-width: 1480px; margin: 0 auto; pointer-events: none; }
.hero-art img { position: absolute; height: auto; display: block; }
.art-left { left: 24px; top: 50%; transform: translateY(-50%); width: clamp(110px, 10vw, 150px); }
.art-right { right: 24px; top: 50%; transform: translateY(-50%); width: clamp(150px, 13vw, 200px); }
/* Full-bleed hero photo stays visible on mobile too — the portrait <source> kicks in <=768px. */
@media (max-width: 1100px) { .hero-art { display: block; } }

/* view-all link + logo */
.cats-viewall { text-align: center; margin-top: 16px; }
.link-more, .link-more:link, .link-more:visited { color: var(--brand); font-weight: 700; font-size: 0.9rem; }
.link-more:hover { color: var(--brand-strong); }
img.brand-mark { height: 44px; width: auto; object-fit: contain; }

/* ---- footer (mock) ---- */
.footer { max-width: none; margin: 44px 0 0; padding: 0; background: var(--surface); border: 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--muted); font-size: 14px; text-align: left; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 40px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer .footer-brand { margin-bottom: 14px; }
.footer-blurb { font-size: 0.88rem; color: var(--muted); max-width: 30ch; margin: 0; }
.footer h2 { font-family: var(--font-display); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 12px; }
.footer-col a, .footer-col a:link, .footer-col a:visited { display: block; padding: 4px 0; font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: var(--brand); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand-col { grid-column: 1 / -1; } }

/* ============ thread-listing (forum) page ============ */
.row td { border-bottom: 1px solid var(--line-soft); padding: 12px; vertical-align: top; background: transparent; }
/* Topic titles on board pages: same font and weight as "Latest discussions" (Jeff 23 Oct: "too small to read and not bold"). */
.row .big, .row a.big:link, .row a.big:visited { font-family: inherit; font-weight: 700; font-size: 1rem; color: var(--ink); }
.row a.big:hover { color: var(--brand-strong); }
/* WCAG 2.2 target-size (2.5.8): the thread-title link is the row's primary tap target.
   inline-block + line-height gives it a >=24px clickable box (16px * 1.6 = 25.6px) on mobile. */
.row a.big { display: inline-block; line-height: 1.6; }
.TopBy { color: var(--muted); font-size: 0.82rem; }
.row td.RowStyleA .TopBy { display: block; text-align: left; margin-top: 4px; }
.row td.RowStyleC img[src$="goto.gif"] { display: none; }   /* dated last-post arrow, not in the mock */
/* Board page: hide stock chrome not in the mock — the Goto-Forum jump form and the RSS/Syndicate line. */
form:has(input[name="frm_goto"]) { display: none !important; }
.SmallText.fb:has(+ form input[name="frm_goto"]) { display: none !important; }
.SmallText:has(a[href*="section=boardusage#syndicate"]), .SmallText:has(img[src$="rss.gif"]) { display: none !important; }
.RowStyleC { background: transparent; }
.PagerLink { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0 2px; color: var(--text); font-weight: 600; }
.PagerLink:hover { border-color: var(--brand); color: var(--brand); }

/* ============ message / read page ============ */
.MsgTable { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); margin: 0 0 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
/* Vote control now sits in the bottom action bar (Reddit-style), so no left-gutter reservation. */
.MsgR1 { background: var(--surface-2) !important; border-bottom: 1px solid var(--line); padding: 12px 16px !important; }
.MsgSubText, .MsgSubText:link { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
/* The thread page's message list is itself wrapped in a .ContentTable (td.MsgSpacer), so the
   backend-readability bump (.ContentTable .SmallText -> 1rem) blew up the subject row's
   "[message #N is a reply to #M]" note to 16px around stock 10px links, wrapping the line.
   Pin the whole note (links included) back to one small size, and the header date with it. */
.MsgR1 .SmallText, .MsgR1 .SmallText a { font-size: 13px; }
.MsgR1 .SmallText { white-space: nowrap; }   /* never split "[message #N ...]" mid-bracket */
.MsgR1 .DateText, .ContentTable .MsgR1 .DateText { font-size: 12px; }
.MsgR2 { padding: 12px 16px !important; color: var(--muted); font-size: 0.86rem; background: transparent !important; }
.MsgR3 { padding: 16px !important; background: transparent !important; }
.MsgBodyText { color: var(--text); font-size: 0.95rem; line-height: 1.7; }
.MsgToolBar { padding: 10px 16px !important; border-top: 1px solid var(--line-soft); background: var(--surface-2) !important; }
.msgud, .msgot { color: var(--faint); font-size: 0.8rem; }
/* Message poster: drop the online/offline "lightbulb" indicator, show the avatar as a clean circle */
.msgud img[src*="online.png"], .msgud img[src*="offline.png"] { display: none; }
.avatarPad { padding: 0 14px 0 0; vertical-align: top; width: 58px; }
.ctags { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* FUDforum small action buttons (Tree View / New Topic / Post Reply) */
.button.small { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); color: var(--text) !important; font-weight: 600; font-size: 13px; text-transform: none; }
.button.small:hover { border-color: var(--brand); color: var(--brand) !important; }
.button.small img { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; clip: rect(0 0 0 0); }
/* The "Goto Forum" Go button is a primary action — blue with white text (client request) */
input.button.small[name="frm_goto"] { background: var(--accent-fill); color: #fff !important; border-color: transparent; }
input.button.small[name="frm_goto"]:hover { background: var(--accent-fill-strong); color: #fff !important; border-color: transparent; }

/* ---- Action buttons: New Topic / Post Reply + per-message toolbar ---- */
.act-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: var(--r); font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; vertical-align: middle; }
.act-btn + .act-btn { margin-left: 8px; }
.act-ico { width: 16px; height: 16px; flex: none; }
a.act-btn-primary, a.act-btn-primary:link, a.act-btn-primary:visited { background: var(--accent-fill); color: #fff; }
.act-btn-primary:hover { background: var(--accent-fill-strong, var(--brand-strong)); color: #fff; text-decoration: none; }
a.act-btn-outline, a.act-btn-outline:link, a.act-btn-outline:visited { background: var(--surface); border-color: var(--line); color: var(--ink); }
.act-btn-outline:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.msg-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-toolbar-c { flex: 1 1 auto; text-align: center; color: var(--muted); }
.msg-toolbar-l, .msg-toolbar-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Reddit-style: each post action is its own rounded pill (capsule with a subtle background). */
.msg-act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; border: 1px solid var(--line); text-decoration: none; }
a.msg-act, a.msg-act:link, a.msg-act:visited { color: var(--muted); }
.msg-act:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand); text-decoration: none; }
.msg-ico.ico-flip { transform: scaleX(-1); }   /* Reply = the Share arrow, mirrored */
.msg-ico { width: 14px; height: 14px; flex: none; }
/* QA sweep r2 item 0: FUDforum injects the post fold/unfold toggle (min.png/max.png, 32x32)
   and the PDF-link icon (pdf.gif) UNSIZED after paint, which reflows the message header
   (CLS 0.26) and renders them at inconsistent sizes. Reserve a fixed box so injection can't
   shift layout and both toggle states match. */
img.collapsable,
img[src$="/images/min.png"], img[src$="/images/max.png"], img[src$="/images/pdf.gif"] { width: 16px; height: 16px; vertical-align: middle; }
/* QA sweep r2 item 1: guarantee a visible keyboard focus ring on form controls (some
   FUDforum-injected inputs had none). :focus-visible = keyboard focus only, no mouse rings. */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
/* Remove the stock FUDforum email icon: the base forum.css paints email.png as a background on
   EVERY mailto: link (footer "Contact", user-email links), and a few templates embed it as an
   <img>. The redesign uses plain text / labeled links, so drop the icon everywhere. */
a[href^="mailto:"] { background-image: none; padding-right: 0; }
img[src$="/images/email.png"], img[src$="/images/email.gif"] { display: none; }
/* Visually-hidden helper for accessible names (sr-only h1s, empty-cell labels). */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* --- M3: per-post up/down vote widget (Quora-style, in the message toolbar) --- */
/* Vertical vote rail pinned to the post's left gutter (Reddit/SO-style, matches the mock).
   The markup lives in the toolbar row but is absolutely positioned against .MsgTable, whose
   padding-left reserves the 54px gutter — so this is a pure-CSS re-layout, no template change. */
/* Reddit-style vote control: a compact HORIZONTAL pill in the post's bottom action bar, with bold
   solid arrows + action colours (upvote orange, downvote periwinkle) so it drives the vote. Client req. */
.mvote { display: inline-flex; flex-direction: row; align-items: center; gap: 0; width: auto; padding: 1px; margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; vertical-align: middle; }
.mvote-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; border-radius: 999px; color: var(--faint); text-decoration: none; transition: background-color .12s ease, color .12s ease; }
.mvote-up:hover { background: color-mix(in srgb, var(--vote-up) 16%, transparent); color: var(--vote-up); text-decoration: none; }
.mvote-down:hover { background: color-mix(in srgb, var(--vote-down) 16%, transparent); color: var(--vote-down); text-decoration: none; }
.mvote-ico { width: 17px; height: 17px; }
.mvote-up.on, .mvote-up.on:hover { color: var(--vote-up); }
.mvote-down.on, .mvote-down.on:hover { color: var(--vote-down); }
.mvote-score { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; padding: 0 4px; min-width: 18px; }
.mvote:has(.mvote-up.on) .mvote-score { color: var(--vote-up); }
.mvote:has(.mvote-down.on) .mvote-score { color: var(--vote-down); }
/* Thread post vote widget = a clean vertical pill, same style as the SWH forum's .mvote
   control (single rounded pill, borderless arrows, hover/active accent). No boxed buttons. */
.vote.mvote { display: inline-flex; flex-direction: column; align-items: center; gap: 0; padding: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; width: auto; }
.msg-act-danger:hover { background: oklch(60% 0.15 25 / 0.13); color: oklch(56% 0.16 25); }
/* Share (copy permalink): swaps "Share" -> "Copied!" while the .copied flash is on. */
.share-btn .sh-on { display: none; }
.share-btn.copied .sh-off { display: none; }
.share-btn.copied .sh-on { display: inline; }
.share-btn.copied { border-color: color-mix(in oklch, var(--brand) 40%, transparent); background: var(--brand-tint); color: var(--brand); }
/* --- Accepted answer (Solved): reply the thread author/admin marked as the answer --- */
.accepted-badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; margin-right: 8px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 700; font-size: 0.76rem; color: oklch(50% 0.13 155); background: oklch(55% 0.13 155 / 0.13); }
.accepted-badge .msg-ico { width: 15px; height: 15px; }
.MsgTable:has(.accepted-badge) { border-color: oklch(62% 0.12 155); box-shadow: 0 0 0 1px oklch(62% 0.12 155 / 0.35), var(--sh-1); }
.msg-accept-btn.on .ac-off, .msg-accept-btn:not(.on) .ac-on { display: none; }
a.msg-accept-btn.on, a.msg-accept-btn.on:link, a.msg-accept-btn.on:visited { color: oklch(50% 0.13 155); }
.msg-accept-btn:hover { background: oklch(55% 0.13 155 / 0.12); color: oklch(46% 0.13 155); }
/* --- Topic tags + thread-level "Solved" badge (on the thread's first-post subject bar) --- */
.thread-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: middle; }
.badge-solved { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; color: oklch(50% 0.13 155); background: oklch(55% 0.13 155 / 0.13); }
.thread-tags { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: var(--r-pill); }
a.tag-x, a.tag-x:link, a.tag-x:visited { color: var(--faint); text-decoration: none; font-weight: 800; line-height: 1; }
.tag-x:hover { color: oklch(56% 0.16 25); }
.tag-add { width: 66px; height: 24px; padding: 0 8px; border: 1px dashed var(--line); border-radius: var(--r-pill); background: transparent; color: var(--text); font-family: var(--font-display); font-size: 0.72rem; }
.tag-add:focus { outline: none; border-color: var(--brand); border-style: solid; }
/* --- M3: member-posted video — click-to-play facade (nothing loads until the click) --- */
.vfacade, .vplayer { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.vfacade.in-post { max-width: 560px; margin: 14px 0; }
.vfacade { border: 1px solid var(--line); padding: 0; cursor: pointer; background: var(--surface-2); text-decoration: none; color: inherit; }
.vfacade:hover { border-color: var(--brand); }
.vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vfacade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, oklch(18% 0.04 262 / 0.5)); z-index: 1; }
.vplay { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); background: oklch(100% 0 0 / 0.92); box-shadow: 0 6px 20px oklch(20% 0.04 262 / 0.35); transition: transform .16s ease, background-color .16s ease; z-index: 2; }
.vplay svg { margin-left: 3px; }
.vfacade:hover .vplay { transform: scale(1.08); background: #fff; }
.vfacade:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.vdur { position: absolute; right: 8px; bottom: 8px; z-index: 2; background: oklch(18% 0.02 262 / 0.85); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.vplayer { border: 1px solid var(--line); background: #000; }
.vplayer video, .vplayer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* homepage "Community Videos" section (server-rendered from recent posts containing videos) */
.vids { margin: 32px 0; }
.vids-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.vids-head h2 { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.vids-note { margin: 4px 0 0; font-size: 0.86rem; color: var(--muted); max-width: 64ch; line-height: 1.5; }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vcard { display: flex; flex-direction: column; gap: 8px; }
.vcard .vfacade { margin: 0; max-width: none; }
.vcard-t { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink); text-decoration: none; line-height: 1.3; }
.vcard-t:hover { color: var(--brand); }
.vcard-by { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 940px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vgrid { grid-template-columns: 1fr; } .vids-head { flex-direction: column; } }
/* composer "Add video" toolbar (injected by swh.js above the post editor) */
.swh-compose-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.swh-addvid { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 8px; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.swh-addvid:hover { border-color: var(--brand); color: var(--brand); }
.swh-compose-hint { color: var(--muted); font-size: 0.8rem; }
/* --- M3: follow / unfollow (button next to the poster). Both labels render; the .on
       class (server-set, JS-toggled) swaps fill + which label shows. --- */
.follow-btn.on .fl-off, .follow-btn:not(.on) .fl-on { display: none; }
a.follow-btn, a.follow-btn:link, a.follow-btn:visited { border-color: color-mix(in oklch, var(--brand) 40%, transparent); color: var(--brand); }
.follow-btn:hover { background: var(--brand-tint); color: var(--brand); }
a.follow-btn.on, a.follow-btn.on:link, a.follow-btn.on:visited { background: var(--brand); border-color: var(--brand); color: #fff; }
.follow-btn.on:hover { opacity: 0.9; color: #fff; }
/* Follow relocated next to the poster's name (client request): compact inline chip. */
.follow-btn.follow-inline { height: 22px; padding: 0 9px; margin-left: 10px; font-size: 0.72rem; vertical-align: middle; position: relative; top: -1px; }
.follow-btn.follow-inline .msg-ico { width: 13px; height: 13px; }
/* --- M3: per-post emoji reactions (Slack-style pills, matches the approved mock) --- */
.reactions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 10px; padding: 0; border: 0; background: none; }
.reaction { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-pill); font-family: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1; color: var(--muted); cursor: pointer; text-decoration: none; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
a.reaction, a.reaction:link, a.reaction:visited { color: var(--muted); }
.reaction .rc { font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.reaction:hover { border-color: var(--brand); text-decoration: none; }
.reaction.is-active, a.reaction.is-active:link, a.reaction.is-active:visited { border-color: var(--accent-fill); background: var(--brand-tint); color: var(--brand-strong); }
/* The three reactions (👍 🔥 💯) always show on every post, matching the mock, so members
   have an obvious one-tap way to react even before a post has any reactions. */
.reaction__emoji { font-size: 0.95rem; line-height: 1; }
.reaction__count { font-size: 0.82rem; font-variant-numeric: tabular-nums; }

/* On the thread page the big title already shows the subject, so stop the breadcrumb at the
   board (drop its trailing current-subject segment + separator) to match the mock. */
.thread-title ~ .crumb .crumb-cur, .thread-title ~ .crumb .crumb-sep:has(+ .crumb-cur) { display: none; }
/* Guest "Join the conversation" CTA on the thread page (logged-out visitors). */
.guest-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 4px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.guest-cta__x { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guest-cta__x strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.guest-cta__x span { font-size: 0.88rem; color: var(--muted); }
.guest-cta__a { display: flex; gap: 8px; flex-wrap: wrap; }
/* Visible thread title (mock-style) — the swh-sr-h1 marker no longer means hidden here. */
.thread-title { position: static; width: auto; height: auto; margin: 14px 0 6px; clip: auto; clip-path: none; overflow: visible; white-space: normal; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.1rem); color: var(--ink); letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }

/* ===== Fable audit fixes ===== */
#ShowLinks { display: none !important; }   /* stock "Show: Today's Messages :: Unanswered :: Polls :: Message Navigator" bar (not in the mock) */
.wa.ac:has(a[onclick*="page_top"]) { display: none !important; }   /* stock "-=] Back to Top [=-" control */
/* Breadcrumb: drop the stock "Public Forums" category level (mock: Forums > board). */
.crumb a.crumb-lnk[href*="cat="], .crumb a.crumb-lnk[href*="cat="] + .crumb-sep { display: none !important; }
/* Post rail: hide the repetitive generic rank badge ("Junior Member") — not meaningful across the seed. */
.post__aside .ctags { display: none; }
/* Round all avatar images (the member profile shipped a square one; everything else is round). */
img[src*="/images/avatars/"] { border-radius: 50%; object-fit: cover; }
/* Thread: hide the stock "Previous Topic: / Next Topic:" table below the posts (its cells are
   td.ar.GenText WITHOUT .nw; the New Topic/Post Reply toolbar cell has .nw, so it's spared). */
table.wa:has(td.GenText.ar:not(.nw)) { display: none !important; }

/* ===== Thread post — rebuilt as the mock's post card (vote rail + author beside the body) ===== */
.post-cell { padding: 0; border: 0; background: none; }
.post { display: grid; grid-template-columns: auto 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 22px; margin: 0 0 18px; }
.post__aside { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; width: 108px; min-width: 0; text-align: center; }
.post__tags { margin: 0 0 8px; }
.post__tags .MsgSubText { display: none; } /* subject already shown as the page title */
.post__tags .thread-meta { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vote { display: flex; flex-direction: column; align-items: center; gap: 0; margin-bottom: 0.2rem; }
.vote__btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--faint); transition: color .12s ease, background-color .12s ease; }
.vote__up:hover { color: var(--vote-up); background: color-mix(in srgb, var(--vote-up) 16%, transparent); }
.vote__down:hover { color: var(--vote-down); background: color-mix(in srgb, var(--vote-down) 16%, transparent); }
.vote__up.on, .vote__up.is-active { color: var(--vote-up); }
.vote__down.on, .vote__down.is-active { color: var(--vote-down); }
.vote__btn svg { width: 17px; height: 17px; }
.vote__score { font-weight: 800; font-size: 0.95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.post__avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); flex: none; }
.post__avatar img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; display: block; }
.post__avatar-ph { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); }
.post__author, .post__author a { font-weight: 700; font-size: 0.74rem; color: var(--ink); line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.post__author a:hover { color: var(--brand-strong); }
.post__aside .ctags { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-strong); background: var(--brand-tint); border: 1px solid var(--line); border-radius: 6px; padding: 0.12rem 0.4rem; white-space: normal; overflow-wrap: anywhere; text-align: center; line-height: 1.25; max-width: 100%; }
.post__body { min-width: 0; }
.post__head { display: flex; align-items: center; gap: 0.6rem; justify-content: space-between; margin-bottom: 0.5rem; flex-wrap: wrap; }
.post__meta { font-size: 0.8rem; color: var(--muted); }
.post__no { color: var(--brand-strong); font-weight: 700; }
.post__subject { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.post__content { color: var(--text); line-height: 1.6; }
.post__content p { margin: 0 0 0.8rem; }
.post__content p:last-child { margin-bottom: 0; }
.follow { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 34px; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; font-size: 0.8rem; cursor: pointer; text-decoration: none; }
.follow:hover { color: var(--ink); border-color: var(--brand); }
.follow.on { color: var(--brand-strong); border-color: var(--brand); background: var(--brand-tint); }
.follow .fl-on { display: none; }
.follow.on .fl-off { display: none; }
.follow.on .fl-on { display: inline; }
.post__actions { display: flex; gap: 0.5rem; margin-top: 14px; flex-wrap: wrap; }
.post__actions .msg-act { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; padding: 0.4rem 0.8rem; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: 0.82rem; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.post__actions .msg-act:hover { color: var(--ink); border-color: var(--brand); }
.post__actions .msg-act.msg-act-danger:hover { color: var(--badge-hot, #c0392b); border-color: currentColor; }
.post__actions .msg-ico { width: 15px; height: 15px; }
/* Footer bar at the bottom of the card: reactions on the left, Reply/Quote/Share on the right,
   spanning the full card width (under the member rail too). */
.post__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.post__foot-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.post__foot-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.post__foot .reactions { margin: 0; }
.post__foot .post__actions { margin: 0; }
.post .swh-ad-inpost, .post-cell .swh-ad-inpost { margin: 0 0 18px; }
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .post__aside { flex-direction: row; width: auto; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 0.6rem; }
  .vote { flex-direction: row; margin-bottom: 0; }
}
/* --- Message / thread page: uses the full site container width (1440px), same as the home
       page — wide content column with modest side gutters (client wants it much wider). --- */
.content > table[width="100%"]:has(.MsgTable) { max-width: var(--container); }
table.wa:has(.act-btn) { margin-bottom: 20px; }
/* --- PM view (t=pmsg_view): the message row's lone <td> carries no colspan while the
       header row is colspan=2, so table-layout:fixed pinned the message card to column 1
       (~half width). Stack that ContentTable as blocks so every row spans the full width.
       Scoped via the DIRECT td > .MsgTable chain, which only the PM view has (the thread
       page interposes td.MsgSpacer). --- */
.ContentTable:has(> tbody > tr > td > .MsgTable),
.ContentTable:has(> tbody > tr > td > .MsgTable) > tbody,
.ContentTable:has(> tbody > tr > td > .MsgTable) > tbody > tr,
.ContentTable:has(> tbody > tr > td > .MsgTable) > tbody > tr > th,
.ContentTable:has(> tbody > tr > td > .MsgTable) > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; }
.MsgBodyText { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.65; color: var(--text); }
.MsgBodyText pre, .MsgBodyText code, .MsgBodyText tt, .MsgBodyText kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
.MsgSubText, a.MsgSubText, a.MsgSubText:link, a.MsgSubText:visited { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
/* --- Dialog / error / confirmation boxes (error.tmpl DialogTable) — FUDforum base paints these
       white; map to theme surfaces so dark mode stays consistent everywhere --- */
.ctb { padding: 4px 0; }
.DialogTable { width: 100%; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.DialogTable th { background: var(--surface-2); color: var(--ink); text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; padding: 13px 18px; border-bottom: 1px solid var(--line); text-transform: none; }
.DialogTable td, .DialogTable td.GenText, .DialogTable tr.RowStyleA td { background: var(--surface); color: var(--text); padding: 22px 18px; }
.DialogTable a { color: var(--brand); }
/* --- MiniTable (Buddy List / Ignore List / E-mail-to-friend boxes) — same dark-mode treatment --- */
.MiniTable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); border-collapse: separate; border-spacing: 0; overflow: hidden; max-width: 640px; margin: 6px 0; }
.MiniTable th, .MiniTable th.nw { background: var(--surface-2); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; text-align: left; padding: 12px 16px !important; border: 0; border-bottom: 1px solid var(--line); text-transform: none; }
.MiniTable td, .MiniTable td.nw { background: var(--surface); color: var(--text); padding: 11px 16px; }
.MiniTable a { color: var(--brand); }
.MiniTable input[type="text"], .MiniTable input[type="password"], .MiniTable input[type="email"], .MiniTable select, .MiniTable textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); color: var(--ink); font-family: var(--font-body); }
.MiniTable input:focus, .MiniTable select:focus, .MiniTable textarea:focus { outline: none; border-color: var(--brand); }
/* --- Popup pages (Move topic, etc.) served via header_plain (no top nav): give the plain content
       breathing room and theme the move-target list; swh.js now applies the saved theme there too. --- */
body:not(:has(.swh-nav)) .content { padding: 22px 24px; max-width: 720px; margin: 0 auto; }
.mvTc, .mvTc a, table.mvTc a, td.mvTc a { color: var(--brand); text-decoration: none; }
.mvTc a:hover, td.mvTc a:hover { text-decoration: underline; color: var(--brand-strong); }
table.wa.dashed td, table.wa.dashed th { border-color: var(--line); }
/* --- Message poster avatar: match the feed avatar (circular, cover, no ring) — never an "egg" --- */
/* Match the feed avatar exactly (42px circle). The global img{max-width:100%} was capping the
   width to the narrow table cell, squishing it into an oval — force square + lift the cap. */
.avatarPad img { width: 42px !important; height: 42px !important; min-width: 42px; max-width: none !important; border-radius: 50%; object-fit: cover; display: block; box-shadow: none; background: var(--surface-2); }

/* ---- Dark-mode base-color fixes: FUDforum hardcodes dark text (#000/#202020) on many
   classes, which vanish on dark surfaces. Map them to theme tokens so they adapt. ---- */
a.CatLink { color: var(--ink); }
a.CatLink:hover { color: var(--brand); }
.MsgIg, td.repI, .AnnText, blockquote, .quote { color: var(--text); }
.SmallText, .DateText, .TopBy, td.permYES, td.permNO, .SmallText a, cite, .signature, td.msgud, td.msgot, td.msgot a, div.ctags { color: var(--muted); }

/* ===== Stock FUDforum GIF buttons + widgets → dark-safe swh styling =====
   Stock pages (tree view, private messages, members, post form) render raw pixelated GIF
   buttons and hardcoded-white widget backgrounds that look broken in dark mode. Reskin via
   CSS only — a template override would re-trigger stock duplicate-section compile aborts.
   Requires :has() (all target browsers support it). */

/* -- toolbar buttons: hide the GIF, render a labelled pill. Outline = secondary
      (New Topic / Tree View / Flat View, matching the flat-view msg toolbar); filled =
      the page's primary action (Post Reply / New Message). -- */
a > img[src$="new_thread.gif"], a > img[src$="tree_view.gif"], a > img[src$="flat_view.gif"],
a > img[src$="post_reply.gif"], a > img[src$="new_pm.gif"] { display: none; }
a:has(> img[src$="new_thread.gif"]), a:has(> img[src$="tree_view.gif"]), a:has(> img[src$="flat_view.gif"]),
a:has(> img[src$="post_reply.gif"]), a:has(> img[src$="new_pm.gif"]) {
  display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: var(--r);
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; text-decoration: none;
  vertical-align: middle; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
a:has(> img[src$="new_thread.gif"]):hover, a:has(> img[src$="tree_view.gif"]):hover, a:has(> img[src$="flat_view.gif"]):hover {
  border-color: var(--brand); color: var(--brand);
}
a:has(> img[src$="new_thread.gif"])::after { content: "New Topic"; }
a:has(> img[src$="tree_view.gif"])::after { content: "Tree View"; }
a:has(> img[src$="flat_view.gif"])::after { content: "Flat View"; }
a:has(> img[src$="post_reply.gif"]), a:has(> img[src$="new_pm.gif"]) { background: var(--accent-fill); border-color: transparent; color: #fff; }
a:has(> img[src$="post_reply.gif"]):hover, a:has(> img[src$="new_pm.gif"]):hover { background: var(--accent-fill-strong, var(--brand-strong)); color: #fff; }
a:has(> img[src$="post_reply.gif"])::after { content: "Post Reply"; }
a:has(> img[src$="new_pm.gif"])::after { content: "New Message"; }

/* -- per-row / per-post action icon-links → small labelled chips (members list + PM view,
      mirroring the flat-view message toolbar so actions read the same everywhere). -- */
a > img[src$="show_posts.gif"], a > img[src$="msg_email.gif"], a > img[src$="msg_reply.gif"],
a > img[src$="msg_quote.gif"], a > img[src$="msg_forward.gif"], a > img[src$="msg_edit.gif"],
a > img[src$="msg_delete.gif"], a > img[src$="msg_about.gif"], a > img[src$="msg_pm.gif"] { display: none; }
a:has(> img[src$="show_posts.gif"]), a:has(> img[src$="msg_email.gif"]), a:has(> img[src$="msg_reply.gif"]),
a:has(> img[src$="msg_quote.gif"]), a:has(> img[src$="msg_forward.gif"]), a:has(> img[src$="msg_edit.gif"]),
a:has(> img[src$="msg_delete.gif"]), a:has(> img[src$="msg_about.gif"]), a:has(> img[src$="msg_pm.gif"]) {
  display: inline-flex; align-items: center; height: 26px; padding: 0 9px; margin: 2px; border-radius: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.76rem; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
a:has(> img[src$="show_posts.gif"]):hover, a:has(> img[src$="msg_email.gif"]):hover, a:has(> img[src$="msg_reply.gif"]):hover,
a:has(> img[src$="msg_quote.gif"]):hover, a:has(> img[src$="msg_forward.gif"]):hover, a:has(> img[src$="msg_edit.gif"]):hover,
a:has(> img[src$="msg_delete.gif"]):hover, a:has(> img[src$="msg_about.gif"]):hover, a:has(> img[src$="msg_pm.gif"]):hover {
  border-color: var(--brand); color: var(--brand); background: var(--brand-tint);
}
a:has(> img[src$="show_posts.gif"])::after { content: "Posts"; }
a:has(> img[src$="msg_email.gif"])::after { content: "Email"; }
a:has(> img[src$="msg_reply.gif"])::after { content: "Reply"; }
a:has(> img[src$="msg_quote.gif"])::after { content: "Quote"; }
a:has(> img[src$="msg_forward.gif"])::after { content: "Forward"; }
a:has(> img[src$="msg_edit.gif"])::after { content: "Edit"; }
a:has(> img[src$="msg_delete.gif"])::after { content: "Delete"; }
a:has(> img[src$="msg_about.gif"])::after { content: "Profile"; }
a:has(> img[src$="msg_pm.gif"])::after { content: "PM"; }

/* -- small utility icons (goto last post / prev / RSS / PDF): keep the glyph but drop the
      raw-on-white look — small, dimmed, on a themed hover chip. -- */
a:has(> img[src$="goto.gif"]), a:has(> img[src$="goback.gif"]), a:has(> img[src$="rss.gif"]), a:has(> img[src$="pdf.gif"]) {
  display: inline-flex; align-items: center; justify-content: center; padding: 3px; border-radius: 5px; vertical-align: middle;
}
a:has(> img[src$="goto.gif"]):hover, a:has(> img[src$="goback.gif"]):hover, a:has(> img[src$="rss.gif"]):hover, a:has(> img[src$="pdf.gif"]):hover { background: var(--brand-tint); }
/* goto/goback ship as tiny 9x9 GIFs; scaling them up trips Lighthouse "low-res image", so hide
   them and use a crisp chevron glyph instead (the link keeps its accessible name via aria-label). */
a > img[src$="goto.gif"], a > img[src$="goback.gif"] { display: none; }
a:has(> img[src$="goto.gif"])::after { content: "\00BB"; font-weight: 700; color: var(--muted); line-height: 1; }
a:has(> img[src$="goback.gif"])::after { content: "\00AB"; font-weight: 700; color: var(--muted); line-height: 1; }
a > img[src$="rss.gif"], a > img[src$="pdf.gif"] { width: 15px; height: 15px; opacity: 0.7; }

/* -- white-box widgets → theme the hardcoded backgrounds (dark-mode fix) -- */
/* Private-message "folders are N% full" gauge (pmsg.tmpl: table.pmDu / td.pmSn|pmSa|pmSf). */
table.pmDu { background: var(--surface-2) !important; border: 1px solid var(--line); border-radius: 6px; }
td.pmSn { background: var(--line) !important; }                      /* empty track (was #fff) */
td.pmSa { background: var(--brand) !important; }                     /* used (was #fffa00) */
td.pmSf { background: oklch(58% 0.17 25) !important; }               /* full/over (was red)  */
/* BBcode formatting toolbar chrome (post / quick-reply: .FormattingToolsCLR / .FormattingToolsBG). */
.FormattingToolsCLR, .FormattingToolsBG { background: var(--surface-2) !important; border-color: var(--line) !important; }
.FormattingToolsCLR:hover { background: var(--brand-tint) !important; }
/* "New Message" button (PM pages) sits in a bare right-aligned div flush against the folder
   gauge + the message table — give it vertical breathing room. */
div.ar:has(> a > img[src$="new_pm.gif"]) { margin: 14px 0; }

/* Advanced search form (t=search): FUDforum's float+table layout overlaps under the
   themed styles. Stack the whole form cleanly (block cells + rows), hide the redundant
   stacked column header. Scoped to the search table via :has(div.sr). */
div.sr { float: none; display: block; padding: 8px 0 0; }
div.sr select, div.sr input[type="text"] { margin-top: 4px; }
.ContentTable:has(div.sr) td { display: block; width: auto; }
.ContentTable:has(div.sr) th { display: none; }
.ContentTable:has(div.sr) input[type="search"] { min-width: 240px; }

/* Breadcrumb (forum path) — mock style: back arrow, "/" separators, muted. */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 0.86rem; color: var(--muted); margin: 2px 0 6px; }
.crumb-lnk, a.crumb-lnk:link, a.crumb-lnk:visited { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumb-lnk:hover { color: var(--brand); text-decoration: none; }
.crumb-home { font-weight: 600; }
.crumb-sep { color: var(--faint); }
.crumb-cur { color: var(--ink); font-weight: 600; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-arrow { width: 15px; height: 15px; flex: none; }

/* Lighthouse best-practices: FUDforum ships a couple of decorative icons with a declared
   width/height that doesn't match the file's native ratio. Let them size naturally. */
a.thLnk, a.thLnk:link, a.thLnk:visited { color: var(--text); }
img[src*="/theme/default/images/top_"], img[src$="goto.gif"], img[src$="rss.gif"], img[src$="pager.gif"] { height: auto; }

/* ============ mobile / overflow safety ============ */
html { overflow-x: hidden; }
body, .content { max-width: 100%; }
/* Legacy inline login table is redundant on the home page (the header Sign in / Register and
   the "Join the Community" card already cover it) and was the main source of mobile horizontal
   overflow. Hide it; login stays reachable from the header and the Join card. */
.home-quicklogin { display: none; }
/* NOTE: do NOT cap `.content > table` at max-width:100% here — it would defeat the
   `max-width: var(--container)` centering cap on line ~163 (equal specificity, later wins)
   and stretch the home page full-width. The table is already width:100% + table-layout:fixed,
   so it cannot overflow its parent; the container cap is what keeps it centered. */
.content > table[width="100%"] > tbody > tr > td { max-width: 100%; }
.ContentTable, .MsgTable { table-layout: fixed; }
.MsgBodyText, .cat-desc, .row td { overflow-wrap: anywhere; word-break: break-word; }
img { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .nav-inner { gap: 10px; padding: 0 14px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 16px; }
  .brand-mark { height: 38px; width: auto; }
  .nav-actions { gap: 8px; }
  .nav-actions a.btn-outline { display: none; }
  .btn { height: 44px; padding: 0 12px; font-size: 13px; }
  .theme-toggle { width: 44px; height: 44px; }
  .page { padding: 16px; }
  .hero-inner { padding: 26px 16px; }
  .hero-inner h1 { font-size: 1.45rem; }
  .hero-search { flex-direction: column; gap: 6px; }
  .hero-search .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-col { grid-column: 1; }
  /* Discussions header: let the title and the filter tabs stack, and let the tab row scroll
     inside its own bounds instead of pushing the page wider. */
  .s-head { flex-wrap: wrap; gap: 10px; }
  .s-tabs { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .s-tabs::-webkit-scrollbar { display: none; }
  .s-tab { white-space: nowrap; }
  /* Bylines: allow wrapping instead of forcing a nowrap line wider than the viewport. */
  .s-byline { flex-wrap: wrap; white-space: normal; min-width: 0; }
  .s-status, .s-counts { min-width: 0; }
}

/* ── Team color changer: accent-driven token routing ─────────────────── */
:root{ --accent: #2563eb;
  --accent-fill: var(--accent);
  --accent-fill-strong: color-mix(in srgb, var(--accent) 84%, #000);
  --brand: color-mix(in srgb, var(--accent) 88%, #000);
  --brand-strong: color-mix(in srgb, var(--accent) 74%, #000);
  --ring: color-mix(in srgb, var(--accent) 42%, transparent);
  --brand-tint: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --brand-tint-2: color-mix(in srgb, var(--accent) 16%, var(--surface));
  --bg: color-mix(in srgb, var(--accent) 8%, #ffffff);
  --surface: color-mix(in srgb, var(--accent) 3%, #ffffff);
  --surface-2: color-mix(in srgb, var(--accent) 7%, #ffffff);
  --nav-bg: color-mix(in srgb, var(--accent) 8%, #ffffff);
  --ink: color-mix(in srgb, var(--accent) 14%, #0a1220);
  --text: color-mix(in srgb, var(--accent) 18%, #363d47);
  --muted: color-mix(in srgb, var(--accent) 22%, #55627a);
  --faint: color-mix(in srgb, var(--accent) 22%, #646d80);
  --line: color-mix(in srgb, var(--accent) 20%, #dbe1ec);
  --line-soft: color-mix(in srgb, var(--accent) 12%, #e6eaf1); }
:root[data-theme="dark"]{ --accent: #2563eb;
  --accent-fill: var(--accent);
  --accent-fill-strong: color-mix(in srgb, var(--accent) 82%, #000);
  --brand: color-mix(in srgb, var(--accent) 82%, #fff);
  --brand-strong: color-mix(in srgb, var(--accent) 60%, #fff);
  --bg: color-mix(in srgb, var(--accent) 16%, #060a12);
  --surface: color-mix(in srgb, var(--accent) 14%, #0b1018);
  --surface-2: color-mix(in srgb, var(--accent) 20%, #0e131d);
  --nav-bg: color-mix(in srgb, var(--accent) 16%, #070b12);
  --ink: #ffffff;
  --text: color-mix(in srgb, var(--accent) 22%, #d5dae2);
  --muted: color-mix(in srgb, var(--accent) 28%, #8a94a6);
  --faint: color-mix(in srgb, var(--accent) 28%, #6f7887);
  --line: color-mix(in srgb, var(--accent) 24%, #222c3d);
  --line-soft: color-mix(in srgb, var(--accent) 18%, #182130); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --accent: #2563eb;
  --accent-fill: var(--accent);
  --accent-fill-strong: color-mix(in srgb, var(--accent) 82%, #000);
  --brand: color-mix(in srgb, var(--accent) 82%, #fff);
  --brand-strong: color-mix(in srgb, var(--accent) 60%, #fff);
  --bg: color-mix(in srgb, var(--accent) 16%, #060a12);
  --surface: color-mix(in srgb, var(--accent) 14%, #0b1018);
  --surface-2: color-mix(in srgb, var(--accent) 20%, #0e131d);
  --nav-bg: color-mix(in srgb, var(--accent) 16%, #070b12);
  --ink: #ffffff;
  --text: color-mix(in srgb, var(--accent) 22%, #d5dae2);
  --muted: color-mix(in srgb, var(--accent) 28%, #8a94a6);
  --faint: color-mix(in srgb, var(--accent) 28%, #6f7887);
  --line: color-mix(in srgb, var(--accent) 24%, #222c3d);
  --line-soft: color-mix(in srgb, var(--accent) 18%, #182130); } }

/* team color changer popover (mirrors .login-pop) */
.color-cb{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; margin:0; }
.color-open{ cursor:pointer; display:inline-grid; place-items:center; width:44px; height:44px; border-radius:var(--r); border:1px solid var(--line); background:var(--surface); }
.color-open .cdot{ width:16px; height:16px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.color-pop{ display:none; position:absolute; top:calc(100% + 8px); right:0; z-index:60; width:244px; padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-2); }
.nav-actions:has(.color-cb:checked) .color-pop{ display:block; }
.color-pop-t{ font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; color:var(--muted); margin:0 0 10px; }
.swatches{ display:grid; grid-template-columns:repeat(5,1fr); gap:9px; }
.swatch{ width:100%; aspect-ratio:1; border-radius:50%; border:2px solid var(--line); cursor:pointer; padding:0; }
.swatch:hover{ transform:scale(1.08); }
.swatch[aria-pressed="true"]{ box-shadow:0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.color-pop-note{ margin:10px 0 0; font-size:.72rem; color:var(--muted); line-height:1.4; }
/* ── Live scores strip (ESPN scoreboard, client-side) ──────────────────── */
.scores{ background:#0a0e13; color:#cbd5e1; border-bottom:1px solid rgba(255,255,255,.08); min-height:68px; }
.scores__inner{ max-width:var(--container); margin-inline:auto; display:flex; align-items:stretch; gap:0; padding-inline:16px; }
.scores__label{ flex:0 0 auto; display:flex; flex-direction:column; justify-content:center; padding:.55rem 16px .55rem 0; border-right:1px solid rgba(255,255,255,.08); line-height:1.15; }
.scores__gameday{ color:color-mix(in srgb, var(--accent) 45%, #fff); font-weight:800; text-transform:uppercase; letter-spacing:.1em; font-size:.72rem; font-family:var(--font-display); }
.scores__date{ color:#8a94a6; text-transform:uppercase; letter-spacing:.08em; font-size:.68rem; }
.scores__track{ flex:1 1 auto; display:flex; align-items:stretch; gap:0; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.2) transparent; cursor:grab; }
.scores__track::-webkit-scrollbar{ height:6px; }
.scores__track::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.2); border-radius:999px; }
.score-cell{ flex:0 0 auto; display:flex; flex-direction:column; gap:.12rem; padding:.4rem 18px; border-right:1px solid rgba(255,255,255,.08); min-width:132px; }
.score-cell__state{ font-size:.64rem; text-transform:uppercase; letter-spacing:.09em; color:#8a94a6; font-weight:700; margin-bottom:.1rem; }
.score-cell__state.is-live{ color:color-mix(in srgb, var(--accent) 45%, #fff); }
.score-row{ display:flex; align-items:center; gap:.5rem; font-size:.82rem; line-height:1.35; color:#cbd5e1; }
.score-row__score{ margin-left:auto; font-weight:700; font-variant-numeric:tabular-nums; }
.score-row.is-lead, .score-row.is-lead .score-row__score{ color:#fff; }
.helmet{ flex:0 0 auto; width:18px; height:18px; display:block; }
.scores__all{ flex:0 0 auto; display:inline-flex; align-items:center; gap:.35rem; padding:0 16px; color:#cbd5e1; font-size:.76rem; font-weight:600; white-space:nowrap; text-decoration:none; border-left:1px solid rgba(255,255,255,.08); }
a.scores__all, a.scores__all:link, a.scores__all:visited{ color:#cbd5e1; }
.scores__all svg{ width:16px; height:16px; }
.scores__all:hover, a.scores__all:hover{ color:color-mix(in srgb, var(--accent) 45%, #fff); }
/* ── Hero (ported 1:1 from the mock: bg photo + flanking figures + content) ── */
.hero{ --hero-text:#fff; --hero-muted:#e2e9f5; --hero-gold:color-mix(in srgb, var(--accent) 55%, #ffffff); --hero-field-bg:rgba(9,16,28,.62); --hero-field-border:color-mix(in srgb, var(--accent) 55%, transparent);
  position:relative; isolation:isolate; min-height:clamp(400px,40vw,520px); display:flex; align-items:center; justify-content:center; overflow:hidden;
  background:radial-gradient(120% 80% at 50% -18%, rgba(255,255,255,.30), transparent 46%), linear-gradient(180deg, color-mix(in srgb,var(--accent) 72%,#ffffff) 0%, var(--accent) 50%, color-mix(in srgb,var(--accent) 72%,#000) 100%); }
.hero__bg{ position:absolute; inset:0; z-index:-2; }
.hero__bg img{ width:100%; height:100%; object-fit:cover; object-position:center; }
.hero__scrim{ position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(6,9,13,.78) 0%, rgba(6,9,13,.28) 34%, rgba(6,9,13,.30) 62%, rgba(6,9,13,.72) 100%); }
.hero__content{ position:relative; z-index:1; width:100%; max-width:780px; padding:3rem 1rem; text-align:center; }
.hero__eyebrow{ color:var(--hero-gold); font-weight:800; text-transform:uppercase; letter-spacing:.14em; font-size:.82rem; margin-bottom:.75rem; text-shadow:0 1px 10px rgba(0,0,0,.5); }
.hero__title{ color:var(--hero-text); font-family:var(--font-display); font-weight:800; font-size:clamp(2.1rem,5vw,3.5rem); line-height:.98; letter-spacing:.005em; text-shadow:0 2px 18px rgba(0,0,0,.55); margin:0 0 1rem; }
.hero__lead{ color:var(--hero-muted); font-size:clamp(1rem,1.6vw,1.16rem); line-height:1.5; max-width:660px; margin:0 auto 1.5rem; text-shadow:0 1px 12px rgba(0,0,0,.55); }
.hero__search{ margin:0 auto 1rem; max-width:620px; }
.hero__search .search{ display:flex; align-items:center; gap:.6rem; background:var(--hero-field-bg); border:1.5px solid var(--hero-field-border); border-radius:999px; padding:.35rem .5rem .35rem 1.1rem; box-shadow:0 0 0 1px rgba(0,0,0,.3), 0 0 26px color-mix(in srgb,var(--accent) 30%,transparent), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter:blur(4px); }
.hero__search .search__icon{ flex:0 0 auto; width:22px; height:22px; color:var(--hero-gold); }
.hero__search .search__input{ flex:1 1 auto; min-width:0; background:transparent; border:0; outline:none; color:var(--hero-text); font-size:1.05rem; padding:.55rem 0; min-height:44px; }
.hero__search .search__input::placeholder{ color:var(--hero-muted); }
.hero__search .search:focus-within{ border-color:var(--hero-gold); box-shadow:0 0 0 1px rgba(0,0,0,.3), 0 0 32px color-mix(in srgb,var(--accent) 50%,transparent); }
.hero__search .search__btn{ flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 1.15rem; border:0; cursor:pointer; background:var(--accent); color:#fff; font-weight:800; border-radius:999px; font-family:var(--font-display); }
.hero__search .search__btn:hover{ filter:brightness(1.08); }
.hero .chips{ list-style:none; margin:1rem 0 0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; }
.hero .chip{ display:inline-flex; align-items:center; min-height:38px; padding:.45rem .9rem; border-radius:999px; cursor:pointer; background:rgba(10,14,20,.55); border:1px solid rgba(255,255,255,.16); color:var(--hero-muted); font-weight:600; font-size:.85rem; backdrop-filter:blur(3px); text-decoration:none; }
.hero .chip:hover{ color:var(--hero-text); border-color:color-mix(in srgb,var(--accent) 60%,transparent); }
.hero .chip.is-active{ color:#fff; background:var(--accent); border-color:var(--accent); font-weight:700; }
.hero__cta-row{ margin-top:1.5rem; display:flex; justify-content:center; }
.hero__signup, .hero__signup:link, .hero__signup:visited, .hero__signup:hover{ min-height:56px; padding:0 2.2rem; font-size:1.25rem; letter-spacing:.02em; background:var(--accent); color:#fff; border:0; border-radius:999px; font-family:var(--font-display); font-weight:800; cursor:pointer; box-shadow:0 0 26px -6px rgba(0,0,0,.6); text-decoration:none; display:inline-flex; align-items:center; }
.hero__figure{ position:absolute; bottom:0; z-index:0; height:88%; width:auto; max-width:26%; object-fit:contain; object-position:bottom center; pointer-events:none; user-select:none; filter:drop-shadow(0 12px 28px rgba(0,0,0,.45)); }
.hero__figure--left{ left:max(8px, calc(50% - 660px)); }
.hero__figure--right{ right:max(8px, calc(50% - 660px)); }
@media (max-width:1200px){ .hero__figure{ display:none; } }
/* nav 1:1 with mock: Inter on nav links + buttons (brand name + headings stay display) */
.nav-links a{ font-family:var(--font-body); font-weight:600; }
.nav-actions .btn, .btn-outline, .btn-primary, .login-open{ font-family:var(--font-body); font-weight:700; }
/* ── Board thread-list: match the mock (no per-topic read/folder icon; pin only for pinned) ── */
tr.row > td.wo { width: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; }
tr.row > td.wo img { display: none !important; }
tr.row td.RowStyleA a > img[src$="newposts.gif"] { display: none; }
/* sticky / announcement -> a pin marker in the site accent, like the mock */
.StClr, .AnClr { font-size: 0 !important; margin-right: 5px; vertical-align: middle; }
.StClr::before, .AnClr::before { content: ""; display: inline-block; width: 15px; height: 15px; vertical-align: -3px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6l-1 6 3 3H7l3-3-1-6ZM12 16v4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4h6l-1 6 3 3H7l3-3-1-6ZM12 16v4'/%3E%3C/svg%3E") center/contain no-repeat; }
/* Hide FUDforum's board-list status-icon legend (we hide the row status icons to match the mock) */
fieldset:has(img[src$="/read.png"]), fieldset:has(img[src$="/unread.png"]){ display:none !important; }
/* ── Sports board-card icons (topic-specific, replace the generic tech glyphs) ─────── */
.t-football{ --ct:var(--c-hw-t); --ci:var(--c-hw); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.6 18.4c-2.1-2.1-2.1-10.7 0-12.8 2.1-2.1 10.7-2.1 12.8 0 2.1 2.1 2.1 10.7 0 12.8-2.1 2.1-10.7 2.1-12.8 0Z'/%3E%3Cpath d='M9 15l6-6M9.8 12.7l1.5 1.5M11.3 11.2l1.5 1.5M12.7 9.8l1.5 1.5M6.5 15.5l2 .1-.1-2M17.5 8.5l-2-.1.1 2'/%3E%3C/svg%3E"); }
.t-trophy{ --ct:var(--c-host-t); --ci:var(--c-host); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M6 4h12v5a6 6 0 0 1-12 0z'/%3E%3Cpath d='M6 5H4a2 2 0 0 0 0 4h2M18 5h2a2 2 0 0 1 0 4h-2'/%3E%3C/svg%3E"); }
.t-soccer{ --ct:var(--c-lnx-t); --ci:var(--c-lnx); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.2l3 2.2-1.1 3.5h-3.8L9 9.4z'/%3E%3Cpath d='M12 7.2V3.4M15 9.4l3.4-1.4M13.9 12.9l2.3 3M10.1 12.9l-2.3 3M9 9.4L5.6 8'/%3E%3C/svg%3E"); }
.t-chart{ --ct:var(--c-virt-t); --ci:var(--c-virt); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h16'/%3E%3Cpath d='M7 20v-6M12 20V8M17 20v-9'/%3E%3C/svg%3E"); }
.t-score{ --ct:var(--c-net-t); --ci:var(--c-net); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='11' rx='2'/%3E%3Cpath d='M8 16v3M16 16v3M6 19h12'/%3E%3Cpath d='M8 9v3M9.5 9v3M14.5 9v3M16 9v3M12 9.5v.01M12 11.5v.01'/%3E%3C/svg%3E"); }
.t-cal{ --ct:var(--c-lnx-t); --ci:var(--c-lnx); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M8 2.5v4M16 2.5v4M7.5 13h2M11 13h2M14.5 13h2M7.5 16.5h2M11 16.5h2'/%3E%3C/svg%3E"); }
.t-star{ --ct:var(--c-beg-t); --ci:var(--c-beg); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.4 6.8 19.1l1-5.8L3.5 9.2l5.9-.9z'/%3E%3C/svg%3E"); }
.t-money{ --ct:var(--c-lnx-t); --ci:var(--c-lnx); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 6.5v11M14.6 9c-.5-1-1.5-1.5-2.6-1.5-1.5 0-2.5.8-2.5 2 0 2.6 5.2 1.3 5.2 3.9 0 1.2-1 2.1-2.7 2.1-1.2 0-2.3-.5-2.8-1.5'/%3E%3C/svg%3E"); }
.t-fire{ --ct:var(--c-sec-t); --ci:var(--c-sec); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c.5 3.5-2.5 4.5-2.5 7.5a2.5 2.5 0 0 0 5 0c0-.8-.3-1.5-.7-2 1.7 1 2.7 2.9 2.7 5a4.5 4.5 0 0 1-9 0c0-4 4-5.5 4.5-10.5z'/%3E%3C/svg%3E"); }
.t-swap{ --ct:var(--c-cloud-t); --ci:var(--c-cloud); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h13l-3.5-3.5M20 16H7l3.5 3.5'/%3E%3C/svg%3E"); }
.t-chat{ --ct:var(--c-virt-t); --ci:var(--c-virt); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H8l-4 4V5a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E"); }
.t-globe{ --ct:var(--c-net-t); --ci:var(--c-net); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18 15 15 0 0 1 0-18z'/%3E%3C/svg%3E"); }
.t-medal{ --ct:var(--c-host-t); --ci:var(--c-host); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='15' r='5'/%3E%3Cpath d='M12 13v4M10.2 15h3.6'/%3E%3Cpath d='M8.5 8.5 6 3h5l2 3.5M15.5 8.5 18 3h-5'/%3E%3C/svg%3E"); }

/* Login page: hide the empty stock reason-list bullets left after blanking
   login_cookie_expired / login_perm_denied in patch-strings (kills the "1. 2." artifact). */
ol li.GenText:empty{ display:none; }

.s-status .s-badge{ align-self: flex-end; }
#discussions{ scroll-margin-top: 92px; }

/* Home feed right meta: tidy right-aligned stack - badge, stats, author hug the right edge (no stagger, no stray avatar). */
.s-status{ flex:0 0 auto; display:flex; flex-direction:column; align-items:flex-end; gap:6px; min-width:0; text-align:right; }
.s-status .s-badge{ align-self:flex-end; }
.s-counts{ display:block; flex:none; min-width:0; text-align:right; }
.s-byline{ justify-content:flex-end; white-space:nowrap; }
@media (max-width:640px){ .s-status{ flex-basis:100%; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:6px 12px; } .s-counts,.s-byline{ text-align:left; } }

#categories{ scroll-margin-top: 92px; }

/* P3 (handover review): kill the ~8px horizontal overhang from the hero's 100vw full-bleed
   (100vw includes the scrollbar). Clip the root rather than overflow:hidden (which would
   make body a scroll container and break the sticky header). In forum.css only - this same
   block breaks the compile when inlined into the template via critical-home.css. */
html, body{ overflow-x: clip; }
@media (max-width: 560px){
  .swh-ad-body a[style*="flex"]{ flex-direction: column; text-align: center; }
  .swh-ad-body a[style*="flex"] span[style*="margin-left:auto"]{ margin-left: 0 !important; }
}

/* --- Back-to-top button (client revision 2026-09) --- */
.to-top{ position:fixed; right:16px; bottom:16px; z-index:60; width:46px; height:46px; display:grid; place-items:center; border:0; border-radius:50%; background:var(--accent); color:#fff; box-shadow:0 6px 20px -6px rgba(0,0,0,.5); cursor:pointer; opacity:0; transform:translateY(12px); pointer-events:none; transition:opacity .2s ease, transform .2s ease; }
.to-top.is-show{ opacity:1; transform:none; pointer-events:auto; }
.to-top svg{ width:22px; height:22px; fill:currentColor; }
.to-top:hover{ filter:brightness(1.08); }
@media (prefers-reduced-motion: reduce){ .to-top{ transition:none; } }

/* --- Category list collapse on mobile (Show all) --- */
.cats__toggle{ display:none; }
@media (max-width:768px){
  .swh-js .cats:not(.is-expanded) .cat-grid > *:nth-child(n+5){ display:none; }
  .swh-js .cats-viewall{ display:none; }
  .swh-js .cats__toggle{ display:inline-flex; align-items:center; justify-content:center; width:100%; min-height:44px; margin-top:.85rem; padding:.6rem 1rem; border:1px solid var(--line,#d6ddea); border-radius:12px; background:transparent; color:var(--accent); font-weight:700; font-family:var(--font-display,inherit); cursor:pointer; }
  .cats__toggle:hover{ background:var(--brand-tint,rgba(0,0,0,.03)); }
}

/* Reserve the live-scores strip height so it doesn't shift the page when it fills (CLS fix) */
.scores{ min-height:71px; }
.scores__track:empty::before{ content:""; }

/* Initial layout matches the final stylesheet before asynchronous assets arrive. */
html, body { overflow-x: clip; }
img.brand-mark { height: 44px; width: auto; aspect-ratio: 216 / 140; object-fit: contain; }
.scores { min-height: 71px; }
.scores__inner { min-height: 70px; }
.scores__label { width: 120px; }
.scores__date { min-height: 1.15em; }
.scores__track { min-width: 0; }
@media (max-width: 560px) {
  .swh-ad-header .swh-ad-body > a { flex-direction: column; text-align: center; }
  .swh-ad-header .swh-ad-body > a > span:last-child { margin-left: 0 !important; }
}
/* Improve white-button-label contrast while retaining team hues. */
:root { --action-fill: color-mix(in srgb, var(--accent) 75%, #000); }
.hero__search .search__btn, .hero .chip.is-active, a.hero__signup,
a.s-tab.is-on, .to-top { background: var(--action-fill); }
.hero a.hero__signup, .hero a.hero__signup:link, .hero a.hero__signup:visited,
.s-tabs a.s-tab.is-on, .s-tabs a.s-tab.is-on:link, .s-tabs a.s-tab.is-on:visited,
a.btn-primary, a.btn-primary:link, a.btn-primary:visited { background: var(--action-fill); }
.swh-ad:not(.swh-ad-inpost) .swh-ad-body > a > span:last-child { background: var(--action-fill) !important; }   /* 20 Nov: not the in-post ad (its last span is the text) */
:root[data-theme="dark"] { --faint: color-mix(in srgb, var(--accent) 16%, #aebbd0); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --faint: color-mix(in srgb, var(--accent) 16%, #aebbd0); }
}

/* Dark-theme link contrast, including the lower broadcast panel. */
:root[data-theme="dark"] { --brand: color-mix(in srgb, var(--accent) 65%, #fff); --muted: color-mix(in srgb, var(--accent) 16%, #b9c5d8); }
:root[data-theme="dark"] .fst-accent, :root[data-theme="dark"] .fst-broadcast__tags .hot { color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --brand: color-mix(in srgb, var(--accent) 65%, #fff); --muted: color-mix(in srgb, var(--accent) 16%, #b9c5d8); } }

/* ---- Readability (Jeff, 1 Oct 2026): bigger, darker post text; bigger, bold action buttons ---- */
.MsgBodyText, .post__content { font-size: 1.125rem; line-height: 1.7; color: var(--ink); font-weight: 450; }
.post__content p { margin: 0 0 1rem; }
a.act-btn, table.wa a.act-btn,
a:has(> img[src$="new_thread.gif"]), a:has(> img[src$="tree_view.gif"]), a:has(> img[src$="flat_view.gif"]),
a:has(> img[src$="post_reply.gif"]), a:has(> img[src$="new_pm.gif"]) {
  height: 44px; padding: 0 22px; font-family: var(--font-display) !important; font-size: 1.08rem !important;
  font-weight: 800 !important; letter-spacing: 0.02em;
}
a.act-btn-outline, a.act-btn-outline:link, a.act-btn-outline:visited { border: 2px solid var(--ink); }
/* On a board page, New Topic is the main action: filled, like Post Reply. */
a:has(> img[src$="new_thread.gif"]) { background: var(--accent-fill); border-color: transparent; color: #fff; }
a:has(> img[src$="new_thread.gif"]):hover { background: var(--accent-fill-strong, var(--brand-strong)); border-color: transparent; color: #fff; }
.act-ico { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .MsgBodyText, .post__content { font-size: 1.0625rem; }
  a.act-btn, table.wa a.act-btn,
  a:has(> img[src$="new_thread.gif"]), a:has(> img[src$="post_reply.gif"]) { height: 42px; padding: 0 16px; font-size: 1rem !important; }
}

/* ---- Latest Discussions fills the column next to the sidebar (Jeff, 10 Oct 2026): 32 topics are rendered,
   phones show 6, on desktop swh.js hides (.is-cut) the ones that would run past the bottom of the sidebar ---- */
@media (max-width: 900px) { #discussions .s-list .s-thread:nth-child(n+7) { display: none; } }
#discussions .s-list .s-thread.is-cut { display: none; }

/* ---- Fantasy Football Rankings: page index.php?t=fantasy + home "Fantasy Top 10" box (Oct 2026) ---- */
.ff-section { --ff-qb: #be123c; --ff-rb: #15803d; --ff-wr: #1d4ed8; --ff-te: #b45309; }
.ff-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; padding: 28px 30px; margin-top: 8px; border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(96,165,250,0.35) 0%, rgba(96,165,250,0) 55%), linear-gradient(135deg, #0b1733 0%, #13254a 60%, #1d3a7a 100%); box-shadow: var(--sh-1); }
.ff-eyebrow { margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: #93c5fd; }
.ff-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.05; letter-spacing: -0.01em; color: #fff; }
.ff-hero-sub { margin: 8px 0 0; font-size: 1.05rem; font-weight: 600; color: #dbeafe; }
.ff-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-fact { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); font-size: 0.86rem; color: #dbeafe; white-space: nowrap; }
.ff-fact b { color: #fff; font-family: var(--font-display); font-size: 1rem; font-weight: 800; }
.ff-controls { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 18px 0 18px; }
/* Page intros (Jeff 19 Oct): a short paragraph under the board title / the data-page hero. */
.board-intro, .page-intro { max-width: none; margin: 0 0 18px; font-size: 1rem; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.page-intro { margin: 18px 0 0; }
.ff-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ff-tabs-l { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-right: 4px; }
a.ff-tab, a.ff-tab:link, a.ff-tab:visited { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
a.ff-tab:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
a.ff-tab.is-on, a.ff-tab.is-on:link, a.ff-tab.is-on:visited, a.ff-tab.is-on:hover { background: var(--accent-fill); border-color: transparent; color: #fff; }
a.ff-tab.ff-tab-qb.is-on { background: var(--ff-qb); }
a.ff-tab.ff-tab-rb.is-on { background: var(--ff-rb); }
a.ff-tab.ff-tab-wr.is-on { background: var(--ff-wr); }
a.ff-tab.ff-tab-te.is-on { background: var(--ff-te); }

.ff-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.ff-podium:empty { display: none; }
.ff-pod { position: relative; display: flex; gap: 14px; padding: 18px 18px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; }
.ff-pod::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #94a3b8; }
.ff-pod-1::before { background: linear-gradient(#fbbf24, #d97706); }
.ff-pod-2::before { background: linear-gradient(#cbd5e1, #94a3b8); }
.ff-pod-3::before { background: linear-gradient(#f0a878, #b45309); }
.ff-pod-rank { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; background: #64748b; }
.ff-pod-1 .ff-pod-rank { background: linear-gradient(135deg, #fbbf24, #d97706); }
.ff-pod-2 .ff-pod-rank { background: linear-gradient(135deg, #94a3b8, #64748b); }
.ff-pod-3 .ff-pod-rank { background: linear-gradient(135deg, #e0915a, #b45309); }
.ff-pod-body { min-width: 0; }
.ff-pod-name { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; color: var(--ink); }
.ff-pod-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 8px 0 0; }
.ff-pod-team { font-weight: 700; color: var(--ink); }
.ff-pod-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: 0.86rem; color: var(--muted); }
.ff-pod-stats b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-right: 3px; }
.ff-pod-note { margin: 10px 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.ff-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.ff-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ff-table th { text-align: left; font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.ff-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.ff-table tbody tr:last-child td { border-bottom: 0; }
.ff-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.ff-table tbody tr:hover td { background: var(--surface-2); }
.ff-table td.ff-rank { width: 60px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--muted); }
.ff-table th.ff-num, .ff-table td.ff-num, .ff-table .ff-move { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ff-name { display: block; font-weight: 700; font-size: 1.04rem; }
.ff-note { margin-top: 3px; font-size: 0.84rem; line-height: 1.45; color: var(--muted); max-width: 64ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ff-table td.ff-team { font-weight: 700; white-space: nowrap; }
.ff-table td.ff-ppg { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.ff-chip { display: inline-block; min-width: 38px; text-align: center; padding: 3px 9px; border-radius: 7px; font-family: var(--font-display); font-weight: 800; font-size: 0.84rem; letter-spacing: 0.02em; background: #eef2f7; color: #334155; }
.ff-chip.ff-qb { background: #ffe4e6; color: #9f1239; }
.ff-chip.ff-rb { background: #dcfce7; color: #166534; }
.ff-chip.ff-wr { background: #dbeafe; color: #1e40af; }
.ff-chip.ff-te { background: #fef3c7; color: #854d0e; }
.ff-prk { margin-left: 6px; font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; color: var(--muted); }
.ff-table td.ff-pos { white-space: nowrap; }
.ff-table tr.ff-div td { padding: 14px; background: var(--surface-2); border-top: 2px solid var(--line); font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ff-table td.ff-rank-x { color: var(--line); }
.ff-tierp { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-transform: capitalize; white-space: nowrap; background: #eef2f7; color: #475569; }
.ff-tierp.ff-t-elite { background: #fef3c7; color: #854d0e; }
.ff-tierp.ff-t-front-line-starter { background: #dcfce7; color: #166534; }
.ff-tierp.ff-t-starter, .ff-tierp.ff-t-starter-depth { background: #dbeafe; color: #1e40af; }
.ff-tierp.ff-t-matchup-starter, .ff-tierp.ff-t-flex-or-matchup { background: #ede9fe; color: #5b21b6; }
.ff-score { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ff-score-n { font-weight: 700; }
.ff-bar { display: block; width: 72px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ff-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #1d4ed8); }
.ff-up { color: #15803d; font-weight: 700; }
.ff-down { color: #be123c; font-weight: 700; }
.ff-same { color: var(--muted); }
.ff-credit { margin: 14px 2px 0; font-size: 0.86rem; color: var(--muted); }

/* home box */
.ff-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ff-top li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ff-top li:last-child { border-bottom: 0; }
.ff-r { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; font-family: var(--font-display); font-weight: 800; font-size: 0.86rem; background: var(--surface-2); color: var(--muted); }
.ff-top li:nth-child(1) .ff-r { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; }
.ff-top li:nth-child(2) .ff-r { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.ff-top li:nth-child(3) .ff-r { background: linear-gradient(135deg, #e0915a, #b45309); color: #fff; }
.ff-n { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-m { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ff-m { gap: 8px; }
.ff-m .ff-chip { min-width: 34px; padding: 1px 6px; font-size: 0.72rem; text-align: center; justify-content: center; }
.ff-m .ff-tm { display: inline-block; width: 2.6em; text-align: left; }   /* fixed team column: the RB / WR pills line up and keep a gap */
.ff-top-note { margin: 10px 0 0; font-size: 0.76rem; color: var(--muted); }

@media (max-width: 860px) {
  .ff-podium { grid-template-columns: 1fr; gap: 10px; }
  .ff-pod-note { -webkit-line-clamp: 2; }
}
@media (max-width: 700px) {
  .ff-hero { padding: 22px 18px; }
  .ff-fact { padding: 5px 10px; font-size: 0.8rem; }
  .ff-table th, .ff-table td { padding: 10px 9px; }
  .ff-table th:nth-child(5), .ff-table td.ff-tier, .ff-note, .ff-bar { display: none; }
  .ff-table td.ff-rank { width: 40px; }
  a.ff-tab, a.ff-tab:link, a.ff-tab:visited { height: 38px; padding: 0 14px; font-size: 0.98rem; }
}

/* --- Board sections (order 3, Oct 2026): visible section headings, 4 cards per row, short card text on the home page --- */
.cat-grid > .cat-heading { position: static; width: auto; height: auto; margin: 18px 0 -4px; padding: 0; overflow: visible; clip-path: none; white-space: normal; grid-column: 1 / -1; font-family: var(--font-display, inherit); font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.cat-grid > .cat-heading:first-child { margin-top: 0; }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cats .cat-card { min-height: 0; }
.cats .cat-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* Lower tiles (order 3): less padding and gap, two-line description. */
.cats .cat-card { padding: 18px 18px 16px; gap: 6px; }
.cats .cat-top { gap: 8px; }
.cats .cat-tile { width: 44px; height: 44px; }
.cats .cat-tile .cat-ico { width: 24px; height: 24px; }
/* Conference / division / league boards: a row of their team helmets as the tile icon. */
.cat-helms { display: flex; justify-content: center; height: 44px; align-items: center; }
.cat-helms img { width: 44px; height: 37px; margin-left: -8px; transition: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.cat-helms img:first-child { margin-left: 0; }
/* a gentle arc, no tilt: tilted letters blur at this size */
.cat-helms img:nth-child(1), .cat-helms img:nth-child(5) { transform: translateY(4px); }
.cat-helms img:nth-child(2), .cat-helms img:nth-child(4) { transform: translateY(1px); }
.t-injury{ --ct:var(--c-host-t); --ci:var(--c-host); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='15' rx='2'/%3E%3Cpath d='M9 5V3h6v2M12 9v7M8.5 12.5h7'/%3E%3C/svg%3E"); }
.t-coach{ --ct:var(--c-lnx-t); --ci:var(--c-lnx); --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='3.5'/%3E%3Cpath d='M5 21v-2a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v2'/%3E%3Cpath d='M15.5 4.5l3-1.5'/%3E%3C/svg%3E"); }

/* --- Team helmets (order 3): badge on the avatar corner, team stripe on posts, picker page, pick-your-team prompt --- */
.post__avwrap { position: relative; display: inline-block; line-height: 0; }
.post__avwrap .team-badge { position: absolute; right: -24%; bottom: -12%; width: 52%; height: auto; max-width: none; padding: 0; border-radius: 0; background: none; box-shadow: none; transition: none;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .85)) drop-shadow(0 0 .5px rgba(255, 255, 255, .85)) drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }   /* only the helmet, centred on the photo's corner (a round photo leaves that corner empty) */
.post.post--team { box-shadow: inset 4px 0 0 var(--team, transparent), var(--sh-1); }
@media (max-width: 640px) { .post__avwrap .team-badge { width: 54%; right: -24%; bottom: -12%; } }
.ut-section { max-width: 1100px; margin: 24px auto 48px; }
.ut-hero h1 { margin: 0 0 6px; }
.ut-hero p { color: var(--muted); margin: 0 0 18px; }
.ut-saved { padding: 10px 14px; border-radius: 10px; background: #dcfce7; color: #14532d; font-weight: 700; }
.ut-current { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-bottom: 16px; flex-wrap: wrap; }
.ut-current-img { width: 56px; height: 56px; }
.ut-label { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ut-name { margin: 0; font-weight: 800; font-size: 1.1rem; }
.ut-remove { margin-left: auto; }
.ut-none { color: var(--muted); }
.ut-search { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 18px; font-weight: 700; }
.ut-search input { max-width: 420px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }
.ut-group h2 { font-size: 1.1rem; margin: 20px 0 10px; }
.ut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ut-team { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.ut-team:hover, .ut-team:focus-visible { border-color: var(--brand); }
.ut-team.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.ut-img { width: 38px; height: 38px; flex: none; }
.team-ask { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.team-ask p { margin: 0; color: var(--muted); }
.team-ask .team-ask__t { color: var(--ink); font-weight: 800; }
.team-ask__go { margin-left: auto; }
.team-ask__go{ display:inline-flex; align-items:center; min-height:44px; padding:0 18px; border-radius:10px; background:var(--brand); color:#fff !important; font-weight:800; text-decoration:none; }
.team-ask__go:hover{ background:var(--brand-strong, var(--brand)); text-decoration:none; }
.team-ask__later{ min-height:44px; padding:0 16px; border-radius:10px; border:1px solid var(--line); background:transparent; color:var(--ink); font:inherit; font-weight:700; cursor:pointer; }

/* --- About box + sister-site card (order 3) --- */
.s-about .s-about__name { margin: 0 0 6px; font-family: var(--font-display, inherit); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.s-about p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.s-about .btn, .s-xsite .btn { width: 100%; justify-content: center; }
.s-xsite .s-card-h { margin-bottom: 6px; }
.s-xsite p { margin: 0 0 12px; color: var(--muted); line-height: 1.5; }
.btn-outline { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--brand); border-radius: 10px; color: var(--brand); font-weight: 800; text-decoration: none; background: transparent; }
.btn-outline:hover { background: var(--brand-tint, rgba(29, 78, 216, .06)); text-decoration: none; }

/* --- Rankings, standings, schedule (order 3) --- */
.sd-body { margin-top: 18px; }
.sd-scroll { overflow-x: auto; border-radius: var(--r-lg); }
.sd-table { width: 100%; }
.sd-table caption { text-align: left; font-weight: 800; padding: 10px 14px 6px; font-family: var(--font-display, inherit); text-transform: uppercase; letter-spacing: .02em; }
.sd-table td, .sd-table th { vertical-align: middle; }
/* Table heading row: banner navy, so it stands apart from the date rows below it (same in both themes). */
.sd-table thead tr { background: linear-gradient(90deg, #0b1733 0%, #122650 55%, #1a3570 100%); }   /* one gradient across the whole bar */
.sd-table thead th { background: transparent; color: #93c5fd; border-bottom-color: #0b1733; }
.sd-table tbody tr:nth-child(even):not(:hover) td { background: transparent; }
.sd-sched th.sd-mhead { text-align: center; padding-right: calc(14px + 4.6rem + 10px); }   /* over the @ column */
@media (max-width: 640px) { .sd-sched th.sd-mhead { text-align: left; padding-right: 9px; } }   /* game rows all one colour; only the date rows are shaded */
/* Sports page banner: stadium still; a short loop plays while the mouse is over it (swh.js, not on touch or reduced motion). */
.sd-hero { position: relative; overflow: hidden; isolation: isolate; background: #0b1733 url(sd-hero-stadium.webp) 50% 58% / cover no-repeat; }
.sd-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,16,36,.94) 0%, rgba(8,16,36,.74) 36%, rgba(8,16,36,.22) 72%, rgba(8,16,36,.4) 100%); }
.sd-hero__vid { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.sd-hero.is-playing .sd-hero__vid { opacity: 1; }
/* one banner per page: Schedule = coach tablet, Fantasy = draft room, Highest paid = money vault, Games = arcade */
.sd-hero--coach { background-image: url(sd-hero-coach.webp); }
.sd-hero--draft { background-image: url(sd-hero-draft.webp); }
.sd-hero--money { background-image: url(sd-hero-money.webp); }
.sd-hero--arcade { background-image: url(sd-hero-arcade.webp); }
.sd-hero--pressbox { background-image: url(sd-hero-pressbox.webp); }
.sd-hero--locker { background-image: url(sd-hero-locker.webp); }
.sd-hero--broadcast { background-image: url(sd-hero-broadcast.webp); }
.sd-hero--chalk { background-image: url(sd-hero-chalk.webp); }
.sd-hero .ff-hero-sub { max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .sd-hero__vid { display: none; } }
.sd-day th { text-align: left; background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; padding: 9px 14px; }
.sd-team { display: inline-flex; align-items: center; gap: 8px; }
.sd-badge { width: 28px; height: 24px; flex: none; transition: none; }   /* the site-wide img transition would also animate their position */
.sd-table .sd-badge { width: 40px; height: 34px; }   /* tables: big enough that 4-letter names read (Przemek 16 Oct) */
@media (max-width: 640px) { .sd-table .sd-badge { width: 34px; height: 29px; } }
.sd-table td > .sd-team { vertical-align: middle; }   /* team name level with the numbers next to it */
.sd-rank { font-size: .78rem; font-weight: 800; color: var(--muted); min-width: 1.4em; text-align: right; }
.sd-tname { font-weight: 700; }
/* Away team right-aligned up to the @, home team left of it: the @ and both helmets sit in one column down the table
   (the two halves share the cell width equally in every row). Score in its own fixed slot at the end. */
.sd-mline { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 4.6rem; align-items: center; column-gap: 10px; }
.sd-team--away { justify-self: end; text-align: right; }
.sd-mline > .sd-team:not(.sd-team--away) { justify-self: start; }
.sd-at { color: var(--muted); font-weight: 700; line-height: 1; }
.sd-score { justify-self: end; font-weight: 800; white-space: nowrap; line-height: 1; font-variant-numeric: tabular-nums; }
/* Phones: one team per line, helmets first, the @ in front of the home team. */
@media (max-width: 640px) {
  .sd-mline { display: flex; flex-direction: column; align-items: flex-start; row-gap: 6px; }
  .sd-team--away { justify-self: auto; text-align: left; }
  .sd-team--away .sd-badge { order: -1; }
  .sd-at { display: none; }
  .sd-team--away + .sd-at + .sd-team .sd-tname::before { content: "@ "; color: var(--muted); }
  .sd-score { margin-left: 0; }
  .sd-table .sd-time { white-space: normal; width: 64px; font-size: .85rem; }
  .sd-table .sd-match { min-width: 196px; }
}
.sd-time { white-space: nowrap; font-weight: 700; }
.sd-tv { white-space: nowrap; }
.sd-num { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ff-table th.sd-num, .ff-table td.sd-num { text-align: center; }   /* number columns: values centred under their heading (Top 25, standings, schedule, highest paid) */
.sd-sched .sd-num { text-align: center; }   /* schedule: spread / over-under centered under their headings */
.sd-fpv { margin-left: 6px; color: var(--muted); font-size: .85rem; }
.sd-note, .sd-others { margin: 14px 2px 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.sd-empty { padding: 30px; text-align: center; color: var(--muted); }
.sd-conf { margin: 26px 0 10px; font-size: 1.3rem; }
.sd-divs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sd-div { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
@media (max-width: 900px) { .sd-divs { grid-template-columns: 1fr; } .sd-match { min-width: 220px; } }
.sd-box .sd-badge { width: 20px; height: 20px; margin-right: 6px; }
.sd-box-sub { margin: 10px 0 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.sd-div-n { min-width: 74px; font-size: .78rem; font-weight: 800; color: var(--muted); }
.sd-tvtime { min-width: 76px; font-size: .8rem; font-weight: 800; color: var(--muted); }

/* --- Highest paid page (order 3) --- */
.pd-unit { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.pd-src a { font-weight: 700; }
.pd-date { display: block; font-size: .75rem; color: var(--muted); }
.pd-act a { font-weight: 700; }
.pd-form { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pd-form h2 { margin: 0 0 6px; font-size: 1.2rem; }
.pd-hint { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.pd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pd-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .85rem; }
.pd-grid .pd-wide { grid-column: span 2; }
.pd-grid input { min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: var(--bg, #fff); color: var(--ink); }
.pd-btns { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
@media (max-width: 760px) { .pd-grid { grid-template-columns: 1fr; } .pd-grid .pd-wide { grid-column: auto; } }

/* --- Games page (order 3) --- */
.gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.gm-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; }
.gm-card:hover { border-color: var(--brand); box-shadow: var(--sh-2); text-decoration: none; }
.gm-tag { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--brand-tint, #e8efff); color: var(--brand); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.gm-name { font-family: var(--font-display, inherit); font-size: 1.5rem; font-weight: 800; }
.gm-desc { color: var(--muted); line-height: 1.5; flex: 1; }
.gm-go { font-weight: 800; color: var(--brand); }

/* --- "More" menu in the top navigation (order 3): Fantasy, Highest Paid, Games, Pick'em, Pick your team --- */
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.nav-more__menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 210px; display: flex; flex-direction: column; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--sh-2); }
.nav-more__menu a { padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.nav-more__menu a:hover { background: var(--surface-2); text-decoration: none; }
@media (max-width: 860px) {
  .nav-more__menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; min-width: 0; }
}
.nav-links > a, .nav-more > summary { white-space: nowrap; }
/* Wide screens: the bar grows past the page width and the More links sit in it, centred between logo and buttons.
   Below that the More menu holds them (and phones use the menu button). */
.nav-links > a.nav-extra { display: none; }
/* swh-priority-nav (swh.js): with JS every item is in the bar and overflow moves into More one by one. */
@media (min-width: 861px) {
  .swh-nav .nav-inner .brand, .swh-nav .nav-inner .nav-actions { flex: none; }   /* never squeezed: the menu gives way instead */
  .nav-links.pp { min-width: 0; }
}
@media (min-width: 1680px) {
  .swh-nav .nav-inner:has(> .nav-links.pp) { max-width: 1600px; }   /* big screens: a little wider than the page so the full menu fits */
}
@media (min-width: 1800px) {
  .swh-nav .nav-inner:has(> .nav-links.pp) { max-width: 1680px; }
}
@media (min-width: 861px) {
  .nav-links.pp:not(.pp-noico) > a .nav-ico, .nav-links.pp:not(.pp-noico) > .nav-more > summary .nav-ico { display: block; }
  .nav-links.pp.pp-noico > a .nav-ico, .nav-links.pp.pp-noico > .nav-more > summary .nav-ico { display: none; }   /* first step when space runs out */
  .nav-links.pp { gap: 4px; }   /* same spacing at every width; tighter only when space runs out */
  .nav-links.pp > a, .nav-links.pp > .nav-more > summary { padding-inline: 12px; }
  .nav-links.pp.pp-tight { gap: 0; }   /* step 1 when space runs out: tighter, icons stay */
  .nav-links.pp.pp-tight > a, .nav-links.pp.pp-tight > .nav-more > summary { padding-inline: 8px; gap: 5px; }
  .nav-links.pp.pp-noico { gap: 0; }
  .nav-links.pp.pp-noico > a, .nav-links.pp.pp-noico > .nav-more > summary { padding-inline: 9px; }
  .nav-links.pp > a.nav-extra { display: inline-flex; }
  .nav-links.pp > .nav-more { display: block; }
  .nav-links.pp > a.pp-hide, .nav-links.pp > .nav-more.pp-none { display: none; }
}
@media (min-width: 1900px) {
  .nav-links > a.nav-extra { display: inline-flex; }
  .nav-links > .nav-more { display: none; }
}
.nav-more > summary { padding: 8px 13px; border-radius: var(--r); color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.nav-more > summary:hover { background: var(--surface-2); color: var(--ink); }
@media (min-width: 861px) and (max-width: 1240px) {
  .nav-links { gap: 0; }
  .nav-links > a .nav-ico, .nav-more > summary .nav-ico { display: none; }
  .nav-links > a, .nav-more > summary { padding-inline: 9px; }
}

/* --- NFL pick'em (order 3) --- */
.pk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 18px; align-items: start; }
@media (max-width: 960px) { .pk-layout { grid-template-columns: 1fr; } }
.pk-count { margin: 0 0 12px; }
.pk-game { display: grid; grid-template-columns: 1fr auto 1fr 190px; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pk-team { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 800; cursor: pointer; background: var(--surface); }
span.pk-team { cursor: default; }
.pk-team input { position: absolute; opacity: 0; pointer-events: none; }
.pk-team:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pk-team.is-on, .pk-team:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); background: var(--brand-tint, #eef3ff); }
.pk-team.is-won { border-color: #16a34a; }
.pk-score { margin-left: 6px; color: var(--ink); }
.pk-at { color: var(--muted); font-weight: 800; }
.pk-when { text-align: right; font-size: .85rem; color: var(--muted); font-weight: 700; }
.pk-lock { display: inline-flex; align-items: center; gap: 4px; }
.pk-lock::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 2px; }
.pk-ok { color: #15803d; font-weight: 800; }
.pk-miss { color: #b91c1c; font-weight: 800; }
.pk-save { position: sticky; bottom: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-2); }
.pk-save span { color: var(--muted); font-size: .9rem; }
.pk-board { margin-bottom: 16px; }
@media (max-width: 560px) { .pk-game { grid-template-columns: 1fr auto 1fr; } .pk-when { grid-column: 1 / -1; text-align: center; } }
/* home boxes (Top 25 / standings / On TV): flexible rows, long names cut with ... */
.sd-box .ff-top li { display: flex; align-items: center; gap: 8px; grid-template-columns: none; }
.sd-box .ff-top li .ff-r { flex: none; }
.sd-box .ff-top li .sd-badge { flex: none; margin: 0; }
.sd-box .ff-top li .ff-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-box .ff-top li .ff-m { flex: none; margin-left: auto; white-space: nowrap; }
.sd-box .sd-div-n { flex: none; min-width: 64px; white-space: nowrap; }
.sd-box .sd-tvtime { flex: none; min-width: 64px; white-space: nowrap; }
/* Contact page with form (order 3) */
.ct-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; margin-top: 22px; align-items: start; }
.ct-intro { color: var(--text); line-height: 1.6; }
.ct-intro a { color: var(--brand-strong, var(--brand)); }
.ct-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.ct-form { display: flex; flex-direction: column; gap: 14px; }
.ct-row { display: flex; flex-direction: column; gap: 6px; }
.ct-row label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.ct-row input, .ct-row select, .ct-row textarea { font: inherit; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.ct-row textarea { resize: vertical; min-height: 140px; }
.ct-row input:focus, .ct-row select:focus, .ct-row textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.ct-hint { font-size: .82rem; color: var(--muted); }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-form .btn { align-self: flex-start; }
.ct-err { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r); background: color-mix(in srgb, #dc2626 14%, transparent); color: var(--ink); border-left: 4px solid #dc2626; }
.ct-sent h2 { margin: 0 0 8px; font-size: 1.3rem; color: var(--ink); }
@media (max-width: 760px) { .ct-wrap { grid-template-columns: 1fr; } }
/* Highest paid: team helmet (or initials); the player photo (free licence) pops in on hover, shown directly on touch
   screens. Reversible: switch on the page, or delete paid/photos.json (16 Oct). */
.pd-who { display: flex; align-items: center; gap: 12px; }
.pd-pic { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--surface-2); box-shadow: 0 0 0 2px var(--line); display: grid; place-items: center; }
.pd-pic .pd-helm { width: 34px; height: 29px; transition: opacity .2s ease; }
.pd-ini { font-weight: 800; color: var(--muted); font-size: .9rem; transition: opacity .2s ease; }
.pd-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%;
  opacity: 0; transform: scale(.55) rotate(-8deg); transition: opacity .22s ease, transform .3s cubic-bezier(.2, 1.4, .4, 1); box-shadow: 0 0 0 2px var(--brand), 0 6px 16px rgba(0, 0, 0, .35); }
tr:hover .pd-photo, tr:focus-within .pd-photo { opacity: 1; transform: scale(1.4) rotate(0); z-index: 3; }
.pd-photo { transform-origin: 75% 50%; }   /* grows to the left, away from the name */
tr:hover .pd-pic.has-photo > :not(.pd-photo), tr:focus-within .pd-pic.has-photo > :not(.pd-photo) { opacity: 0; }
@media (hover: none) { .pd-photo { opacity: 1; transform: none; } .pd-pic.has-photo > :not(.pd-photo) { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pd-photo { transition: opacity .15s ease; transform: none !important; } }
@media (max-width: 640px) { .pd-pic { width: 36px; height: 36px; } .pd-pic .pd-helm { width: 28px; height: 24px; } .pd-who { gap: 9px; } }
/* Our own game: featured card + the game page frame (Upright Rush, 16 Oct) */
.gm-feature { display: grid; gap: 6px; margin: 22px 0 6px; padding: 22px 24px; border-radius: var(--r-lg); color: #fff; text-decoration: none;
  background: radial-gradient(120% 160% at 100% 0%, rgba(79,131,255,.45), rgba(79,131,255,0) 60%), linear-gradient(135deg, #0b1733, #13254a 60%, #1d3a7a); box-shadow: var(--sh-1); border: 1px solid rgba(147,197,253,.25); }
.gm-feature:hover { text-decoration: none; border-color: rgba(147,197,253,.6); transform: translateY(-1px); }
.gm-feature .gm-tag { color: #93c5fd; } .gm-feature .gm-name { font-size: 1.6rem; color: #fff; } .gm-feature .gm-desc { color: #dbeafe; max-width: 60ch; } .gm-feature .gm-go { color: #fff; font-weight: 800; }
.gm-play { margin: 22px 0 10px; }
.gm-frame { display: block; width: 100%; height: 1180px; border: 0; border-radius: var(--r-lg); background: #0b1020; }
@media (max-width: 760px) { .gm-frame { height: 1620px; } }
/* The Football Network (16 Oct, free extra): bar above the scores ticker + live sister card on the home page */
.netbar { background: #060a14; border-bottom: 1px solid rgba(147,197,253,.14); font-size: .78rem; }
.netbar__in { max-width: var(--container); margin: 0 auto; padding: 0 32px; height: 32px; display: flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; }
.netbar__label { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #93c5fd; font-size: .7rem; }
.netbar__site { color: #cbd5e1; text-decoration: none; font-weight: 700; }
.netbar__site:hover { color: #fff; text-decoration: none; }
.netbar__site.is-current { color: #fff; }
.netbar__dot { color: #475569; }
.netbar__teaser { margin-left: auto; color: #93c5fd; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.netbar__teaser:hover { color: #fff; text-decoration: none; }
@media (max-width: 900px) { .netbar__teaser { display: none; } }
@media (max-width: 640px) { .netbar__in { padding: 0 14px; height: 28px; gap: 8px; } .netbar__label { display: none; }
  .netbar__site { padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(147,197,253,.25); font-size: .74rem; } .netbar__site.is-current { background: rgba(79,131,255,.25); } .netbar__dot { display: none; } }
.s-xsite--live .xs-eyebrow { margin: 0 0 4px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.xs-topics { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.xs-topics a { color: var(--ink); font-weight: 700; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.xs-topics a:hover { color: var(--brand-strong, var(--brand)); }
.xs-meta { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.xs-table { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); }
.xs-th { display: block; font-weight: 800; font-size: .8rem; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.xs-table ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; }
.xs-table li { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 8px; align-items: center; }
.xs-r { color: var(--muted); font-weight: 800; text-align: right; } .xs-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); } .xs-rec { color: var(--muted); font-variant-numeric: tabular-nums; }
/* "Your team" card on the profile pages (17 Oct, Order 3 item 2.2) */
.pf-team { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); flex-wrap: wrap; max-width: 640px; }
.swh-pf-id .pf-team { margin: 12px 0 0; padding: 10px 14px; }
.pf-team-img { width: 56px; height: 47px; flex: none; transition: none; }
.pf-team-empty { width: 56px; height: 47px; flex: none; border: 2px dashed var(--line); border-radius: 50% 50% 40% 40%; }
.pf-team-txt { flex: 1 1 200px; min-width: 0; }
.pf-team-txt p { margin: 0; }
.pf-team-lbl { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pf-team-name { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.pf-team-hint { font-size: .82rem; color: var(--muted); margin-top: 2px !important; }
.pf-team-btn { flex: none; }
@media (max-width: 640px) { .pf-team-btn { width: 100%; justify-content: center; text-align: center; } }
/* Upright Rush playable right on /games/ (17 Oct) */
.gm-own { margin: 22px 0 8px; }
.gm-own-head { display: grid; gap: 6px; justify-items: start; margin-bottom: 14px; }
.gm-own-head .gm-name { margin: 0; font-size: 1.6rem; color: var(--ink); }
.gm-own-head .gm-desc { margin: 0; max-width: 62ch; }
.gm-more-h { margin: 30px 0 0; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
/* Upright Rush scoreboard (17 Oct) */
.gm-board { margin: 18px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.gm-board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.gm-board-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.gb-status { margin: 0; font-size: .88rem; color: var(--muted); } .gb-status.is-saved { color: #16a37f; font-weight: 700; }
.gb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .gb-cols { grid-template-columns: 1fr; } }
.gb-col h3 { margin: 0 0 8px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gb-list li { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; }
.gb-list li:nth-child(-n+3) .gb-rank { color: #d4a017; }
.gb-list li.is-me { background: var(--brand-tint, rgba(79,131,255,.14)); outline: 1px solid var(--brand); }
.gb-rank { font-weight: 800; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.gb-helm { width: 30px; height: 25px; transition: none; } .gb-helm--none { display: inline-block; }
.gb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 700; text-decoration: none; }
.gb-name:hover { color: var(--brand); }
.gb-pts { font-variant-numeric: tabular-nums; color: var(--ink); }
.gb-empty, .gb-me { margin: 6px 0 0; font-size: .86rem; color: var(--muted); } .gb-me { font-weight: 700; color: var(--brand); }
.gb-note { margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
/* Wide lead tile above a full section of team boards (FST NFL, 17 Oct) */
.cats .cat-card--lead { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px 24px; padding: 16px 22px; }
.cats .cat-card--lead .cat-top { flex-direction: row; gap: 14px; }
.cats .cat-card--lead .cat-hd { align-items: flex-start; }
.cats .cat-card--lead .cat-desc { max-width: 60ch; margin: 0 0 0 auto; text-align: right; }
@media (max-width: 640px) { .cats .cat-card--lead { flex-direction: column; align-items: flex-start; } .cats .cat-card--lead .cat-desc { margin: 0; text-align: left; } }

.to-top--left{ right:auto; left:16px; }   /* second back-to-top button, left side (18 Oct) */

/* --- Board rows (revision 1, 18 Oct 2026): the home board list as rows like footballsfuture. One box per category: heading
 * bar, then one row per board (icon, name + description, topics/posts, last post). Conference / club categories fold their
 * team rows behind a button with the team helmets (swh.js). Phone: icon, name, counts; last post under the name. */
.cats:has(.cat-list) .cats__toggle { display: none !important; }
.cat-list { display: flex; flex-direction: column; }
.bhead { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; padding: 12px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.cat-list > .bhead:first-child { margin-top: 0; }
.bhead-name { margin: 0; font-family: var(--font-display, inherit); font-size: 1.2rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.fold-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 12px 4px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; max-width: 100%; }
.fold-btn:hover { border-color: var(--brand); color: var(--brand-strong); }
.fold-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fold-helms { display: flex; align-items: center; overflow: hidden; max-width: 360px; height: 28px; }
.fold-helms img { width: 30px; height: 25px; flex: none; margin-left: -7px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.fold-helms img:first-child { margin-left: 0; }
.fold-lbl { white-space: nowrap; }
.fold-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.bhead--fold.is-open .fold-chev { transform: rotate(180deg); }
.cat-fold[hidden] { display: none; }
.brow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 110px minmax(0, 280px); grid-template-areas: "ico main stats last"; align-items: center; gap: 6px 18px; padding: 12px 18px; background: var(--surface); border: 1px solid var(--line); border-top: 0; }
.brow:hover { background: var(--surface-2); }
.brow:last-child, .brow:has(+ .bhead), .brow:has(+ .cat-fold[hidden]:last-child), .brow:has(+ .cat-fold[hidden] + .bhead), .cat-fold:last-child > .brow:last-child, .cat-fold:has(+ .bhead) > .brow:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.brow-ico { grid-area: ico; display: grid; place-items: center; width: 52px; height: 48px; }
.brow-ico .cat-tile { width: 44px; height: 44px; }
.brow-ico .cat-tile .cat-ico { width: 24px; height: 24px; }
.brow-helm { width: 52px; height: 44px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.brow-helm.brow-icon { width: 48px; height: 48px; object-fit: contain; }
/* Drawn fan faces as board icons (Jeff 16 Nov, swh_board_face). */
.brow-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--line, rgba(255,255,255,.12)); }
@media (max-width: 640px) { .brow-face { width: 40px; height: 40px; } }
.brow-main { grid-area: main; min-width: 0; }
a.brow-name, a.brow-name:link, a.brow-name:visited { display: inline-block; font-family: var(--font-display, inherit); font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
a.brow-name:hover { color: var(--brand-strong); text-decoration: none; }
a.brow-name::after { content: ""; position: absolute; inset: 0; }   /* whole row clicks through to the board */
.brow { position: relative; }
.brow-desc { display: block; margin-top: 2px;   /* full 2-sentence descriptions (Jeff 16 Nov, like webhostingtalk) */ font-size: .86rem; line-height: 1.4; color: var(--muted); }
.brow-stats { grid-area: stats; display: flex; flex-direction: column; gap: 2px; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.brow-stats b { color: var(--ink); font-weight: 800; }
.brow-last { grid-area: last; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .84rem; color: var(--muted); }
.brow-last a { position: relative; z-index: 1; }
a.brow-last-t, a.brow-last-t:link, a.brow-last-t:visited { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); }
a.brow-last-t:hover { color: var(--brand-strong); }
.brow-last-m a { color: var(--brand); font-weight: 700; }
@media (max-width: 900px) {
  .brow { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ico main stats" ". last last"; padding: 12px 14px; gap: 4px 12px; }
  .brow-ico { width: 44px; height: 40px; }
  .brow-helm { width: 44px; height: 37px; }
  .brow-helm.brow-icon { width: 42px; height: 42px; }
  .brow-stats { text-align: right; }
  .brow-last { flex-direction: row; flex-wrap: wrap; gap: 0 6px; }
  .brow-last-t { max-width: 100%; }
}
@media (max-width: 560px) {
  .bhead { padding: 10px 14px; }
  .fold-btn { margin-left: 0; width: 100%; justify-content: space-between; }
  .fold-helms { flex: 1 1 auto; max-width: none; min-width: 0; }
  .brow-desc { display: block; font-size: .8rem; line-height: 1.35; }   /* shown on phones too (Jeff 16 Nov) */
}
/* Phones (21 Oct): the helmet strip shows only the helmets that fit its width; the rest are not drawn and not
   downloaded (Safari left the cut-off ones empty). One helmet = 30 px, each next one +23 px (7 px overlap). */
@media (max-width: 560px) {
  .fold-helms { container: helms / inline-size; }
}
@container helms (max-width: 52.98px) { .fold-helms img:nth-child(n+2) { display: none; } }
@container helms (max-width: 75.98px) { .fold-helms img:nth-child(n+3) { display: none; } }
@container helms (max-width: 98.98px) { .fold-helms img:nth-child(n+4) { display: none; } }
@container helms (max-width: 121.98px) { .fold-helms img:nth-child(n+5) { display: none; } }
@container helms (max-width: 144.98px) { .fold-helms img:nth-child(n+6) { display: none; } }
@container helms (max-width: 167.98px) { .fold-helms img:nth-child(n+7) { display: none; } }
@container helms (max-width: 190.98px) { .fold-helms img:nth-child(n+8) { display: none; } }
@container helms (max-width: 213.98px) { .fold-helms img:nth-child(n+9) { display: none; } }
@container helms (max-width: 236.98px) { .fold-helms img:nth-child(n+10) { display: none; } }

/* Compact hero (revision 1, Jeff 18 Oct 15:07 "yes": smaller picture area at the top, both pictures kept). Same block in
 * critical-landing.css (first paint) and forum.css, so the page does not jump when forum.css arrives. */
.hero { min-height: clamp(270px, 23vw, 330px); }
.hero__content { max-width: 1000px; padding: 1.4rem 1rem; }
.hero__eyebrow { margin-bottom: .35rem; }
.hero__title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 .5rem; }
.hero__lead { max-width: 860px; margin: 0 auto .9rem; }
.hero__search { margin: 0 auto .6rem; }
.hero .chips { margin-top: .6rem; }
.hero__cta-row { margin-top: .8rem; }
.hero a.hero__signup, .hero a.hero__signup:link, .hero a.hero__signup:visited { min-height: 46px; padding: 0 1.8rem; font-size: 1.1rem; }
.hero__figure { height: 97%; max-width: 21%; }

/* The Football Network moved from the top bar to the footer (Jeff 19 Oct: "should go to the bottom", like the
 * "Recommended communities" box at the bottom right of contractortalk.com). */
.footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; }
.footer-net__site, .footer-net__site:link, .footer-net__site:visited { display: flex !important; align-items: center; gap: 12px; padding: 10px 12px !important; border: 1px solid var(--line); border-radius: var(--r-md, 10px); background: var(--surface); color: var(--ink) !important; }
.footer-net__site:hover { border-color: var(--brand); text-decoration: none; }
.footer-net__site img { width: auto; height: 30px; flex: none; }
.footer-net__site span { display: flex; flex-direction: column; min-width: 0; }
.footer-net__site b { font-weight: 800; font-size: .95rem; }
.footer-net__site small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } .footer-net { grid-column: 1 / -1; } .footer-net__site { max-width: 420px; } }

/* Lighthouse 19 Oct (mobile, live): keep 100.
 * image-aspect-ratio: helmets/badges are 128x108; never stretch them into a square box. */
.sd-badge { object-fit: contain; }
.sd-box .sd-badge { width: 24px; height: 20px; }
/* color-contrast: muted text on cards (sister card rank, Fantasy rank) slightly closer to the text colour (4.44 -> above 4.5),
 * the newsletter Subscribe button on the darker action colour like the other buttons, the FST news kicker lighter on dark. */
.s-card .xs-rec, .sd-box .ff-r { color: color-mix(in srgb, var(--muted) 80%, var(--ink)); }
button.btn-primary, input.btn-primary { background: var(--action-fill); border-color: var(--action-fill); }
:root[data-theme="dark"] .s-news-kicker { color: color-mix(in srgb, var(--accent) 72%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-news-kicker { color: color-mix(in srgb, var(--accent) 72%, #fff); } }

/* 19 Oct (Lighthouse "128 non-composited animations"): FUDforum default img transition is "all 0.5s"; only transform and opacity. */
img { transition: transform 0.5s ease-out, opacity 0.5s ease-out; }   /* FUDforum default img transition override */
/* Links inside board intros and board descriptions are bold (Jeff 23 Oct: "mabe bold those links"). */
.board-intro a, .brow-desc a { font-weight: 700; }

/* ===== Live chat (order 4, Nov 2026): Messenger-style bubbles on the page background. swh-chat-lib.php + assets/swh-chat.js ===== */
.chat { --chat-bubble: var(--surface); --chat-me: var(--accent-fill); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; }
.chat-title { margin: 0; font-family: var(--font-display); font-size: 1.35rem; }
.chat-title a { color: var(--ink); text-decoration: none; }
.chat-online { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #1fa34a; box-shadow: 0 0 0 3px rgba(31,163,74,.18); }
.chat-list { list-style: none; margin: 0; padding: 4px 2px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; }
.chat--page .chat-list { height: min(62vh, 620px); }
.chat--home .chat-list { max-height: 300px; }
.chat-time { align-self: center; font-size: .72rem; color: var(--faint); padding: 2px 0; }
.chat-empty { color: var(--muted); font-size: .95rem; padding: 12px 4px; }
.chat-group { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 8px; align-items: end; }
.chat-av { grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; align-self: end; }
.chat-av img { width: 30px; height: auto; display: block; }
.chat-av--txt { background: var(--accent-fill); color: #fff; font-size: .72rem; font-weight: 700; }
.chat-name { grid-column: 2; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 0 6px 10px; display: inline-flex; align-items: center; gap: 6px; }
.chat-mod { font-size: .62rem; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--accent-fill); border-radius: var(--r-pill); padding: 1px 6px; }
.chat-bubbles { grid-column: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.chat-row { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.chat-bubble { display: inline-block; max-width: min(560px, 100%); padding: 8px 13px; border-radius: 18px; background: var(--chat-bubble); color: var(--ink);
  font-family: var(--font-body); font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(15,23,42,.06), 0 0 0 1px var(--line-soft); }
.chat-bubble a { color: var(--accent-fill); font-weight: 600; text-decoration: underline; }
.chat-group--me { grid-template-columns: minmax(0, 1fr); }
.chat-group--me .chat-bubbles { grid-column: 1; align-items: flex-end; }
.chat-group--me .chat-bubble { background: var(--chat-me); color: #fff; box-shadow: none; }
.chat-tool { border: 0; background: none; color: var(--faint); font-size: .72rem; cursor: pointer; padding: 2px 4px; opacity: 0; transition: opacity .15s; }
.chat-row:hover .chat-tool, .chat-tool:focus-visible { opacity: 1; }
.chat-form { display: flex; align-items: center; gap: 10px; }
.chat-input { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 16px; min-height: 44px; }
.chat-input:focus-within { border-color: var(--accent-fill); box-shadow: 0 0 0 3px var(--ring); }
.chat-aa { color: var(--faint); font-weight: 600; font-size: .9rem; }
.chat-input input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .98rem; min-width: 0; padding: 10px 0; outline: none; }
.chat-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent-fill); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.chat-send:hover { background: var(--accent-fill-strong); }
.chat-send:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.chat-err { min-height: 1.2em; margin: 0; color: #b42318; font-size: .85rem; }
.chat-err:empty { display: none; }
.chat-note { color: var(--muted); font-size: .9rem; margin: 0; }
.chat-join { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chat-signin { font-weight: 600; }
.s-chat { margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: transparent; }
.chat-page__head { display: flex; align-items: center; gap: 16px; margin: 18px 0 14px; flex-wrap: wrap; }
.chat-page__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); }
.chat-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; margin-bottom: 28px; }
.chat-page__main { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.chat-side .s-card-h { margin-bottom: 8px; }
.chat-fans, .chat-rules { list-style: none; margin: 0; padding: 0; }
.chat-fans li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; color: var(--ink); }
.chat-fans li:last-child, .chat-rules li:last-child { border-bottom: 0; }
.chat-fans img { width: 32px; height: auto; }
.chat-fan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.chat-fan-dot--on { background: #1fa34a; }
.chat-fans-empty { color: var(--muted); font-weight: 400 !important; }
.chat-rules li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); color: var(--text); }
@media (max-width: 900px) {
  .chat-page__grid { grid-template-columns: minmax(0, 1fr); }
  .chat--page .chat-list { height: 58vh; }
  .chat-page__main { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .chat-tool { transition: none; } }

/* -- chat fix 1 (3 Nov): the site-wide input[type=text] rule gave the field its own border + focus ring inside the pill,
   and the member's team accent (can be black) made the send button vanish on dark pages. The chat uses one fixed blue. -- */
.chat { --chat-me: #2563eb; --chat-me-strong: #1d4ed8; }
.chat .chat-input input[type="text"], .chat .chat-input input[type="text"]:focus, .chat .chat-input input[type="text"]:focus-visible {
  border: 0; background: transparent; box-shadow: none; outline: none; border-radius: 0; padding: 10px 0; margin: 0; font-size: .98rem; color: var(--ink); }
.chat .chat-input:focus-within { border-color: var(--chat-me); box-shadow: 0 0 0 3px rgba(37,99,235,.28); }
.chat .chat-send { background: var(--chat-me); color: #fff; box-shadow: none; }
.chat .chat-send:hover { background: var(--chat-me-strong); }
.chat .chat-send:focus-visible { outline: 2px solid var(--chat-me); outline-offset: 3px; }
.chat .chat-group--me .chat-bubble { background: var(--chat-me); color: #fff; }
.chat .chat-mod, .chat .chat-av--txt { background: var(--chat-me); }
.chat .chat-bubble a { color: var(--chat-me); }
.chat .chat-group--me .chat-bubble a { color: #fff; }
.chat-empty { align-self: center; text-align: center; padding: 18px 8px; font-size: .92rem; color: var(--muted); }
.chat--home .chat-list { min-height: 64px; }
.chat-head { justify-content: flex-start; }
.chat-title { font-size: 1.2rem; letter-spacing: .01em; }
.chat-online { font-size: .85rem; }
/* -- chat fix 3 (3 Nov): both boxes scroll; older messages load at the top; chat icon in the text box instead of "Aa" -- */
.chat .chat-list { overflow-y: auto; scrollbar-width: thin; }
.chat--home .chat-list { height: 320px; max-height: none; }
.chat-ico { color: var(--faint); flex: none; }
.chat-input:focus-within .chat-ico { color: var(--chat-me); }
.chat-loading, .chat-start { font-style: italic; }
@media (max-width: 900px) { .chat--home .chat-list { height: 300px; } }
/* -- chat fix 4 (3 Nov): member avatar in the circle with the team helmet on its corner (like posts); red dot on the Live Chat menu link while the chat is active -- */
.chat .chat-av { position: relative; overflow: visible; background: var(--surface); box-shadow: 0 0 0 1px var(--line-soft); }
.chat .chat-av-ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; }
.chat .chat-av--txt { background: var(--chat-me); color: #fff; box-shadow: none; }
.chat .chat-av-team { position: absolute; right: -7px; bottom: -4px; width: 20px; height: auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.nav-live { display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: #e11d48; vertical-align: super; box-shadow: 0 0 0 2px var(--nav-bg, transparent); animation: nav-live-pulse 2s ease-in-out infinite; }
@keyframes nav-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .nav-live { animation: none; } }

/* -- chat home compact (4 Nov, Przemek): back under the main image, full width, about four message lines, scrolls;
   one line per message (avatar, name, text) like YouTube live chat; same on phones (no floating button / sheet). -- */
.s-chat { margin: 14px 0 18px; padding: 10px 16px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.chat--home { gap: 8px; }
.chat--home .chat-head { gap: 10px; }
.chat--home .chat-title { font-size: 1.05rem; }
.chat--home .chat-list { height: 152px; max-height: none; gap: 6px; padding: 2px 0; }
.chat--home .chat-time, .chat--home .chat-start { display: none; }
.chat--home .chat-loading { font-size: .75rem; }
.chat--home .chat-group { display: flex; align-items: flex-start; gap: 8px; }
.chat--home .chat-av { width: 26px; height: 26px; flex: none; }
.chat--home .chat-av-ph { width: 26px; height: 26px; }
.chat--home .chat-av--txt { font-size: .62rem; }
.chat--home .chat-av-team { width: 15px; right: -5px; bottom: -3px; }
.chat--home .chat-name { margin: 5px 0 0; font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap; flex: none; }
.chat--home .chat-bubbles { flex: 1; min-width: 0; gap: 4px; }
.chat--home .chat-bubble { padding: 4px 10px; font-size: .9rem; border-radius: 12px; }
.chat--home .chat-group--me { justify-content: flex-end; }
.chat--home .chat-group--me .chat-bubbles { flex: none; }
.chat--home .chat-input { min-height: 40px; }
.chat--home .chat-send { width: 40px; height: 40px; }
@media (max-width: 600px) {
  .s-chat { padding: 10px 12px 12px; margin: 10px 0 14px; }
  .chat--home .chat-name { max-width: 34%; overflow: hidden; text-overflow: ellipsis; }
}

/* -- chat home fix (4 Nov, real-forum check): own messages on the left like everyone's (blue bubble), avatar next to the name -- */
.chat--home .chat-av { align-self: flex-start; }
.chat--home .chat-group--own .chat-bubble { background: var(--chat-me); color: #fff; box-shadow: none; }
.chat--home .chat-group--own .chat-bubble a { color: #fff; }

/* -- chat home fix 2 (4 Nov): input row stays inside the box on phones; soft fade where older lines scroll away -- */
.chat-form, .chat-input { min-width: 0; }
.chat--home .chat-form { width: 100%; }
.chat--home .chat-list { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); }
/* -- chat on phones = popup (4 Nov, Przemek "on mobile it should be a popup"): under 720 px the home box is hidden and a
   "Live Chat" button sits at the bottom centre (between the two back-to-top arrows); it opens the chat as a sheet from
   the bottom with a dark backdrop. Wider screens: the button is hidden and the box stays under the main picture. -- */
.chat-fab, .chat-scrim, .chat--home .chat-close { display: none; }
@media (max-width: 720px) {
  .s-chat { margin: 0; padding: 0; border: 0; background: none; }
  .s-chat .chat--home { display: none; }
  .chat-fab { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 70; display: inline-flex; align-items: center; gap: 7px;
    height: 46px; padding: 0 18px 0 15px; border: 0; border-radius: 999px; background: #2563eb; color: #fff; font: inherit; font-size: .95rem; font-weight: 700;
    box-shadow: 0 8px 22px -8px rgba(0,0,0,.55); cursor: pointer; white-space: nowrap; }
  .chat-fab .chat-dot { width: 8px; height: 8px; margin-left: 2px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
  .chat-fab .chat-fab-n { font-weight: 500; font-size: .85rem; opacity: .92; }
  .chat-fab:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
  .s-chat.is-open .chat-fab { visibility: hidden; }
  .chat-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 990; background: rgba(5,10,25,.55); }
  .s-chat.is-open .chat--home { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    height: 78vh; height: min(78dvh, 660px); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 10px;
    background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px -10px rgba(0,0,0,.45); }
  .s-chat.is-open .chat--home .chat-list { flex: 1; height: auto; min-height: 0; -webkit-mask-image: none; mask-image: none; }
  .s-chat.is-open .chat--home .chat-head { padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
  .chat--home .chat-close { display: inline-flex; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
  .chat--home .chat-close:hover { background: var(--line-soft); }
  .chat--home .chat-close:focus-visible { outline: 2px solid var(--chat-me); outline-offset: 1px; }
  html.chat-sheet-open, html.chat-sheet-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 720px) {
  .s-chat.is-open .chat--home { animation: chat-sheet-up .22s ease-out; }
  @keyframes chat-sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
}
@media (max-width: 720px) {
  .chat-fab .chat-fab-n:empty { display: none; }
  .s-chat.is-open .chat--home .chat-list { padding-right: 3px; }
}
@media (max-width: 720px) { .s-chat.is-open .chat--home .chat-list::before { content: ""; margin-top: auto; } }
/* -- chat fold (4 Nov, Przemek picked A + C): one arrow in the chat header.
   Wide screens: folds the box under the main picture to one line (newest message), remembered per browser.
   Phones: folds the popup to a "peek" bar at the bottom (newest message + input), the page stays usable. -- */
.chat--home .chat-fold { display: inline-flex; margin-left: auto; width: 36px; height: 36px; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.chat--home .chat-fold:hover { background: var(--line-soft); }
.chat--home .chat-fold:focus-visible { outline: 2px solid #2563eb; outline-offset: 1px; }
.chat--home .chat-fold svg { transition: transform .2s ease; }
@media (min-width: 721px) {
  .chat--home .chat-fold svg { transform: rotate(180deg); }
  .chat--home.is-folded .chat-fold svg { transform: none; }
  .chat--home.is-folded .chat-list { height: 30px; min-height: 0; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
  .chat--home.is-folded .chat-form, .chat--home.is-folded .chat-err, .chat--home.is-folded .chat-join, .chat--home.is-folded .chat-note { display: none; }
}
@media (max-width: 720px) {
  .chat--home .chat-close { margin-left: 0; }
  .s-chat.is-peek .chat-fab { visibility: hidden; }
  .s-chat.is-peek .chat--home { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; gap: 6px;
    padding: 6px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px -10px rgba(0,0,0,.45); }
  .s-chat.is-peek .chat--home .chat-list { flex: none; height: 38px; min-height: 0; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
  .s-chat.is-peek .chat-fold svg { transform: rotate(180deg); }
  html.chat-peek body { padding-bottom: 150px; }
  html.chat-peek .to-top { bottom: 152px; }
}
/* fold: only the newest message group shows; soft fade if that group has more bubbles above */
@media (min-width: 721px) { .chat--home.is-folded .chat-list > li:not(:last-child) { display: none; } }
@media (max-width: 720px) {
  .s-chat.is-peek .chat--home .chat-list > li:not(:last-child) { display: none; }
  .s-chat.is-peek .chat--home .chat-list { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px); mask-image: linear-gradient(to bottom, transparent 0, #000 12px); }
}
/* -- post editor toolbar (8 Nov 2026, offer item 8b): bigger, bolder buttons with clear icons; wraps on phones.
   Generated by scripts/build-toolbar-css.mjs (icons are SVG masks in currentColor). -- */
.FormattingToolsBG { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); white-space: normal; vertical-align: middle; }
td.nw:has(> .FormattingToolsBG) { white-space: normal; }
.FormattingToolsBG .FormattingToolsCLR { display: inline-flex; }
.FormattingToolsBG .FormattingToolsCLR a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg, transparent); color: var(--ink); text-decoration: none; font-size: 19px; line-height: 1; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.FormattingToolsBG .FormattingToolsCLR a:hover, .FormattingToolsBG .FormattingToolsCLR a:focus-visible { color: #fff; background: var(--accent-fill, #2563eb); border-color: var(--accent-fill, #2563eb); outline: none; }
.FormattingToolsBG .FormattingToolsCLR a img { display: none; }
.FormattingToolsBG .FormattingToolsCLR a::before { content: ""; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--tb-ico) center / contain no-repeat; mask: var(--tb-ico) center / contain no-repeat; }
.FormattingToolsBG a[title="Bold"]::before { content: "B"; width: auto; height: auto; background: none; -webkit-mask: none; mask: none; font-weight:900; }
.FormattingToolsBG a[title="Italics"]::before { content: "I"; width: auto; height: auto; background: none; -webkit-mask: none; mask: none; font-style:italic;font-weight:800;font-family:Georgia,serif; }
.FormattingToolsBG a[title="Underline"]::before { content: "U"; width: auto; height: auto; background: none; -webkit-mask: none; mask: none; font-weight:800;text-decoration:underline;text-underline-offset:3px; }
.FormattingToolsBG a[title="Align Left"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h10M4 18h14'/%3E%3C/svg%3E"); }
.FormattingToolsBG a[title="Align Center"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M7 12h10M5 18h14'/%3E%3C/svg%3E"); }
.FormattingToolsBG a[title="Align Right"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M10 12h10M6 18h14'/%3E%3C/svg%3E"); }
.FormattingToolsBG a[title="Insert a Link"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a3.5 3.5 0 0 0 5 0l4-4a3.5 3.5 0 0 0-5-5l-.5.5'/%3E%3Cpath d='M14 10a3.5 3.5 0 0 0-5 0l-4 4a3.5 3.5 0 0 0 5 5l.5-.5'/%3E%3C/svg%3E"); }
.FormattingToolsBG a[title="Insert an E-mail address"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.FormattingToolsBG a[title="Insert an image"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.5'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E"); }
.FormattingToolsBG a[title="Add numbered list"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h11M10 12h11M10 18h11M4 5h1v4M4 9h2M6 19H4c0-1.2 2-2 2-3.1 0-.6-.5-.9-1-.9s-1 .3-1 .8'/%3E%3C/svg%3E"); }
.FormattingToolsBG a[title="Add bulleted list"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h12M9 12h12M9 18h12'/%3E%3Ccircle cx='4.5' cy='6' r='1' fill='black'/%3E%3Ccircle cx='4.5' cy='12' r='1' fill='black'/%3E%3Ccircle cx='4.5' cy='18' r='1' fill='black'/%3E%3C/svg%3E"); }
.FormattingToolsBG a[title="Add Quote"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 11H6a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v6c0 2.7-1.3 4.3-4 5'/%3E%3Cpath d='M19 11h-4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v6c0 2.7-1.3 4.3-4 5'/%3E%3C/svg%3E"); }
.FormattingToolsBG a[title="Add Code"] { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8l-4 4 4 4M17 8l4 4-4 4M14 4l-4 16'/%3E%3C/svg%3E"); }
select[name="fnt_size"], select[name="fnt_color"], select[name="fnt_face"] { min-height: 40px; font-weight: 600; }
@media (max-width: 600px) { .FormattingToolsBG .FormattingToolsCLR a { width: 42px; height: 42px; } }

/* NEWS badge for News Desk lines in the chat (8 Nov, offer item 4) */
.chat .chat-mod.chat-news { background: #0f7a3d; }

/* -- Twemoji (8 Nov 2026, offer items 7 + 8a): emoji picker, emoji in chat and posts, new smilies + message icons -- */
.emo { width: 1.35em; height: 1.35em; vertical-align: -.3em; margin: 0 .05em; }
img[src*="/images/smiley_icons/"] { width: 1.5em; height: 1.5em; vertical-align: -.35em; }
img[src*="/images/message_icons/"] { width: 22px; height: 22px; vertical-align: middle; }
.emo-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; padding: 0; }
.emo-btn img { width: 22px; height: 22px; }
.emo-btn:hover, .emo-btn[aria-expanded="true"] { border-color: #2563eb; background: var(--line-soft); }
.emo-btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.FormattingToolsBG .emo-wrap .emo-btn { width: 38px; height: 38px; border-radius: 9px; }
.chat-form, .FormattingToolsBG { position: relative; }
.emo-pop { position: absolute; z-index: 1100; width: min(340px, calc(100vw - 32px)); max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px -12px rgba(0,0,0,.45); font-size: .85rem; }
.emo-pop--up { right: 0; bottom: calc(100% + 8px); }
.emo-pop--down { left: 0; top: calc(100% + 8px); }
.emo-h { margin: 6px 2px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #64748b); }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 2px; }
.emo-b { display: inline-flex; align-items: center; justify-content: center; height: 36px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; padding: 0; }
.emo-b:hover, .emo-b:focus-visible { background: var(--line-soft); outline: none; }
.emo-b img { width: 26px; height: 26px; }
.emo-credit { margin-top: 6px; font-size: .68rem; color: var(--muted, #64748b); text-align: right; }
.chat .chat-bubble .emo { width: 1.3em; height: 1.3em; }
@media (max-width: 720px) { .emo-pop--up { right: -6px; } }
/* -- "Join free" popup for guests + "N viewing" on board rows (8 Nov 2026, like covers.com) -- */
.swh-join { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,10,25,.6); }
.swh-join[hidden] { display: none; }
.swh-join__box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 26px 22px; border-radius: 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.swh-join__x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.swh-join__x:hover { background: var(--line-soft); }
.swh-join__eyebrow { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2563eb; }
.swh-join__t { margin: 0 0 14px; font-size: 1.45rem; line-height: 1.2; }
.swh-join__list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.swh-join__list li { position: relative; padding-left: 28px; line-height: 1.4; }
.swh-join__list li::before { content: "\2713"; position: absolute; left: 0; top: .1em; width: 19px; height: 19px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 12px; font-weight: 800; line-height: 19px; text-align: center; }
.swh-join__cta { display: flex; justify-content: center; width: 100%; padding: 13px 16px; font-size: 1.02rem; }
.swh-join__in { margin: 12px 0 0; text-align: center; font-size: .9rem; color: var(--muted, #64748b); }
.swh-join__later { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
html.swh-join-open, html.swh-join-open body { overflow: hidden; }
.brow-view { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: .78rem; font-weight: 600; color: #e85d1f; }
/* -- "Join free" popup, bigger two-panel version (8 Nov 2026, like covers.com; Przemek 22:21 "we need something bigger") -- */
.swh-join__box { width: min(820px, 100%); padding: 0; display: grid; grid-template-columns: 1fr 1fr; overflow-x: hidden; overflow-y: auto; border: 0; outline: none; }
.swh-join__x { z-index: 2; }
.swh-join__side { padding: 30px 28px 24px; color: #fff; background:
  radial-gradient(circle at 15% 0%, rgba(255,255,255,.10), transparent 45%),
  repeating-radial-gradient(circle at 115% 115%, rgba(255,255,255,.05) 0 2px, transparent 2px 16px),
  linear-gradient(155deg, #0b1a3a 0%, #14316f 58%, #c2410c 135%); }
.swh-join__kicker { margin: 0 0 18px; text-align: center; font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.swh-join__art { display: grid; gap: 12px; margin: 0 0 18px; }
.swh-join__card { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: rgba(8,17,40,.78); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 14px 32px -14px rgba(0,0,0,.7); }
.swh-join__card-board { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9cb8ff; }
.swh-join__card-t { font-size: 1.12rem; line-height: 1.25; color: #fff; }
.swh-join__card-r { font-size: .8rem; font-weight: 600; color: #ffb48a; }
.swh-join__heads { display: flex; align-items: center; margin-top: 4px; }
.swh-join__heads img { width: 30px; height: 30px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid #0b1a3a; object-fit: contain; }
.swh-join__heads img:first-child { margin-left: 0; }
.swh-join__heads i { margin-left: 8px; font-style: normal; font-size: .76rem; color: #cfdaf7; }
.swh-join__chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: #fff; color: #0b1a3a; font-size: .82rem; font-weight: 700; transform: rotate(-3deg); box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
.swh-join__stat { justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #fff; color: #0b1a3a; transform: rotate(2deg); box-shadow: 0 10px 22px -10px rgba(0,0,0,.6); }
.swh-join__stat img { width: 40px; height: 40px; object-fit: contain; }
.swh-join__stat small { display: block; font-size: .7rem; color: #64748b; }
.swh-join__stat b { font-size: .95rem; }
.swh-join__side .swh-join__list { margin: 0; gap: 8px; }
.swh-join__side .swh-join__list li { color: #e8eefc; font-size: .92rem; }
.swh-join__main { display: flex; flex-direction: column; justify-content: center; padding: 36px 30px 26px; background: var(--surface); color: var(--ink); }
.swh-join__main .swh-join__t { margin: 0 0 8px; text-align: center; font-size: 1.75rem; }
.swh-join__lead { margin: 0 0 18px; text-align: center; color: var(--muted, #64748b); line-height: 1.45; }
.swh-join__form { display: grid; gap: 10px; }
.swh-join__email { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.swh-join__email:focus { outline: 2px solid #2563eb; outline-offset: 1px; }
.swh-join__form .swh-join__cta { min-height: 48px; font-size: 1.05rem; }
.swh-join__nl { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; line-height: 1.35; color: var(--muted, #64748b); }
.swh-join__nl input { margin-top: 2px; }
@media (max-width: 720px) {
  .swh-join__box { grid-template-columns: 1fr; }
  .swh-join__art { display: none; }
  .swh-join__side { padding: 22px 20px 14px; }
  .swh-join__kicker { margin-bottom: 12px; font-size: 1.15rem; }
  .swh-join__main { padding: 18px 20px 20px; }
  .swh-join__main .swh-join__t { font-size: 1.4rem; }
  .swh-join__x { color: #fff; }
}
/* Member badges (offer 8 Nov 2026, item 9): coloured pills with a Twemoji icon. --bd = badge colour (set inline). */
.swh-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.swh-badges--post { justify-content: center; max-width: 100%; }
.post__aside .swh-badges--post { width: 100%; }
.swh-badges--post .swh-badge { white-space: normal; text-align: left; max-width: 100%; font-size: .64rem; padding: 2px 6px 2px 4px; }
.swh-badges--profile { margin: 4px 0 8px; gap: 6px; }
.swh-badge { --bd: #4a5568; display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  color: var(--bd); background: color-mix(in srgb, var(--bd) 12%, transparent); border: 1px solid color-mix(in srgb, var(--bd) 45%, transparent);
  border-radius: 999px; padding: 2px 8px 2px 5px; white-space: nowrap; }
.swh-badge img { width: 14px; height: 14px; flex: none; }
.swh-badges--profile .swh-badge { font-size: .8rem; padding: 4px 11px 4px 7px; }
.swh-badges--profile .swh-badge img { width: 17px; height: 17px; }
.swh-badge--more { color: var(--muted); --bd: #718096; padding: 2px 7px; }
.swh-badge--ico { padding: 1px 3px; gap: 0; }
.swh-badge--ico img { width: 13px; height: 13px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .swh-badge { color: color-mix(in srgb, var(--bd) 55%, #fff); } }
:root[data-theme="dark"] .swh-badge { color: color-mix(in srgb, var(--bd) 55%, #fff); }
@media (max-width: 640px) { .swh-badges--post { justify-content: flex-start; } }
.bdg-page { max-width: 900px; }
.bdg-title { margin: 8px 0 4px; }
.bdg-intro { color: var(--muted); margin: 0 0 14px; }
.bdg-card { margin-bottom: 16px; }
.bdg-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.bdg-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.bdg-form input, .bdg-form select { min-width: 200px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); }
.bdg-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bdg-note { padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, #2f855a 12%, transparent); color: var(--ink); margin: 0 0 14px; }
.bdg-note--err { background: color-mix(in srgb, #c53030 12%, transparent); }
.bdg-tablewrap { overflow-x: auto; }
.bdg-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.bdg-table th, .bdg-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bdg-table form { margin: 0; }
.bdg-rm { padding: 4px 10px; font-size: .8rem; }

/* Smilies + message icons that pop (Jeff 9 Nov: "dont pop like youtube and discord"): bigger tiles that light up and grow
 * on hover in the post form and the emoji picker; a chat message of only 1-3 emoji is shown big, like Discord. */
td:has(> input[name="msg_icon"] + img) { position: relative; padding: 4px; }
td:has(> input[name="msg_icon"] + img) img[src*="/images/message_icons/"] { width: 32px; height: 32px; padding: 6px; box-sizing: content-box; border-radius: 12px; transition: transform .12s ease, background-color .12s ease; }
td:has(> input[name="msg_icon"] + img) > input[name="msg_icon"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
td > input[name="msg_icon"]:hover + img, td > input[name="msg_icon"]:focus-visible + img { background: var(--line-soft); transform: scale(1.18); }
td > input[name="msg_icon"]:checked + img { background: color-mix(in srgb, var(--accent-fill) 16%, transparent); box-shadow: 0 0 0 2px var(--accent-fill); }
td > input[name="msg_icon"]:focus-visible + img { outline: 2px solid var(--accent-fill); outline-offset: 2px; }
.FormattingToolsBG a:has(> img[src*="/images/smiley_icons/"]) { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; transition: background-color .12s ease; }
.FormattingToolsBG a > img[src*="/images/smiley_icons/"] { width: 30px; height: 30px; vertical-align: middle; transition: transform .12s ease; }
.FormattingToolsBG a:has(> img[src*="/images/smiley_icons/"]):hover, .FormattingToolsBG a:has(> img[src*="/images/smiley_icons/"]):focus-visible { background: var(--line-soft); }
.FormattingToolsBG a:hover > img[src*="/images/smiley_icons/"], .FormattingToolsBG a:focus-visible > img[src*="/images/smiley_icons/"] { transform: scale(1.22); }
.emo-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.emo-b { height: 44px; }
.emo-b img { width: 32px; height: 32px; transition: transform .12s ease; }
.emo-b:hover img, .emo-b:focus-visible img { transform: scale(1.22); }
.emo-pop { width: min(380px, calc(100vw - 32px)); max-height: 340px; }
.chat .chat-bubble.chat-bubble--jumbo { background: transparent; box-shadow: none; padding: 0 2px; }
.chat .chat-bubble--jumbo .emo { width: 48px; height: 48px; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { td > input[name="msg_icon"] + img, .FormattingToolsBG a > img, .emo-b img { transition: none; transform: none !important; } }

/* Footer: not-affiliated line (Jeff 9 Nov 16:40) */
.footer-legal { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }

/* Phone fix (12 Nov 2026, Jeff "problems from a phone"): the home column could not get narrower than its widest card
 * (1fr = minmax(auto, 1fr)), so the board list and panels were cut off on the right on 360-375 px phones. And the
 * Order 3 footer rules above (5 columns, community box up to 420 px) overrode the phone footer layout. */
@media (max-width: 900px) {
  .swh-home { grid-template-columns: minmax(0, 1fr); }
  .swh-home > * { min-width: 0; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-grid > * { min-width: 0; }
  .footer-brand-col, .footer-net { grid-column: 1 / -1; }
  .footer-net__site { max-width: 100%; }
}

/* Phones: room under the footer so the floating buttons (Live Chat, the two back-to-top arrows Jeff asked for on 18 Oct)
 * do not cover the last footer lines (12 Nov 2026). */
@media (max-width: 900px) { body { padding-bottom: 76px; } }

/* ===== Betting tools (QA preview 18 Nov 2026; Jeff 16-18 Nov): "Get Betting Tools" button + Game Predictions page ===== */
.btn-bet { background: linear-gradient(135deg, #f5b83d, #e8892b); color: #1b1203 !important; border: 0; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 10px rgba(232, 137, 43, .35); }
.btn-bet:hover { filter: brightness(1.06); }
.btn-bet svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 900px) { .btn-bet .bet-long { display: none; } }
@media (min-width: 901px) { .btn-bet .bet-short { display: none; } }
.hero__bettools { display: inline-flex; align-items: center; gap: 8px; margin: 12px auto 0; padding: 10px 18px; border-radius: var(--r-pill, 999px); }
.hero__bettools-wrap { text-align: center; }
.swh-join__bet { font-weight: 700; color: #e8892b; }
.gp-page { padding-top: 24px; padding-bottom: 48px; }
.gp-banner { margin: 0 0 18px; padding: 9px 14px; border-radius: var(--r, 10px); background: rgba(245, 184, 61, .14); border: 1px solid rgba(245, 184, 61, .45); color: var(--ink); font-size: .86rem; font-weight: 600; }
.gp-head h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; margin: 0 0 6px; }
.gp-lead { color: var(--muted); margin: 0 0 18px; max-width: 680px; }
.gp-record { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.gp-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); padding: 12px 14px; }
.gp-stat small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.gp-stat strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.15; display: block; }
.gp-stat em { font-style: normal; color: var(--muted); font-size: .78rem; }
.gp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); overflow: hidden; display: flex; flex-direction: column; }
.gp-top { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.gp-top b { color: var(--ink); }
.gp-tbl { width: 100%; border-collapse: collapse; }
.gp-tbl th { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-align: center; padding: 9px 6px 3px; }
.gp-tbl th:first-child { text-align: left; padding-left: 14px; }
.gp-tbl td { padding: 7px 6px; text-align: center; vertical-align: middle; }
.gp-tbl td.gp-team { text-align: left; padding-left: 14px; }
.gp-t { display: flex; align-items: center; gap: 10px; }
.gp-t img { width: 46px; height: 39px; object-fit: contain; flex: none; }
.gp-t b { display: block; font-size: .95rem; line-height: 1.2; }
.gp-t small { color: var(--muted); font-size: .76rem; margin-right: 6px; }
.gp-form { display: inline-flex; gap: 3px; vertical-align: middle; }
.gp-f { width: 15px; height: 15px; border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 800; line-height: 15px; text-align: center; color: #fff; }
.gp-f--W { background: #16a34a; } .gp-f--L { background: #dc2626; } .gp-f--T { background: #64748b; }
.gp-box { display: inline-block; min-width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.gp-box small { display: block; color: var(--muted); font-size: .66rem; font-weight: 600; }
.gp-box.gp-pick { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.gp-pct { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.gp-pct.gp-fav { color: var(--brand); }
.gp-pred { margin: 6px 14px 0; padding: 11px 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.gp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gp-row b { font-family: var(--font-display); font-size: 1.3rem; }
.gp-sample { font-style: normal; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #b7791f; background: rgba(245, 184, 61, .16); border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.gp-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin: 10px 0 4px; background: var(--line); }
.gp-bar span:first-child { background: #94a3b8; } .gp-bar span:last-child { background: var(--brand); }
.gp-bar-l { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.gp-sec { padding: 11px 14px 0; }
.gp-sec h4 { margin: 0 0 6px; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.gp-ai h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; }
.gp-ai p { margin: 0; color: var(--muted); font-size: .88rem; }
.gp-inj { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-inj span { font-size: .8rem; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.gp-inj b.gp-o { color: #dc2626; } .gp-inj b.gp-q { color: #d97706; }
.gp-note { color: var(--muted); font-size: .85rem; margin: 0; }
.gp-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; margin-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.gp-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
.gp-gate { margin: 16px 0 0; padding: 22px; border-radius: var(--r-lg, 14px); border: 1px dashed var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); text-align: center; }
.gp-gate b { font-family: var(--font-display); font-size: 1.4rem; display: block; }
.gp-gate p { color: var(--muted); margin: 6px 0 14px; }
.gp-legal { margin-top: 22px; font-size: .78rem; color: var(--muted); }
@media (max-width: 900px) { .gp-grid { grid-template-columns: minmax(0, 1fr); } .gp-record { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .gp-t img { width: 38px; height: 32px; } .gp-box { min-width: 52px; font-size: .82rem; padding: 5px 6px; } .gp-form { display: none; } }
/* Game Predictions with real model data (20 Nov): ratings/ESPN line, leans note, published stamp, last-7-days line */
.gp-meta { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }
.gp-lw { margin: -12px 0 18px; }
.gp-moved, .gp-qb { display: block; margin-top: 4px; font-size: .78rem; }
.gp-pub { display: block; font-size: .72rem; margin-top: 2px; }
.gp-noimg { width: 46px; height: 39px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .7rem; font-weight: 800; color: var(--muted); }
@media (max-width: 560px) { .gp-noimg { width: 32px; height: 28px; font-size: .6rem; } }
.gp-sec .gp-note b { color: var(--ink); }

/* phone: the gold button stays in the top bar as an icon (Jeff: "top right on every page"), and opens the menu list */
@media (max-width: 900px) {
  .nav-actions .btn.btn-bet { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; min-height: 40px; }
  .nav-links .menu-only.menu-bet { background: linear-gradient(135deg, #f5b83d, #e8892b); color: #1b1203; font-weight: 800; justify-content: center; }
}
@media (max-width: 640px) { .nav-actions .btn.btn-bet .bet-short, .nav-actions .btn.btn-bet .bet-long { display: none; } .nav-actions .btn.btn-bet { padding: 8px 10px; } .nav-actions .btn.btn-bet svg { width: 20px; height: 20px; } }
/* phone: compact game table so spread, total and win chance fit at 360-390 px */
@media (max-width: 560px) {
  .gp-tbl th { padding: 8px 3px 2px; font-size: .62rem; }
  .gp-tbl th:first-child, .gp-tbl td.gp-team { padding-left: 10px; }
  .gp-tbl td { padding: 6px 3px; }
  .gp-t { gap: 7px; } .gp-t img { width: 32px; height: 28px; } .gp-t b { font-size: .84rem; } .gp-t small { font-size: .7rem; }
  .gp-box { min-width: 0; padding: 5px 6px; font-size: .8rem; } .gp-box small { font-size: .58rem; }
  .gp-pct { font-size: 1.05rem; }
  .gp-top, .gp-foot { padding-left: 10px; padding-right: 10px; } .gp-pred { margin-left: 10px; margin-right: 10px; } .gp-sec { padding-left: 10px; padding-right: 10px; }
}

/* phones under 430 px: four 38 px top-bar buttons so the site name stays whole; game table drops the Win chance column
   (the same % is in the bar under "Predicted score") */
@media (max-width: 430px) {
  .nav-actions { gap: 6px; }
  .nav-actions .theme-toggle, .nav-actions .color-open, .nav-toggle, .nav-actions .btn.btn-bet { width: 38px; height: 38px; min-height: 38px; padding: 0; }
}
@media (max-width: 560px) { .gp-tbl th:nth-child(4), .gp-tbl td:nth-child(4) { display: none; } }

/* Jeff 19 Nov: Free Betting Tools chip under the search box (item 1) + Free Betting Tools banner in the Join pop-up (item 6) */
.swh-join__promo { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #fff4e6, #ffe6c7); border: 1px solid #f5b867; color: #4a2a05; text-decoration: none; }
.swh-join__promo b { display: block; font-size: 1rem; color: #b45309; }
.swh-join__promo small { display: block; font-size: .85rem; line-height: 1.35; color: #5b3a12; }
.swh-join__promo-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f59e0b; color: #fff; }
.swh-join__promo-ico svg { width: 22px; height: 22px; }
.swh-join__promo:hover { border-color: #e8892b; }
.chips .chip--bet { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #f6a93b, #e8892b); border-color: #f2a03a; color: #1f1300; }
.chips .chip--bet:hover, .chips .chip--bet:focus-visible { background: linear-gradient(135deg, #f8b75a, #ee9532); color: #1f1300; }
/* Jeff 19 Nov 16:29: real faces on the betting-tools ads (AI photos, no rights issue) */
.bet-face { width: 24px; height: 24px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.btn-bet { display: inline-flex; align-items: center; gap: 6px; }
.nav-actions .btn-bet .bet-face { width: 20px; height: 20px; margin-left: -4px; border-width: 1.5px; }
.chips .chip--bet .bet-face { width: 22px; height: 22px; margin-left: -6px; }
@media (max-width: 640px) { .nav-actions .btn.btn-bet .bet-face { width: 30px; height: 30px; border-width: 2px; } }
.swh-join__promo-faces { flex: none; display: flex; }
.promo-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.promo-face + .promo-face { margin-left: -14px; }
@media (max-width: 430px) { .promo-face { width: 34px; height: 34px; } .promo-face + .promo-face { margin-left: -12px; } }
@media (min-width: 861px) and (max-width: 1340px) { .nav-actions .btn-bet .bet-face { display: none; } }   /* keep Fantasy Football in the bar at 1280 px */
/* 20 Nov: staff links in one "Staff" dropdown, so the top bar keeps room for the menu (Jeff is admin) */
.nav-staff { position: relative; }
.nav-staff > summary { list-style: none; cursor: pointer; }
.nav-staff > summary::-webkit-details-marker { display: none; }
.nav-staff__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 170px; display: grid; padding: 6px; border-radius: 12px; background: var(--surface, #fff); border: 1px solid var(--line, #dbe3ef); box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
.nav-staff__menu a { padding: 8px 12px; border-radius: 8px; color: var(--text, #1e293b); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-staff__menu a:hover, .nav-staff__menu a:focus-visible { background: var(--surface-2, #eef2f8); }
@media (max-width: 860px) { .nav-staff { display: none; } }
/* 20 Nov: links in posts use the post font (the stock FUDforum 'a:link' rule set Verdana 'small'); clear in light + dark */
.post__content a, .MsgBodyText a { font-family: inherit; font-size: inherit; line-height: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.post__content a:hover, .MsgBodyText a:hover { text-decoration-thickness: 2px; }
/* 20 Nov: ad links use the forum font (the stock 'a:link' rule made the in-post ad 13px Verdana) */
.swh-ad { font-family: var(--font-body); }
.swh-ad a, .swh-ad a:link, .swh-ad a:visited { font-family: var(--font-body); font-size: inherit; line-height: inherit; }
/* 20 Nov: in-post ad text: no button background (the generated critical CSS gives every ad's last span the button fill) */
.swh-ad.swh-ad-inpost .swh-ad-body > a > span:last-child { background: none !important; color: inherit; }

/* Register page: "why join" column next to the form, for new members (Jeff 22 Nov 2026). Phones: column on top. */
.reg-split { display: block; }
.reg-split:has(> .reg-pitch) { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.reg-main { min-width: 0; }
.reg-pitch { position: sticky; top: 84px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.reg-pitch__art { position: relative; height: 230px; overflow: hidden; background: #0b1a3a; }
.reg-pitch__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.reg-pitch__player { position: absolute; left: 6px; bottom: -40px; height: 260px; width: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.reg-pitch__kicker, .reg-pitch__t { position: relative; margin: 0; padding-left: 46%; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.reg-pitch__kicker { padding-top: 70px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fde68a; }
.reg-pitch__t { padding-right: 14px; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; font-weight: 700; }
.reg-pitch__list { margin: 16px 18px 6px; padding: 0; list-style: none; display: grid; gap: 9px; }
.reg-pitch__list li { position: relative; padding-left: 26px; font-size: .92rem; line-height: 1.4; }
.reg-pitch__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.reg-pitch__promo { margin: 12px 18px 6px; }
.reg-pitch__in { margin: 6px 18px 16px; font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) {
  .reg-split:has(> .reg-pitch) { grid-template-columns: 1fr; }
  .reg-pitch { position: static; }
  .reg-pitch__art { height: 190px; }
  .reg-pitch__player { height: 220px; }
  .reg-pitch__kicker { padding-top: 56px; }
}