/* ============================================================================
 * MPH BOARD PORTAL
 * ============================================================================
 * Palette: orange #FAA61C, charcoal blue #353F51, dusk #465DAA,
 *          powder #A8B6DE, cream #FBF6EE, white.
 * Prefix: mphbd-
 * ========================================================================= */

.mphbd-wrap {
	--mphbd-orange: #faa61c;
	--mphbd-orange-deep: #de8c05;
	--mphbd-navy: #353f51;
	--mphbd-navy-deep: #262f3c;
	--mphbd-blue: #465daa;
	--mphbd-powder: #a8b6de;
	--mphbd-powder-soft: rgba(168, 182, 222, 0.18);
	--mphbd-white: #ffffff;
	--mphbd-head: "Poppins", -apple-system, sans-serif;
	--mphbd-body: "Glacial Indifference", "Poppins", -apple-system, sans-serif;

	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: var(--mphbd-body);
	color: var(--mphbd-navy);
}
.mphbd-wrap *,
.mphbd-wrap *::before,
.mphbd-wrap *::after {
	box-sizing: border-box;
}

/* ============================================================
   GATE
   ============================================================ */

.mphbd-gate {
	max-width: 460px;
	margin: 0 auto;
	padding: 40px 36px 34px;
	text-align: center;
	background: var(--mphbd-white);
	border: 1px solid var(--mphbd-powder);
	border-radius: 12px;
	box-shadow: 0 18px 44px rgba(38, 47, 60, 0.1);
}
.mphbd-gate-icon {
	width: 54px;
	height: 54px;
	margin: 0 auto 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--mphbd-powder-soft);
	color: var(--mphbd-blue);
}
.mphbd-gate-icon svg {
	width: 26px;
	height: 26px;
}
.mphbd-gate-title {
	margin: 0 0 8px;
	font-family: var(--mphbd-head);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.3px;
	color: var(--mphbd-navy);
}
.mphbd-gate-sub {
	margin: 0 0 22px;
	font-size: 16px;
	color: rgba(53, 63, 81, 0.75);
}
.mphbd-gate-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mphbd-gate-form input[type="password"] {
	width: 100%;
	font-family: var(--mphbd-body);
	font-size: 17px;
	text-align: center;
	letter-spacing: 1px;
	color: #2c2c2c;
	-webkit-text-fill-color: #2c2c2c;
	background-color: var(--mphbd-white);
	border: 1px solid var(--mphbd-powder);
	border-radius: 6px;
	padding: 14px 16px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.mphbd-gate-form input[type="password"]:focus {
	outline: none;
	border-color: var(--mphbd-orange);
	box-shadow: 0 0 0 3px rgba(250, 166, 28, 0.18);
}
.mphbd-gate-note {
	margin: 20px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(53, 63, 81, 0.6);
}
.mphbd-error {
	background: rgba(192, 57, 43, 0.08);
	border-left: 4px solid #c0392b;
	border-radius: 6px;
	padding: 12px 14px;
	margin: 0 0 18px;
	font-size: 15px;
	color: #a5342a;
	text-align: left;
}
.mphbd-warn {
	background: rgba(250, 166, 28, 0.12);
	border-left: 4px solid var(--mphbd-orange);
	border-radius: 6px;
	padding: 12px 14px;
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--mphbd-navy);
	text-align: left;
}

/* Buttons -- pinned so a theme cannot restyle them. */
button.mphbd-btn,
a.mphbd-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-block;
	font-family: var(--mphbd-head);
	font-size: 14px;
	font-weight: 600 !important;
	letter-spacing: 0.8px !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	text-align: center;
	color: var(--mphbd-navy-deep) !important;
	background-image: none !important;
	background-color: var(--mphbd-orange) !important;
	border: 2px solid var(--mphbd-orange) !important;
	border-radius: 4px !important;
	box-shadow: none !important;
	padding: 14px 26px !important;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
button.mphbd-btn:hover:not(:disabled),
a.mphbd-btn:hover {
	background-color: var(--mphbd-orange-deep) !important;
	border-color: var(--mphbd-orange-deep) !important;
	transform: translateY(-2px);
}
button.mphbd-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
a.mphbd-btn-sm {
	font-size: 12.5px;
	padding: 10px 18px !important;
}

/* ============================================================
   LIBRARY
   ============================================================ */

