/* ScholarForum "college" look, 2026-12-03.
   Loaded by inc/plugins/sf_college.php after the theme CSS. Delete the plugin
   (or this file) and the site is back to the old look. Navy + gold from the logo. */

:root {
	--sf-navy: #13294b;
	--sf-navy-2: #1d3a66;
	--sf-gold: #b8892d;
	--sf-gold-soft: #f3ead6;
	--sf-cream: #f7f5f0;
	--sf-line: #e3ddd0;
	--sf-text: #1f2933;
	--sf-muted: #5f6b7a;
	--sf-link: #1d4e89;
	--sf-serif: Georgia, "Times New Roman", serif;
}

body {
	background: var(--sf-cream);
	color: var(--sf-text);
}

a:link, a:visited { color: var(--sf-link); }
a:hover, a:active { color: var(--sf-gold); }

/* --- header ------------------------------------------------------------- */
#header {
	background: #fff;
	border-bottom: 3px solid var(--sf-gold);
}
#logo {
	background: #fff;
	border-bottom: 0;
	padding: 14px 0 10px;
}
#logo img { background: transparent; }
.sf-tagline {
	display: inline-block;
	vertical-align: middle;
	margin-left: 14px;
	padding-left: 14px;
	border-left: 1px solid var(--sf-line);
	font-family: var(--sf-serif);
	font-style: italic;
	font-size: 15px;
	color: var(--sf-muted);
}
#logo ul.top_links a { color: var(--sf-navy); }
#panel .upper {
	background: var(--sf-navy);
	border-top: 0;
	border-bottom: 0;
	color: #e8edf5;
}
#panel .upper a:link, #panel .upper a:visited { color: #fff; }
#panel .upper a:hover { color: #f0d79a; }

/* --- page body ------------------------------------------------------------ */
#content {
	background: #fff;
	border: 1px solid var(--sf-line);
	border-top: 0;
	border-radius: 0 0 6px 6px;
	padding: 18px 22px 24px;
	box-sizing: border-box;
	max-width: 100%;
}
.navigation { color: var(--sf-muted); }

