/*
 * Portal look of xp.winupdate.like (Nov 2026), shared by the front page and every inner Joomla page.
 * Keeps the classic parts: table layout, logo, Verdana text, #385C88 links, underlined text links.
 * Adds the newer surface: centred page sheet (#nmpage), menu band (.nmnav), framed square sidebar blocks,
 * Inter headlines and menu, quiet meta lines and a footer band.
 * Linked by index.php after blocks.css; mobile.css still stacks the columns below 860 px.
 * Rules: square corners, no all-caps captions, no serif fonts.
 */

/* Inter 4.1 (SIL OFL 1.1, ../fonts/Inter-LICENSE.txt), self-hosted: weights 400-700, Latin + Cyrillic subset */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(../fonts/inter-cyr-lat.woff2) format("woff2");
}

:root {
	--nm-ink: #1e293b;
	--nm-muted: #64748b;
	--nm-line: #dfe5ec;
	--nm-soft: #f3f6fa;
	--nm-accent: #385C88;
	--nm-accent-dk: #27476f;
	--nm-page: #e8ecf1;
	--nm-head: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
	background: var(--nm-page);
	color: var(--nm-ink);
	font-size: 13px;
	line-height: 1.55;
}

/* ---------- page sheet ---------- */

#nmpage {
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	background: #fff;
	border-top: 4px solid var(--nm-accent);
}

/* ---------- header ---------- */

table.header {
	height: auto;
	border: 0;
	border-collapse: collapse;
}

table.header > tbody > tr > td {
	padding-top: 14px;
	padding-bottom: 12px;
}

/* ---------- top menu band ---------- */

.nmnav {
	background: var(--nm-accent);
	border-bottom: 3px solid var(--nm-accent-dk);
}

.nmnav table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.nmnav td {
	padding: 0;
}

#mainlevel-nav td {
	padding: 0 0 0 20px;
}

#mainlevel-nav span {
	display: inline-block;
}

a.mainlevel-nav:link,
a.mainlevel-nav:visited {
	display: inline-block;
	padding: 9px 13px;
	color: #fff;
	font-family: var(--nm-head);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
}

a.mainlevel-nav:hover,
a.mainlevel-nav:focus,
a#active_menu-nav {
	background: var(--nm-accent-dk);
	color: #fff;
	text-decoration: underline;
}

a.mainlevel-nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

/* ---------- columns ---------- */

#ipbwrapper {
	margin: 18px 24px 22px;
}

td.maincontent {
	padding-right: 22px;
}

td.legals,
td.left,
td.right {
	padding-top: 0;
}

/* no "right" modules: the "left" blocks take the full sidebar width like the ones above */
td.right:not(:has(*)) {
	width: 0;
	padding: 0;
}

/* ---------- blocks (sidebar and the rest) ---------- */

table.moduletable {
	height: auto;
	margin: 0 0 14px;
	border: 1px solid var(--nm-line);
	-moz-border-radius: 0;
	-o-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
	border-collapse: separate;
	background: #fff;
}

table.moduletable th {
	height: auto;
	padding: 0;
	border-bottom: 2px solid var(--nm-accent);
	background: var(--nm-soft);
	text-align: left;
}

table.moduletable th h2,
table.moduletable th h3 {
	margin: 0;
	padding: 7px 12px 6px;
	color: var(--nm-ink);
	font: bold 15px/1.3 var(--nm-head);
}

td.moduletable {
	padding: 10px 12px;
}

td.moduletable ul {
	margin: 0;
	padding: 0 0 0 14px;
}

/* sidebar widgets drawn with cards: square like the frames around them */
.nmb-wx-card,
.nmb-wx-facts li,
.nmcal-card,
.nmcal-day {
	border-radius: 0;
}

/* ---------- content ---------- */

.componentheading {
	margin: 0 0 12px;
	padding: 0;
	border-bottom: 2px solid var(--nm-accent);
}

.componentheading h1 {
	margin: 0;
	padding: 0 0 5px;
	color: var(--nm-ink);
	font: bold 22px/1.3 var(--nm-head);
}

.componentheading:has(h1:empty) {
	display: none;
}

.contentheading {
	margin: 0 0 6px;
	border-bottom: 1px solid var(--nm-line);
}

.contentheading h1,
.contentheading h2 {
	margin: 0;
	padding: 0 0 4px;
	color: var(--nm-ink);
	font: bold 20px/1.3 var(--nm-head);
}