.mphbd-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--mphbd-powder);
}
.mphbd-title {
	margin: 0;
	font-family: var(--mphbd-head);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.4px;
}
.mphbd-intro {
	margin: 6px 0 0;
	font-size: 16px;
	color: rgba(53, 63, 81, 0.75);
}
.mphbd-signout {
	font-family: var(--mphbd-head);
	font-size: 13px;
	font-weight: 600;
	color: var(--mphbd-blue);
	text-decoration: none;
	border: 1px solid var(--mphbd-powder);
	border-radius: 100px;
	padding: 8px 16px;
	white-space: nowrap;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.mphbd-signout:hover {
	background: var(--mphbd-navy);
	border-color: var(--mphbd-navy);
	color: var(--mphbd-white);
}

.mphbd-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 14px;
}
.mphbd-search-wrap {
	flex: 1 1 260px;
}
.mphbd-search {
	width: 100%;
	font-family: var(--mphbd-body);
	font-size: 16px;
	color: #2c2c2c;
	-webkit-text-fill-color: #2c2c2c;
	background-color: var(--mphbd-white);
	border: 1px solid var(--mphbd-powder);
	border-radius: 6px;
	padding: 12px 14px;
}
.mphbd-search:focus {
	outline: none;
	border-color: var(--mphbd-orange);
	box-shadow: 0 0 0 3px rgba(250, 166, 28, 0.18);
}
.mphbd-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.mphbd-filter {
	-webkit-appearance: none;
	appearance: none;
	font-family: var(--mphbd-body);
	font-size: 15px;
	color: #2c2c2c;
	-webkit-text-fill-color: #2c2c2c;
	background-color: var(--mphbd-white);
	border: 1px solid var(--mphbd-powder);
	border-radius: 6px;
	padding: 12px 40px 12px 14px;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--mphbd-navy) 50%),
		linear-gradient(135deg, var(--mphbd-navy) 50%, transparent 50%);
	background-position: right 19px center, right 12px center;
	background-size: 7px 7px, 7px 7px;
	background-repeat: no-repeat, no-repeat;
}
.mphbd-count {
	margin: 0 0 14px;
	font-size: 14px;
	color: rgba(53, 63, 81, 0.6);
}

.mphbd-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.mphbd-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--mphbd-white);
	border: 1px solid var(--mphbd-powder);
	border-radius: 10px;
	padding: 18px 20px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mphbd-item:hover {
	border-color: var(--mphbd-blue);
	box-shadow: 0 8px 22px rgba(38, 47, 60, 0.08);
}
.mphbd-item-main {
	flex: 1 1 320px;
	min-width: 0;
}
.mphbd-item-head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.mphbd-ext {
	flex: 0 0 auto;
	font-family: var(--mphbd-head);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: var(--mphbd-white);
	background: var(--mphbd-navy);
	border-radius: 3px;
	padding: 4px 7px;
}
.mphbd-item-title {
	margin: 0;
	font-family: var(--mphbd-head);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--mphbd-navy);
}
.mphbd-item-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 7px;
	font-size: 13px;
	color: rgba(53, 63, 81, 0.65);
}
.mphbd-date {
	font-weight: 600;
	color: var(--mphbd-blue);
}
.mphbd-chip {
	font-family: var(--mphbd-head);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--mphbd-navy);
	background: var(--mphbd-powder-soft);
	border: 1px solid var(--mphbd-powder);
	border-radius: 100px;
	padding: 3px 10px;
}
.mphbd-desc {
	margin: 9px 0 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(44, 44, 44, 0.75);
}
.mphbd-item-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
}
.mphbd-link {
	font-family: var(--mphbd-head);
	font-size: 13px;
	font-weight: 600;
	color: var(--mphbd-blue);
	text-decoration: none;
}
.mphbd-link:hover {
	text-decoration: underline;
}
.mphbd-missing {
	font-size: 13px;
	color: #b3261e;
	font-weight: 600;
}

.mphbd-empty,
.mphbd-noresults {
	text-align: center;
	font-size: 16px;
	color: rgba(53, 63, 81, 0.7);
	background: var(--mphbd-powder-soft);
	border: 1px solid var(--mphbd-powder);
	border-radius: 8px;
	padding: 26px 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {
	.mphbd-gate {
		padding: 30px 22px 26px;
	}
	.mphbd-title {
		font-size: 24px;
	}
	.mphbd-item {
		padding: 16px;
	}
	.mphbd-item-actions {
		width: 100%;
		justify-content: space-between;
	}
	.mphbd-filters {
		width: 100%;
	}
	.mphbd-filter {
		flex: 1 1 140px;
	}
}
