/* ==========================================================================
   Campus — Hub Page Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Widget Grid
   -------------------------------------------------------------------------- */

.campus-hub-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.campus-hub-widget {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	overflow: hidden;
}

.campus-hub-widget-full {
	grid-column: 1 / -1;
}

.campus-hub-widget-half {
	grid-column: span 1;
}

/* Flexible Forms — flush embed removes outer hub card chrome (PHP + React) */
.campus-hub-widget.cp-hub-widget--flush {
	background: transparent;
	border: none;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

/* --------------------------------------------------------------------------
   Welcome Widget
   -------------------------------------------------------------------------- */

.campus-hub-welcome {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.campus-hub-welcome-text {
	flex: 1;
	min-width: 200px;
}

.campus-hub-welcome-greeting {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px;
	line-height: 1.3;
}

.campus-hub-welcome-company {
	font-size: 15px;
	color: #64748b;
	margin: 0 0 4px;
}

.campus-hub-welcome-date {
	font-size: 14px;
	color: #94a3b8;
	margin: 0;
}

/* Stats row */

.campus-hub-welcome-stats {
	display: flex;
	gap: 16px;
	flex-shrink: 0;
}

.campus-hub-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px 20px;
	min-width: 100px;
	text-align: center;
}

.campus-hub-stat-icon {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #2563eb;
}

.campus-hub-stat-count {
	font-size: 28px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1;
}

.campus-hub-stat-label {
	font-size: 12px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Widget internal headings (for child widgets rendered in grid)
   -------------------------------------------------------------------------- */

.campus-hub-widget h3 {
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 14px;
}

/* --------------------------------------------------------------------------
   Lane B widgets on hub — handbook / blog latest (blog.css only on blog page)
   -------------------------------------------------------------------------- */

.cp-handbook-latest-widget .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 16px;
}

.cp-handbook-latest-widget .cp-widget-title .dashicons {
	color: #2563eb;
}

.cp-handbook-toc-hub .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 16px;
}

.cp-handbook-toc-hub .cp-widget-title .dashicons {
	color: #2563eb;
}

.cp-handbook-search-hub .cp-widget-title,
.cp-handbook-progress-hub .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 12px;
}

.cp-handbook-search-hub .cp-widget-title .dashicons,
.cp-handbook-progress-hub .cp-widget-title .dashicons {
	color: #2563eb;
}

.cp-handbook-search-hub__hint {
	margin: 8px 0 0;
	font-size: 13px;
}

.cp-handbook-progress-hub__footer {
	margin: 12px 0 0;
}

.cp-handbook-chapter-card-hub__footer {
	margin: 12px 0 0;
}

.cp-handbook-chapter-card-hub .cp-handbook-chapter-card-widget-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
	margin: 0 0 12px;
}

.cp-documents-library-hub__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #0f172a;
}

.cp-documents-library-hub .campus-documents-library-title-icon {
	flex-shrink: 0;
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #64748b;
}

.cp-documents-library-hub .campus-documents-header h2 {
	margin: 0 0 12px;
}

.cp-documents-library-hub__folders-intro {
	margin: 0 0 8px;
	font-size: 13px;
}

.cp-documents-library-hub__folder-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
}

/* Hub document library — folder chips are <button>, not links (instant filter). */
.cp-documents-library-hub__folder-links .cp-documents-hub-folder-chip {
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	line-height: 1.2;
	transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cp-documents-library-hub__folder-links button.campus-btn-secondary.cp-documents-hub-folder-chip {
	border-color: #e2e8f0;
}

.cp-documents-library-hub__folder-links .cp-documents-hub-folder-chip.is-active {
	box-shadow: 0 0 0 2px #3b82f6;
	border-color: #93c5fd;
	font-weight: 600;
}

.cp-documents-library-hub__folder-links .campus-badge.cp-documents-hub-folder-chip.is-active {
	box-shadow: 0 0 0 2px #3b82f6;
}

.cp-directory-hub__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #0f172a;
}

.cp-directory-hub .campus-directory-library-title-icon {
	flex-shrink: 0;
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #64748b;
}

.cp-directory-hub .campus-directory-header h2 {
	margin: 0 0 12px;
}

.cp-directory-hub__filters-intro {
	margin: 0 0 8px;
	font-size: 13px;
}

.cp-directory-hub__folder-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
}

