@import url("../../prosilver/theme/stylesheet.css");

/* MX5Ireland v3 — intentionally minimal, based on prosilver */
:root {
	--mx5-navy:#082a43;
	--mx5-blue:#087eb6;
	--mx5-blue2:#0792cf;
	--mx5-red:#df1728;
	--mx5-bg:#edf4f8;
	--mx5-line:#d3e0e8;
	--mx5-text:#173247;
}

html, body {
	background:var(--mx5-bg);
	color:var(--mx5-text);
}
body { font-size:13px; }

.wrap {
	max-width:1440px;
	margin:0 auto;
	padding:0 28px;
	background:transparent;
	border:0;
}

/* ===== HEADER =====
   No separate site logo. No phpBB logo.
   Only a very thin navy rule above the original MX5Ireland banner. */
#page-header {
	margin:0 -28px 18px;
}

.headerbar {
	position:relative;
	height:auto;
	min-height:0;
	margin:0;
	padding:6px 0 0;              /* thin navy line */
	border:0;
	border-radius:0;
	background:var(--mx5-navy);
	overflow:visible;
	box-shadow:none;
}

/* Completely suppress prosilver's separate logo/title block */
#site-description,
#logo,
.site_logo,
#site-description h1,
#site-description p {
	display:none !important;
}

/* Display the supplied banner at its native proportions, without cover crop */
.headerbar::after {
	content:"";
	display:block;
	width:100%;
	aspect-ratio:1430 / 310;
	background:#102b3b url("./images/mx5ireland-road-banner.png") center center / 100% 100% no-repeat;
}

/* Search is no longer in/on the banner */
.search-header {
	position:absolute;
	z-index:20;
	top:calc(100% + 52px);
	right:28px;
	margin:0;
}
.search-header .inputbox {
	width:210px;
	height:28px;
	background:#fff;
	border:1px solid #b7cbd9;
	color:#29465b;
}
.search-header .inputbox::placeholder {
	color:#718494;
}

/* Utility/breadcrumb area directly under the banner */
#page-header .navbar {
	position:relative;
	margin:0;
	padding:9px 18px;
	min-height:36px;
	border:0;
	border-radius:0 0 5px 5px;
	background:#dcebf4;
	color:#123b58;
}
#page-header .navbar a { color:#00649f; }
#page-header .navbar a:hover { color:var(--mx5-red); }

/* ===== BODY ===== */
#page-body { margin-top:18px; }

a, a:link, a:visited { color:#0068a8; }
a:hover { color:var(--mx5-red); text-decoration:none; }

.forabg,
.forumbg {
	margin:0 0 14px;
	padding:0;
	background:#fff;
	border:1px solid var(--mx5-line);
	border-radius:7px;
	overflow:hidden;
	box-shadow:0 2px 7px rgba(18,58,82,.04);
}

.forabg .header,
.forumbg .header {
	padding:9px 13px;
	background:linear-gradient(90deg,var(--mx5-blue),var(--mx5-blue2));
	color:#fff;
}

.forabg .header a,
.forumbg .header a,
.forabg .header dt,
.forumbg .header dt {
	color:#fff;
	font-weight:700;
}

ul.topiclist li { border-top-color:var(--mx5-line); }

li.row {
	background:#fff;
	border-bottom-color:var(--mx5-line);
	transition:background .12s ease;
}
li.row:hover { background:#f6fbfe; }

a.forumtitle,
a.topictitle,
li.row dt a {
	color:#0068a8;
	font-weight:700;
}
a.forumtitle:hover,
a.topictitle:hover,
li.row dt a:hover {
	color:var(--mx5-red);
}

.lastpost { color:#61798a; }

/* Existing phpBB panels/posts — clean rather than redesigned */
.panel,
.post {
	background:#fff;
	border:1px solid var(--mx5-line);
	border-radius:7px;
	box-shadow:0 2px 7px rgba(18,58,82,.035);
}
.bg1 { background:#fff; }
.bg2 { background:#f8fbfd; }
.postprofile { border-color:var(--mx5-line); }

h2, h3 { color:var(--mx5-navy); }

.button,
.button1,
.button2,
input.button1,
input.button2 {
	border-radius:5px;
}
.button1,
input.button1,
a.button1 {
	background:var(--mx5-blue2);
	border-color:var(--mx5-blue);
	color:#fff;
}
.badge,
.notification-count { background:var(--mx5-red); }

/* Footer */
#page-footer { margin-top:24px; }
#page-footer .navbar {
	background:var(--mx5-navy);
	color:#dceaf3;
}
#page-footer .navbar a { color:#fff; }

/* Tablet */
@media (max-width:900px) {
	.wrap { padding:0 12px; }
	#page-header {
		margin-left:-12px;
		margin-right:-12px;
	}
	.search-header {
		right:14px;
	}
}

/* Mobile: preserve banner proportions; search falls back to phpBB's normal
   compact behaviour rather than crowding the breadcrumb row. */
@media (max-width:700px) {
	.headerbar { padding-top:4px; }
	.headerbar::after {
		aspect-ratio:1430 / 310;
		background-size:100% 100%;
	}
	.search-header { display:none; }
	.forabg,
	.forumbg,
	.panel,
	.post { border-radius:5px; }
}


/* v3.1: search aligns horizontally with Board index / breadcrumbs */
@media (min-width:701px) {
	#page-header .navbar:last-child {
		padding-right:300px;
	}
}
