/* ==========================================================================
   HD Custom Dev — Employee Portal module
   Scoped to .hd-portal-page. Never affects the public site.
   ========================================================================== */

/* --- Welcome --- */
.hd-portal-page .hd-portal-welcome {
	font-family: 'Montserrat', sans-serif;
	font-size: 40px; font-weight: 600;
	color: #2f3437;
	margin: 0 0 6px;
}
.hd-portal-page .hd-portal-welcome-sub {
	font-family: 'Inter', sans-serif;
	font-size: 18px; color: #555a5e;
	margin: 0;
}

/* --- Announcements + coming up cards --- */
.hd-portal-page .hd-portal-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 24px 26px;
	box-shadow: 0 8px 24px rgba(47, 52, 55, 0.08);
	margin-bottom: 16px;
}
.hd-portal-page .hd-portal-card h4 {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px; font-weight: 700;
	margin: 0 0 6px; color: #2f3437;
}
.hd-portal-page .hd-portal-card p {
	font-family: 'Inter', sans-serif;
	font-size: 14px; line-height: 1.6;
	color: #555a5e; margin: 0;
}
.hd-portal-page .hd-portal-card .hd-portal-date {
	font-family: 'Inter', sans-serif;
	font-size: 12px; font-weight: 600;
	letter-spacing: 1px; text-transform: uppercase;
	color: #b85c38;
}
.hd-portal-page .hd-portal-note {
	font-family: 'Inter', sans-serif;
	font-size: 13px; color: #767b7f; font-style: italic;
}

/* --- Tiles --- */
.hd-portal-page .hd-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}
.hd-portal-page .hd-tile {
	background: #ffffff;
	border-radius: 16px;
	padding: 28px 26px;
	box-shadow: 0 8px 24px rgba(47, 52, 55, 0.08);
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	animation: hd-tile-in 0.4s ease both;
}
.hd-portal-page .hd-tile:nth-child(2) { animation-delay: 0.05s; }
.hd-portal-page .hd-tile:nth-child(3) { animation-delay: 0.1s; }
.hd-portal-page .hd-tile:nth-child(4) { animation-delay: 0.15s; }
.hd-portal-page .hd-tile:nth-child(5) { animation-delay: 0.2s; }
.hd-portal-page .hd-tile:nth-child(6) { animation-delay: 0.25s; }
.hd-portal-page .hd-tile:nth-child(7) { animation-delay: 0.3s; }
.hd-portal-page .hd-tile:nth-child(8) { animation-delay: 0.35s; }
@keyframes hd-tile-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}
.hd-portal-page .hd-tile:hover,
.hd-portal-page .hd-tile:focus {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(47, 52, 55, 0.15);
	outline: none;
}
.hd-portal-page .hd-tile .hd-tile-icon {
	font-size: 26px;
	color: #b85c38;
	margin-bottom: 12px;
}
.hd-portal-page .hd-tile h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 17px; font-weight: 700;
	margin: 0 0 6px; color: #2f3437;
}
.hd-portal-page .hd-tile p {
	font-family: 'Inter', sans-serif;
	font-size: 13px; line-height: 1.55;
	color: #555a5e; margin: 0;
}

/* --- Overlay panel --- */
.hd-portal-page .hd-tile-panels { display: none; }
.hd-portal-page #hd-tile-overlay {
	position: fixed; inset: 0;
	background: rgba(15, 17, 21, 0.6);
	backdrop-filter: blur(3px);
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 6vh 16px;
	z-index: 99999;
	overflow-y: auto;
}
.hd-portal-page #hd-tile-overlay.open { display: flex; }
.hd-portal-page .hd-tile-overlay-inner {
	background: #faf8f4;
	border-radius: 20px;
	max-width: 760px;
	width: 100%;
	padding: 34px 38px 38px;
	position: relative;
	animation: hd-panel-in 0.25s ease both;
}
@keyframes hd-panel-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}
.hd-portal-page #hd-tile-overlay-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 26px; font-weight: 700;
	color: #2f3437;
	margin: 0 30px 16px 0;
}
.hd-portal-page #hd-tile-overlay-close {
	position: absolute;
	top: 18px; right: 18px;
	width: 38px; height: 38px;
	border: none; border-radius: 50%;
	background: rgba(47, 52, 55, 0.08);
	color: #2f3437;
	font-size: 18px; line-height: 1;
	cursor: pointer;
	transition: all 0.2s ease;
}
.hd-portal-page #hd-tile-overlay-close:hover,
.hd-portal-page #hd-tile-overlay-close:focus {
	background: #b85c38; color: #ffffff; outline: none;
}
.hd-portal-page #hd-tile-overlay-body {
	font-family: 'Inter', sans-serif;
	font-size: 15px; line-height: 1.7; color: #2f3437;
}
.hd-portal-page #hd-tile-overlay-body h4 {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px; font-weight: 700;
	margin: 22px 0 8px;
}
.hd-portal-page #hd-tile-overlay-body .hd-portal-note { display: block; margin-top: 14px; }
body.hd-tile-overlay-open { overflow: hidden; }