.cp-directory-hub__folder-links--scroll {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 2px 8px;
	margin: 0 -2px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.cp-directory-hub__folder-links--scroll .campus-badge,
.cp-directory-hub__folder-links--scroll .campus-btn {
	flex-shrink: 0;
	white-space: nowrap;
}

/* Hub directory — department chips are <button> (instant filter). */
.cp-directory-hub__folder-links .cp-directory-hub-folder-chip {
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	line-height: 1.2;
	transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cp-directory-hub__folder-links button.campus-btn-secondary.cp-directory-hub-folder-chip {
	border-color: #e2e8f0;
}

.cp-directory-hub__folder-links .cp-directory-hub-folder-chip.is-active {
	box-shadow: 0 0 0 2px #3b82f6;
	border-color: #93c5fd;
	font-weight: 600;
}

.cp-directory-hub__folder-links .campus-badge.cp-directory-hub-folder-chip.is-active {
	box-shadow: 0 0 0 2px #3b82f6;
}

.cp-spotlight-hub__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #0f172a;
}

.cp-spotlight-hub .campus-spotlight__title-icon {
	flex-shrink: 0;
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #64748b;
}

.cp-spotlight-hub .campus-spotlight-cards {
	grid-template-columns: repeat(var(--cp-spotlight-cols, 1), minmax(0, 1fr));
}

.cp-announcements-latest-hub__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #0f172a;
}

.cp-announcements-latest-hub .campus-announcements-latest__title-icon {
	flex-shrink: 0;
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #64748b;
}

.cp-quicklinks-hub__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #0f172a;
}

.cp-quicklinks-hub .cp-quicklinks-widget__title-icon {
	flex-shrink: 0;
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #64748b;
}

.cp-celebrations-hub__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #0f172a;
}

.cp-celebrations-hub .cp-celebrations-widget__title-icon {
	flex-shrink: 0;
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #64748b;
}

.cp-employee-grid-hub__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #0f172a;
}

.cp-employee-grid-hub__title .dashicons {
	flex-shrink: 0;
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #64748b;
}

.cp-employee-profile-widget-heading {
	margin: 0 0 12px;
}

.cp-documents-by-dept-hub__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #0f172a;
}

.cp-documents-by-dept-hub__title .dashicons {
	flex-shrink: 0;
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #64748b;
}

.cp-announcement-single-widget-heading,
.cp-document-single-widget-heading {
	margin: 0 0 12px;
}

.cp-employee-grid-hub__grid {
	grid-template-columns: repeat(var(--cp-dir-cols, 4), minmax(0, 1fr));
}

.cp-directory-search-hub__hint {
	margin: 8px 0 0;
	font-size: 13px;
}

.cp-blog-latest-widget .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 16px;
}

.cp-blog-latest-widget .cp-widget-title .dashicons {
	color: #2563eb;
}

.cp-blog-latest-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cp-blog-latest-item {
	padding: 10px 0;
	border-bottom: 1px solid #f1f5f9;
}

.cp-blog-latest-item:last-child {
	border-bottom: none;
}

.cp-blog-latest-item a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	text-decoration: none;
	gap: 12px;
}

.cp-blog-latest-title {
	font-size: 14px;
	font-weight: 500;
	color: #334155;
}

.cp-blog-latest-item a:hover .cp-blog-latest-title {
	color: #2563eb;
}

.cp-blog-latest-date {
	font-size: 12px;
	color: #94a3b8;
	white-space: nowrap;
}

.cp-blog-latest-excerpt {
	font-size: 13px;
	color: #94a3b8;
	margin: 4px 0 0;
}

.cp-widget-view-all {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
}

.cp-widget-view-all:hover {
	text-decoration: underline;
}

.cp-widget-empty {
	color: #94a3b8;
	font-size: 13px;
	text-align: center;
	padding: 20px 0;
}

/* Announcements feed preview (cards use announcements.css, already on intranet) */
.campus-announcements--hub-preview .campus-announcements-header h3 {
	margin: 0 0 16px;
}