h1, h2, h3,
.sf-home-intro h1, .sf-home-intro h2,
.sf-guide h1, .sf-guide h2 {
	font-family: var(--sf-serif);
	color: var(--sf-navy);
	font-weight: bold;
	letter-spacing: 0;
}
.sf-home-intro {
	border-bottom: 1px solid var(--sf-line);
	padding-bottom: 14px;
	margin-bottom: 10px;
}
.sf-home-intro h1 { font-size: 30px; }
.sf-home-intro p { color: #3a4654; }

.sf-home-cta a, a.button, .button, input.button, button.button {
	background: var(--sf-navy);
	border: 1px solid var(--sf-navy);
	color: #fff !important;
	border-radius: 4px;
}
.sf-home-cta a:hover, a.button:hover, input.button:hover {
	background: var(--sf-navy-2);
	color: #fff !important;
}
.sf-home-links a {
	background: #fff;
	border: 1px solid var(--sf-line);
	border-radius: 999px;
	color: var(--sf-navy);
	padding: 7px 14px;
}
.sf-home-links a:hover {
	border-color: var(--sf-gold);
	background: var(--sf-gold-soft);
	color: var(--sf-navy);
}

/* --- tables (forum lists, threads, posts) --------------------------------- */
table.tborder {
	background: #fff;
	border: 1px solid var(--sf-line);
	border-radius: 6px;
	overflow: hidden;
}
.thead {
	background: var(--sf-navy) !important;
	border-bottom: 3px solid var(--sf-gold);
	color: #fff;
	padding: 10px 12px;
}
.thead strong { font-family: var(--sf-serif); font-size: 15px; letter-spacing: .2px; }
.thead a:link, .thead a:visited, .thead .smalltext { color: #e8edf5; }
.thead a:hover { color: #f0d79a; }
.thead .float_right, .thead .float_right strong { font-family: inherit; font-size: 12px; font-weight: normal; }
.trow_sep { background: var(--sf-cream) !important; color: var(--sf-navy); border-top: 1px solid var(--sf-line); border-bottom: 1px solid var(--sf-line); }
.tcat {
	background: var(--sf-gold-soft) !important;
	border-top: 0;
	border-bottom: 1px solid var(--sf-line);
	color: var(--sf-navy);
}
.tcat a:link, .tcat a:visited { color: var(--sf-navy); }
.trow1, .trow2 {
	background: #fff;
	border-top: 1px solid #f0ece3;
	border-bottom: 0;
}
.trow2 { background: #fcfbf8; }
.tfoot {
	background: var(--sf-cream);
	border-top: 1px solid var(--sf-line);
	color: var(--sf-muted);
}
.tfoot a:link, .tfoot a:visited { color: var(--sf-navy); }

/* forum names a little larger, descriptions calmer */
.trow1 > strong > a, .trow2 > strong > a { font-size: 15px; }
.trow1 .smalltext, .trow2 .smalltext { color: var(--sf-muted); }

/* --- posts ------------------------------------------------------------------ */
.post { border-color: var(--sf-line); }
.post .post_author {
	background: var(--sf-cream);
	border-bottom: 1px solid var(--sf-line);
}
.post .post_head { border-bottom: 1px solid #f0ece3; }
.post_body {
	font-size: 15px;
	line-height: 1.7;
	color: var(--sf-text);
}
.post .post_controls { background: #fff; border-bottom: 1px solid var(--sf-line); }

/* --- footer ---------------------------------------------------------------- */
#footer .upper {
	background: var(--sf-navy);
	border-top: 3px solid var(--sf-gold);
	border-bottom: 0;
	color: #c9d3e3;
}
#footer .upper a:link, #footer .upper a:visited { color: #e8edf5; }
#footer .upper a:hover { color: #f0d79a; }
#footer .lower { background: transparent; color: var(--sf-muted); }

/* --- phones: make lists fit the screen instead of scrolling sideways ---------- */
@media (max-width: 767px) {
	.sf-tagline {
		display: block;
		margin: 4px 0 0;
		padding: 0;
		border: 0;
		font-size: 13px;
	}
	#logo ul.top_links { float: none; text-align: center; margin-top: 6px; }
	#content { padding: 12px 10px 18px; border-left: 0; border-right: 0; border-radius: 0; }
	.sf-home-intro h1 { font-size: 23px; }

	/* forum lists (rows that start with the forum status icon): keep icon + name */
	table.tborder:has(.forum_status) { display: table; overflow: visible; }
	table.tborder:has(.forum_status) tr:has(> td.tcat) > td.tcat:nth-child(n+2),
	table.tborder:has(.forum_status) tr:has(.forum_status) > td:nth-child(n+3) { display: none; }
	table.tborder:has(.forum_status) td .smalltext {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* thread lists: keep status icon + title/author, hide counts, rating, last post */
	table.tborder:has(tr.inline_row) { display: table; overflow: visible; }
	table.tborder:has(tr.inline_row) tr.inline_row > td:nth-child(2),
	table.tborder:has(tr.inline_row) tr.inline_row > td:nth-child(n+4),
	table.tborder:has(tr.inline_row) tr:has(> td.tcat) > td.tcat:nth-child(n+2) { display: none; }

	/* table header side links (Threaded Mode, Mark read) hidden on phones; title stays */
	.thead .float_right { display: none; }

	/* posts: fit the screen, wrap long words */
	table.tborder:has(#posts) { display: table; table-layout: fixed; width: 100%; overflow: visible; }
	.post_body { overflow-wrap: anywhere; }

	/* panel links keep their icon on the same line */
	#panel .upper a { white-space: nowrap; }
	#panel .upper a.login, #panel .upper a.lost_password { display: inline; padding: 0 0 0 20px; }
	#panel .upper a.register { display: inline; padding: 0 20px 0 0; }
	.post .post_content { box-sizing: border-box; max-width: 100%; padding-right: 12px; }

	/* header panel: welcome text and links wrap neatly */
	#panel .upper .wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
}

/* v2026-12-03b */