/* --- Login card --- */
.hd-portal-page .hd-portal-login-card {
	max-width: 420px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 20px;
	padding: 42px 44px;
	box-shadow: 0 14px 40px rgba(15, 17, 21, 0.18);
}
.hd-portal-page .hd-portal-login-card label {
	font-family: 'Inter', sans-serif;
	font-size: 14px; font-weight: 600;
	color: #2f3437;
}
.hd-portal-page .hd-portal-login-card input[type="text"],
.hd-portal-page .hd-portal-login-card input[type="password"] {
	width: 100%;
	padding: 11px 14px;
	margin-top: 4px;
	border: 1px solid rgba(47, 52, 55, 0.25);
	border-radius: 10px;
	font-size: 15px;
}
.hd-portal-page .hd-portal-login-card input[type="submit"],
.hd-portal-page .hd-portal-btn {
	display: inline-block;
	width: 100%;
	margin-top: 8px;
	padding: 13px 20px;
	background: #b85c38;
	color: #ffffff !important;
	border: none; border-radius: 10px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px; font-weight: 700;
	letter-spacing: 1.5px; text-transform: uppercase;
	text-align: center; text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease;
}
.hd-portal-page .hd-portal-login-card input[type="submit"]:hover,
.hd-portal-page .hd-portal-btn:hover { background: #914324; }
.hd-portal-page .hd-portal-login-help {
	margin-top: 18px;
	font-family: 'Inter', sans-serif;
	font-size: 13px; line-height: 1.7;
	color: #555a5e; text-align: center;
}
.hd-portal-page .hd-portal-login-help a { color: #b85c38; font-weight: 600; }

/* --- Directory --- */
.hd-portal-page .hd-dir-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}
.hd-portal-page .hd-dir-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 8px 24px rgba(47, 52, 55, 0.08);
	display: flex;
	gap: 16px;
	align-items: center;
}
.hd-portal-page .hd-dir-card img {
	width: 64px; height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.hd-portal-page .hd-dir-card h4 {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px; font-weight: 700;
	margin: 0; color: #2f3437;
}
.hd-portal-page .hd-dir-role {
	font-family: 'Inter', sans-serif;
	font-size: 12px; font-weight: 600;
	letter-spacing: 1px; text-transform: uppercase;
	color: #b85c38;
	margin: 2px 0 6px;
}
.hd-portal-page .hd-dir-card a {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #4a6878;
	text-decoration: none;
	display: block;
}
.hd-portal-page .hd-dir-card a:hover { color: #b85c38; }

/* --- Calendar placeholder list --- */
.hd-portal-page .hd-cal-item {
	display: flex;
	gap: 18px;
	align-items: baseline;
	background: #ffffff;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 10px;
	box-shadow: 0 6px 18px rgba(47, 52, 55, 0.06);
	font-family: 'Inter', sans-serif;
}
.hd-portal-page .hd-cal-date {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700; font-size: 14px;
	color: #b85c38;
	min-width: 90px;
}
.hd-portal-page .hd-cal-type {
	font-size: 11px; font-weight: 600;
	letter-spacing: 1px; text-transform: uppercase;
	color: #4a6878;
	margin-left: auto;
}

@media (max-width: 700px) {
	.hd-portal-page .hd-portal-welcome { font-size: 30px; }
	.hd-portal-page .hd-tile-overlay-inner { padding: 26px 22px 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.hd-portal-page .hd-tile,
	.hd-portal-page .hd-tile-overlay-inner { animation: none !important; transition: none !important; }
}

/* GF datepicker icon sat flush against the date input (icon stays navy -
 * portal panels are chalk, unlike the dark connect cards). */
.hd-portal-page .gform_wrapper img.ui-datepicker-trigger {
	margin-left: 12px;
	vertical-align: middle;
}