.campus-announcements--hub-preview .campus-announcements-header .campus-announcements-hub__title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.campus-announcements--hub-preview .campus-announcements-view-all {
	margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Lane C — Forms hub widgets (align static rows with linked rows)
   -------------------------------------------------------------------------- */

.cp-forms-widget-list-wrap .cp-forms-widget-item--static {
	cursor: default;
	text-decoration: none;
	color: inherit;
}

.cp-lms-featured-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cp-lms-my-training .cp-widget-title,
.cp-lms-progress .cp-widget-title,
.cp-lms-featured .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-lms-my-training .cp-widget-title .dashicons,
.cp-lms-progress .cp-widget-title .dashicons,
.cp-lms-featured .cp-widget-title .dashicons,
.cp-lms-catalog .cp-widget-title .dashicons {
	flex-shrink: 0;
}

.cp-lms-catalog .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-forms-widget-list-wrap .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-forms-widget-list-wrap .cp-widget-title .dashicons {
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Events hub widgets (React)
   -------------------------------------------------------------------------- */

.cp-events-hub-widget .cp-widget-title,
.cp-events-hub-widget .cp-events-hub-widget__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-events-hub-widget .cp-widget-title .dashicons,
.cp-events-hub-widget .cp-events-hub-widget__title .dashicons {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: #64748b;
}

.cp-events-hub-widget .cp-widget-title-text {
	min-width: 0;
}

.campus-events-cal-month-label {
	margin: 0 0 8px;
	font-size: 0.95rem;
}

.campus-events-toolbar-hub {
	margin-bottom: 12px;
}

.campus-events-filters--hub {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 8px;
}

.cp-events-hub__filters-intro {
	margin: 0 0 6px;
	font-size: 13px;
}

.cp-events-hub__folder-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Compliance hub widgets (React)
   -------------------------------------------------------------------------- */

.cp-compliance-hub-widget .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-compliance-hub-widget .cp-widget-title .dashicons {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	font-size: 20px;
	color: #64748b;
}

.cp-compliance-hub-widget .cp-widget-title-text {
	min-width: 0;
}

.cp-compliance-hub-widget__hint {
	font-size: 13px;
	margin-top: 8px;
}

.cp-compliance-hub-score {
	display: flex;
	align-items: baseline;
	gap: 4px;
	margin: 8px 0 12px;
}

.cp-compliance-hub-score__value {
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1;
	color: #0f172a;
}

.cp-compliance-hub-score__suffix {
	font-size: 1rem;
	color: #64748b;
	font-weight: 600;
}

.cp-compliance-hub-score__hint {
	font-size: 13px;
	margin: 0 0 12px;
}

.cp-compliance-hub-factors {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
	color: #334155;
}

.cp-compliance-hub-factors li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 6px;
}

.cp-compliance-hub-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cp-compliance-hub-list__item {
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 10px;
}

.cp-compliance-hub-list__item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.cp-compliance-hub-list__link {
	font-weight: 600;
	color: #1d4ed8;
	text-decoration: none;
	display: block;
	margin-bottom: 4px;
}

.cp-compliance-hub-list__link:hover {
	text-decoration: underline;
}

.cp-compliance-hub-list__title {
	font-weight: 600;
	color: #0f172a;
	display: block;
	margin-bottom: 4px;
}

.cp-compliance-hub-list__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: #64748b;
}

.cp-compliance-hub-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 12px;
	text-transform: lowercase;
}

.cp-compliance-hub-pill--muted {
	background: #e2e8f0;
}

.cp-compliance-training-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}

.cp-compliance-training-summary__stat {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
	text-align: center;
}

.cp-compliance-training-summary__stat--warn {
	border-color: #fecaca;
	background: #fef2f2;
}

.cp-compliance-training-summary__n {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.cp-compliance-training-summary__stat--warn .cp-compliance-training-summary__n {
	color: #b91c1c;
}

.cp-compliance-training-summary__lbl {
	font-size: 12px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Glossary hub widget (React)
   -------------------------------------------------------------------------- */

.cp-glossary-recent-widget .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-glossary-recent-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.cp-glossary-recent-item a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	text-decoration: none;
	color: #1d4ed8;
	font-weight: 500;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
}

.cp-glossary-recent-item a:hover {
	text-decoration: underline;
}

.cp-glossary-recent-meta {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 400;
}

/* --------------------------------------------------------------------------
   Template Library hub widget (React)
   -------------------------------------------------------------------------- */

.cp-templates-recent-widget .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-templates-recent-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.cp-templates-recent-item a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	text-decoration: none;
	color: #1d4ed8;
	font-weight: 500;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
}

.cp-templates-recent-item a:hover {
	text-decoration: underline;
}

.cp-templates-recent-meta {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 400;
}

.cp-templates-by-dept-section {
	margin-bottom: 16px;
}