/* two-column news list (front page, section and category blogs) */
table.blog > tbody > tr > td > table > tbody > tr > td[valign=top] {
	padding: 0 10px;
}

table.blog > tbody > tr > td > table > tbody > tr > td[valign=top]:first-child {
	padding-left: 0;
}

table.blog > tbody > tr > td > table > tbody > tr > td[valign=top]:last-child {
	padding-right: 0;
}

table.blog td.contentheading {
	padding-top: 16px;
}

table.blog .contentheading h1,
table.blog .contentheading h2 {
	font-size: 17px;
}

a.contentpagetitle:link,
a.contentpagetitle:visited,
.contentheading a:link,
.contentheading a:visited {
	color: var(--nm-ink);
	text-decoration: none;
}

a.contentpagetitle:hover,
.contentheading a:hover {
	color: var(--nm-accent);
	text-decoration: underline;
}

td.buttonheading {
	width: 20px;
	vertical-align: top;
	padding-top: 4px;
	opacity: .65;
}

td.buttonheading:hover {
	opacity: 1;
}

.contentpaneopen td.small,
.createdate,
.modifydate {
	color: var(--nm-muted);
	font-size: 12px;
}

.contentpaneopen img[align=left],
.contentpaneopen img[style*="float: left"],
.contentpaneopen img[style*="float:left"] {
	margin: 2px 14px 8px 0;
}

a.readon:link,
a.readon:visited {
	color: var(--nm-accent);
	font-weight: bold;
	text-decoration: none;
}

a.readon:hover {
	text-decoration: underline;
}

.sectiontableheader {
	padding: 5px 6px;
	border-bottom: 2px solid var(--nm-accent);
	background: var(--nm-soft);
	text-align: left;
}

.sectiontableentry1,
.sectiontableentry2 {
	padding: 5px 6px;
	border-bottom: 1px solid var(--nm-line);
}

.sectiontableentry2 {
	background: #f8fafc;
}

.pagenav,
.pagenav_prev,
.pagenav_next {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid var(--nm-line);
	background: #fff;
	color: var(--nm-muted);
	line-height: 1.4;
}

a.pagenav,
.pagenav_prev a,
.pagenav_next a {
	color: var(--nm-accent);
}

a.pagenav:hover {
	background: var(--nm-accent);
	border-color: var(--nm-accent);
	color: #fff;
}

.back_button {
	padding: 8px 0 14px;
}

.back_button a {
	color: var(--nm-muted);
}

/* ---------- footer ---------- */

table.footer {
	border: 0;
	border-top: 3px solid var(--nm-accent);
	border-collapse: collapse;
	background: var(--nm-soft);
	color: var(--nm-muted);
}

table.footer td {
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 12px;
	line-height: 1.6;
}

table.footer tr + tr td {
	padding: 0;
}

table.footer a {
	color: var(--nm-accent);
}

/* ---------- wide screens: page sheet on a tinted page ---------- */

@media (min-width: 1300px) {
	#nmpage {
		margin-top: 0;
		margin-bottom: 24px;
		border-left: 1px solid var(--nm-line);
		border-right: 1px solid var(--nm-line);
		border-bottom: 1px solid var(--nm-line);
	}
}

/* ---------- phones (mobile.css does the stacking) ---------- */

@media (max-width: 860px) {
	#ipbwrapper {
		margin: 10px 8px 12px;
	}

	td.maincontent {
		padding-right: 0;
	}

	#mainlevel-nav td {
		padding: 0 6px;
	}

	#mainlevel-nav td span {
		margin: 0;
	}

	a.mainlevel-nav:link,
	a.mainlevel-nav:visited {
		padding: 8px 9px;
		font-size: 14px;
	}

	.contentheading h1,
	.contentheading h2 {
		font-size: 18px;
	}

	/* two-column news list: one column */
	table.blog,
	table.blog > tbody,
	table.blog > tbody > tr,
	table.blog > tbody > tr > td,
	table.blog > tbody > tr > td > table,
	table.blog > tbody > tr > td > table > tbody,
	table.blog > tbody > tr > td > table > tbody > tr,
	table.blog > tbody > tr > td > table > tbody > tr > td[valign=top] {
		display: block;
		width: auto !important;
	}

	table.blog > tbody > tr > td > table > tbody > tr > td[valign=top] {
		padding: 0 !important;
	}
}

/* front page: the logo is the page's h1 (templates/.../index.php), drawn exactly like the plain logo link */
h1.nmlogo {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: 0;
}