.cp-templates-by-dept-heading {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

.cp-templates-search-form {
	margin: 0;
}

.cp-templates-search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.cp-templates-search-row input[type='search'] {
	flex: 1 1 160px;
	min-width: 140px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 15px;
}

.cp-templates-search-row select {
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	min-width: 160px;
}

/* --------------------------------------------------------------------------
   Notification prefs + Forms pending (React hub)
   -------------------------------------------------------------------------- */

.cp-notif-prefs-widget .cp-widget-title,
.cp-notif-prefs-hub .cp-widget-title,
.cp-forms-pending-hub .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-notif-prefs-widget .cp-widget-title .dashicons,
.cp-notif-prefs-hub .cp-widget-title .dashicons,
.cp-forms-pending-hub .cp-widget-title .dashicons {
	flex-shrink: 0;
	color: #2563eb;
}

/* --------------------------------------------------------------------------
   Photo Gallery hub widget (React)
   -------------------------------------------------------------------------- */

.cp-photos-recent-widget .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-photos-recent-grid {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.cp-photos-recent-item a {
	display: block;
	border-radius: 8px;
	overflow: hidden;
}

.cp-photos-recent-item img {
	width: 100%;
	height: 72px;
	object-fit: cover;
	display: block;
}

/* --------------------------------------------------------------------------
   Ask HR hub widgets (React)
   -------------------------------------------------------------------------- */

.cp-askhr-hub-widget .cp-widget-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: #0f172a;
}

.cp-askhr-hub-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.cp-askhr-hub-item a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-decoration: none;
	color: #1d4ed8;
	font-weight: 500;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
}

.cp-askhr-hub-item a:hover {
	text-decoration: underline;
}

.cp-askhr-hub-title {
	font-weight: 600;
	color: #0f172a;
}

.cp-askhr-hub-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	font-size: 12px;
	color: #64748b;
	font-weight: 400;
}

.cp-askhr-hub-meta-sep {
	color: #94a3b8;
}

.cp-askhr-hub-date {
	color: #94a3b8;
}

.cp-askhr-hub-dept-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

.cp-askhr-hub-dept-hr {
	background: #dbeafe;
	color: #1d4ed8;
}

.cp-askhr-hub-dept-payroll {
	background: #d1fae5;
	color: #065f46;
}

.cp-askhr-hub-dept-benefits {
	background: #fef3c7;
	color: #92400e;
}

.cp-askhr-hub-dept-it {
	background: #ede9fe;
	color: #5b21b6;
}

.cp-askhr-hub-status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}

.cp-askhr-hub-status-open {
	background: #f59e0b;
}

.cp-askhr-hub-status-answered {
	background: #10b981;
}

.cp-askhr-hub-status-closed {
	background: #94a3b8;
}

.cp-askhr-hub-empty .cp-widget-title {
	margin-bottom: 8px;
}

.cp-askhr-hub-form-inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cp-askhr-hub-select,
.cp-askhr-hub-input,
.cp-askhr-hub-textarea {
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.cp-askhr-hub-textarea {
	resize: vertical;
	min-height: 72px;
}

.cp-askhr-hub-submit {
	align-self: flex-start;
}

.cp-askhr-hub-form-error {
	margin: 0;
	font-size: 13px;
	color: #b91c1c;
}

.cp-askhr-hub-form-success {
	margin: 0;
	font-size: 14px;
	color: #047857;
	font-weight: 500;
}

.cp-askhr-hub-form-footer {
	margin: 12px 0 0;
	font-size: 13px;
}

.cp-askhr-hub-form-link {
	text-decoration: none;
}

.cp-askhr-hub-form-link:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Hub Landing — empty-state welcome (no widgets enabled)
   -------------------------------------------------------------------------- */

.campus-hub-landing {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 48px 24px 64px;
	max-width: 860px;
	margin: 0 auto;
}

.campus-hub-landing__hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 40px;
}

.campus-hub-landing__glow {
	position: absolute;
	top: -40px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.campus-hub-landing__logo {
	position: relative;
	z-index: 1;
	max-height: 72px;
	max-width: 200px;
	object-fit: contain;
	margin-bottom: 24px;
	border-radius: 12px;
}

.campus-hub-landing__logo-placeholder {
	position: relative;
	z-index: 1;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
	border-radius: 18px;
	margin-bottom: 24px;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
}

.campus-hub-landing__logo-placeholder .dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #fff;
}

.campus-hub-landing__greeting {
	font-size: 32px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.campus-hub-landing__company {
	font-size: 16px;
	font-weight: 500;
	color: #475569;
	margin: 0 0 4px;
}

.campus-hub-landing__date {
	font-size: 14px;
	color: #94a3b8;
	margin: 0;
}

.campus-hub-landing__message {
	margin-bottom: 40px;
}

.campus-hub-landing__message h2 {
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 8px;
}

.campus-hub-landing__message p {
	font-size: 15px;
	color: #64748b;
	margin: 0;
	max-width: 520px;
	line-height: 1.6;
}

.campus-hub-landing__cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
	margin-bottom: 36px;
}

.campus-hub-landing__card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 28px 20px 24px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campus-hub-landing__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.campus-hub-landing__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-size: 24px;
	border-radius: 12px;
	margin-bottom: 16px;
}

.campus-hub-landing__card-icon--blue {
	background: #eff6ff;
	color: #2563eb;
}

.campus-hub-landing__card-icon--emerald {
	background: #ecfdf5;
	color: #059669;
}

.campus-hub-landing__card-icon--violet {
	background: #f5f3ff;
	color: #7c3aed;
}

.campus-hub-landing__card-icon--amber {
	background: #fffbeb;
	color: #d97706;
}

.campus-hub-landing__card h3 {
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 6px;
}

.campus-hub-landing__card p {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.5;
}

.campus-hub-landing__admin-hint {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 20px;
	font-size: 13px;
	color: #475569;
}

.campus-hub-landing__admin-hint .dashicons {
	color: #94a3b8;
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.campus-hub-landing__admin-hint p {
	margin: 0;
}

.campus-hub-landing__admin-hint a {
	color: #2563eb;
	text-decoration: none;
	font-weight: 600;
}

.campus-hub-landing__admin-hint a:hover {
	text-decoration: underline;
}

/* Dark mode — hub landing */
html.campus-theme-dark .campus-hub-landing__greeting {
	color: #f1f5f9;
}

html.campus-theme-dark .campus-hub-landing__company {
	color: #94a3b8;
}

html.campus-theme-dark .campus-hub-landing__message h2 {
	color: #e2e8f0;
}

html.campus-theme-dark .campus-hub-landing__message p,
html.campus-theme-dark .campus-hub-landing__card p {
	color: #94a3b8;
}

html.campus-theme-dark .campus-hub-landing__card {
	background: #1e293b;
	border-color: #334155;
}

html.campus-theme-dark .campus-hub-landing__card h3 {
	color: #e2e8f0;
}

html.campus-theme-dark .campus-hub-landing__card-icon--blue {
	background: rgba(37, 99, 235, 0.15);
}

html.campus-theme-dark .campus-hub-landing__card-icon--emerald {
	background: rgba(5, 150, 105, 0.15);
}

html.campus-theme-dark .campus-hub-landing__card-icon--violet {
	background: rgba(124, 58, 237, 0.15);
}

html.campus-theme-dark .campus-hub-landing__card-icon--amber {
	background: rgba(217, 119, 6, 0.15);
}

html.campus-theme-dark .campus-hub-landing__admin-hint {
	background: #1e293b;
	border-color: #334155;
	color: #94a3b8;
}

html.campus-theme-dark .campus-hub-landing__logo-placeholder {
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

html.campus-theme-dark .campus-hub-landing__glow {
	background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	.campus-hub-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.campus-hub-widget-full,
	.campus-hub-widget-half {
		grid-column: span 1;
	}

	.campus-hub-welcome {
		flex-direction: column;
		align-items: flex-start;
	}

	.campus-hub-welcome-stats {
		width: 100%;
		flex-wrap: wrap;
	}

	.campus-hub-stat {
		flex: 1;
		min-width: 80px;
		padding: 12px 14px;
	}

	.campus-hub-stat-count {
		font-size: 22px;
	}

	.campus-hub-welcome-greeting {
		font-size: 20px;
	}

	.campus-hub-widget {
		padding: 20px;
	}

	.cp-compliance-training-summary {
		grid-template-columns: 1fr;
	}

	.campus-hub-landing {
		padding: 32px 16px 48px;
	}

	.campus-hub-landing__greeting {
		font-size: 24px;
	}

	.campus-hub-landing__cards {
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.campus-hub-landing__card {
		padding: 20px 16px;
	}
}

@media (max-width: 480px) {
	.campus-hub-landing__cards {
		grid-template-columns: 1fr;
	}
}
