/* ==========================================================================
   Campus — Employee Handbook Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reading Progress Bar
   -------------------------------------------------------------------------- */

.cp-hb-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: linear-gradient(90deg, #3b82f6, #6366f1);
	z-index: 99999;
	transition: width 0.1s linear;
	border-radius: 0 2px 2px 0;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.cp-hb-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 0;
	margin-bottom: 8px;
	font-size: 13px;
	flex-wrap: wrap;
}

.cp-hb-breadcrumb-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.cp-hb-breadcrumb-link:hover {
	color: #3b82f6;
}

.cp-hb-breadcrumb-link .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.cp-hb-breadcrumb-sep {
	color: #cbd5e1;
	font-size: 12px;
}

.cp-hb-breadcrumb-current {
	color: #0f172a;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   TOC Page — Hero
   -------------------------------------------------------------------------- */

.cp-handbook-toc-page {
	max-width: 900px;
}

.cp-hb-hero {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #3b82f6 100%);
	border-radius: 16px;
	padding: 40px 36px;
	margin-bottom: 28px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.cp-hb-hero::after {
	content: '';
	position: absolute;
	top: -40%;
	right: -10%;
	width: 300px;
	height: 300px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	pointer-events: none;
}

.cp-hb-hero-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.15);
	flex-shrink: 0;
}

.cp-hb-hero-icon .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #fff;
}

.cp-hb-hero-text {
	flex: 1;
}

.cp-hb-hero-text h1 {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
	color: #fff;
}

.cp-hb-hero-text > p {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 14px;
	line-height: 1.5;
}

.cp-hb-hero-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.cp-hb-hero-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   TOC Page — Search
   -------------------------------------------------------------------------- */

.cp-hb-search-wrap {
	position: relative;
	margin-bottom: 20px;
}

.cp-hb-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 18px !important;
	width: 18px !important;
	height: 18px !important;
	pointer-events: none;
}

.cp-hb-search {
	width: 100%;
	padding: 14px 16px 14px 44px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 15px;
	color: #0f172a;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
	box-sizing: border-box;
}

.cp-hb-search:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.cp-hb-search::placeholder {
	color: #94a3b8;
}

/* --------------------------------------------------------------------------
   TOC Page — Stats Row
   -------------------------------------------------------------------------- */

.cp-hb-toc-stats {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 20px;
	font-weight: 500;
}

.cp-hb-toc-stat-sep {
	color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   TOC Page — Chapter Cards
   -------------------------------------------------------------------------- */

.cp-hb-chapters {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cp-hb-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-hb-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cp-hb-card-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 24px;
}

.cp-hb-card-num {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	color: #2563eb;
	font-size: 16px;
	font-weight: 700;
	flex-shrink: 0;
}

.cp-hb-card-info {
	flex: 1;
	min-width: 0;
}

.cp-hb-card-title {
	display: block;
	font-size: 17px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
	line-height: 1.3;
	transition: color 0.15s ease;
}

.cp-hb-card-title:hover {
	color: #2563eb;
}

.cp-hb-card-desc {
	font-size: 13px;
	color: #64748b;
	margin: 4px 0 0;
	line-height: 1.5;
}

.cp-hb-card-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.cp-hb-card-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	color: #475569;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cp-hb-card-toggle:hover {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #2563eb;
}

.cp-hb-card-toggle[aria-expanded="true"] {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #2563eb;
}

.cp-hb-card-toggle .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.cp-hb-card-toggle[aria-expanded="true"] .dashicons {
	transform: rotate(180deg);
}

.cp-hb-card-sec-count {
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   TOC Page — Section Accordion
   -------------------------------------------------------------------------- */

.cp-hb-card-sections {
	border-top: 1px solid #f1f5f9;
	background: #fafbfc;
}

.cp-hb-card-section {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px 12px 80px;
	text-decoration: none;
	color: #334155;
	font-size: 14px;
	transition: background 0.15s ease, color 0.15s ease;
	border-bottom: 1px solid #f1f5f9;
}

.cp-hb-card-section:last-child {
	border-bottom: none;
}

.cp-hb-card-section:hover {
	background: #eff6ff;
	color: #2563eb;
}

.cp-hb-card-section-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 24px;
	border-radius: 6px;
	background: #e2e8f0;
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.cp-hb-card-section:hover .cp-hb-card-section-num {
	background: #dbeafe;
	color: #2563eb;
}

.cp-hb-card-section-title {
	flex: 1;
	font-weight: 500;
}

.cp-hb-card-section-arrow {
	color: #cbd5e1;
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	transition: color 0.15s ease, transform 0.15s ease;
}

.cp-hb-card-section:hover .cp-hb-card-section-arrow {
	color: #3b82f6;
	transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   TOC Page — No Results
   -------------------------------------------------------------------------- */

.cp-hb-no-results {
	text-align: center;
	padding: 60px 20px;
	color: #94a3b8;
}

.cp-hb-no-results .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	margin-bottom: 12px;
	color: #cbd5e1;
}

.cp-hb-no-results p {
	font-size: 15px;
	margin: 0;
}

/* --------------------------------------------------------------------------
   TOC Page — Footer
   -------------------------------------------------------------------------- */

.cp-hb-toc-footer {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
	font-size: 13px;
	color: #94a3b8;
}

.cp-hb-toc-footer-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cp-hb-toc-footer-item .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* --------------------------------------------------------------------------
   Version Badge (shared)
   -------------------------------------------------------------------------- */

.cp-handbook-version-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */

.cp-handbook-empty {
	text-align: center;
	padding: 60px 20px;
	color: #94a3b8;
}

.cp-handbook-empty .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	color: #cbd5e1;
}

.cp-handbook-empty p {
	font-size: 15px;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Single View Layout
   -------------------------------------------------------------------------- */

.cp-handbook-single-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	align-items: start;
}

/* --------------------------------------------------------------------------
   Sidebar TOC
   -------------------------------------------------------------------------- */

.cp-handbook-sidebar {
	position: sticky;
	top: 20px;
	background: #f8fafc;
	border-radius: 12px;
	padding: 16px;
	border: 1px solid #e2e8f0;
}

.cp-hb-sidebar-back {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	margin: -4px -4px 8px;
	border-radius: 8px;
	text-decoration: none;
	color: #3b82f6;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.15s ease;
}

.cp-hb-sidebar-back:hover {
	background: #eff6ff;
}

.cp-hb-sidebar-back .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.cp-handbook-sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cp-handbook-sidebar-link {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 8px;
	border-radius: 6px;
	text-decoration: none;
	color: #475569;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease;
	line-height: 1.4;
}

.cp-handbook-sidebar-link:hover {
	background: #e2e8f0;
	color: #1e293b;
}

.cp-handbook-sidebar-link.is-current {
	background: #dbeafe;
	color: #1d4ed8;
	font-weight: 600;
}

.cp-handbook-sidebar-num {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 600;
	min-width: 24px;
	flex-shrink: 0;
}

.cp-handbook-sidebar-link.is-current .cp-handbook-sidebar-num {
	color: #3b82f6;
}

.cp-handbook-sidebar-section {
	padding-left: 20px;
	font-weight: 400;
	font-size: 12px;
}

.cp-handbook-sidebar-sections {
	display: none;
	flex-direction: column;
	gap: 1px;
	margin: 2px 0;
}

.cp-handbook-sidebar-sections.is-expanded {
	display: flex;
}

/* --------------------------------------------------------------------------
   Content Area — Header
   -------------------------------------------------------------------------- */

.cp-handbook-content {
	min-width: 0;
}

.cp-handbook-content-header {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 2px solid #f1f5f9;
}

.cp-handbook-numbering {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 6px;
	background: #eff6ff;
	font-size: 13px;
	font-weight: 700;
	color: #3b82f6;
	margin-bottom: 8px;
}

.cp-handbook-content-title {
	font-size: 30px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px;
	line-height: 1.3;
}

.cp-handbook-content-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #64748b;
}

.cp-handbook-updated {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.cp-handbook-updated .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Content body typography
   -------------------------------------------------------------------------- */

.cp-handbook-content-body {
	font-size: 15px;
	line-height: 1.8;
	color: #334155;
}

.cp-handbook-content-body h1 {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	margin: 32px 0 12px;
}

.cp-handbook-content-body h2 {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 28px 0 10px;
}

.cp-handbook-content-body h3 {
	font-size: 17px;
	font-weight: 600;
	color: #1e293b;
	margin: 24px 0 8px;
}

.cp-handbook-content-body h4,
.cp-handbook-content-body h5,
.cp-handbook-content-body h6 {
	font-size: 15px;
	font-weight: 600;
	color: #334155;
	margin: 20px 0 6px;
}

.cp-handbook-content-body p {
	margin: 0 0 16px;
}

.cp-handbook-content-body ul,
.cp-handbook-content-body ol {
	margin: 0 0 16px 24px;
}

.cp-handbook-content-body li {
	margin-bottom: 6px;
}

.cp-handbook-content-body blockquote {
	margin: 20px 0;
	padding: 16px 20px;
	border-left: 4px solid #3b82f6;
	background: #eff6ff;
	border-radius: 0 8px 8px 0;
	color: #1e40af;
	font-style: italic;
}

.cp-handbook-content-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
}

.cp-handbook-content-body th,
.cp-handbook-content-body td {
	border: 1px solid #e2e8f0;
	padding: 10px 14px;
	text-align: left;
}

.cp-handbook-content-body th {
	background: #f1f5f9;
	font-weight: 600;
	color: #0f172a;
}

.cp-handbook-content-body tr:hover td {
	background: #f8fafc;
}

.cp-handbook-content-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.cp-handbook-content-body a {
	color: #3b82f6;
	text-decoration: underline;
}

.cp-handbook-content-body a:hover {
	color: #1d4ed8;
}

.cp-handbook-content-body code {
	background: #f1f5f9;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 13px;
	color: #e11d48;
}

.cp-handbook-content-body pre {
	background: #1e293b;
	color: #e2e8f0;
	padding: 16px 20px;
	border-radius: 8px;
	overflow-x: auto;
	margin: 20px 0;
	font-size: 13px;
	line-height: 1.6;
}

.cp-handbook-content-body pre code {
	background: none;
	padding: 0;
	color: inherit;
}

/* --------------------------------------------------------------------------
   In This Chapter — Card Grid
   -------------------------------------------------------------------------- */

.cp-handbook-in-this-chapter {
	margin-top: 36px;
	padding: 24px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.cp-handbook-in-this-chapter h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 16px;
}

.cp-handbook-in-this-chapter h3 .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #3b82f6;
}

.cp-hb-itc-grid {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cp-hb-itc-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 8px;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e2e8f0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cp-hb-itc-item:hover {
	border-color: #93c5fd;
	box-shadow: 0 2px 6px rgba(59, 130, 246, 0.08);
	background: #eff6ff;
}

.cp-hb-itc-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 28px;
	border-radius: 6px;
	background: #eff6ff;
	color: #3b82f6;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.cp-hb-itc-text {
	flex: 1;
	min-width: 0;
}

.cp-hb-itc-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.3;
}

.cp-hb-itc-desc {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
	line-height: 1.4;
}

.cp-hb-itc-arrow {
	color: #cbd5e1;
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
	flex-shrink: 0;
	transition: color 0.15s ease, transform 0.15s ease;
}

.cp-hb-itc-item:hover .cp-hb-itc-arrow {
	color: #3b82f6;
	transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   Actions (Print button)
   -------------------------------------------------------------------------- */

.cp-handbook-actions {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}

.cp-handbook-print-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #475569;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.cp-handbook-print-btn:hover {
	background: #e2e8f0;
	color: #1e293b;
}

.cp-handbook-print-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* --------------------------------------------------------------------------
   Prev / Next Navigation
   -------------------------------------------------------------------------- */

.cp-handbook-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 2px solid #f1f5f9;
}

.cp-handbook-nav-prev,
.cp-handbook-nav-next {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 20px;
	border-radius: 10px;
	text-decoration: none;
	border: 1px solid #e2e8f0;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	max-width: 45%;
}

.cp-handbook-nav-prev:hover,
.cp-handbook-nav-next:hover {
	border-color: #93c5fd;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

.cp-handbook-nav-next {
	text-align: right;
	margin-left: auto;
}

.cp-handbook-nav-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
}

.cp-handbook-nav-label .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.cp-handbook-nav-title {
	font-size: 14px;
	font-weight: 600;
	color: #3b82f6;
}

.cp-handbook-nav-prev:hover .cp-handbook-nav-title,
.cp-handbook-nav-next:hover .cp-handbook-nav-title {
	color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Not Found
   -------------------------------------------------------------------------- */

.cp-handbook-not-found {
	text-align: center;
	padding: 60px 20px;
}

.cp-handbook-not-found .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #f59e0b;
	margin-bottom: 12px;
}

.cp-handbook-not-found h2 {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
}

.cp-handbook-not-found p {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 16px;
}

.cp-handbook-back-link {
	color: #3b82f6;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.cp-handbook-back-link:hover {
	color: #1d4ed8;
}

/* --------------------------------------------------------------------------
   Hub Widgets — TOC Widget
   -------------------------------------------------------------------------- */

.cp-handbook-widget-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cp-handbook-widget-toc-list > li {
	margin-bottom: 4px;
}

.cp-handbook-widget-chapter-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 6px;
	text-decoration: none;
	color: #1e293b;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease;
}

.cp-handbook-widget-chapter-link:hover {
	background: #f1f5f9;
	color: #3b82f6;
}

.cp-handbook-widget-num {
	color: #3b82f6;
	font-weight: 700;
	min-width: 20px;
	font-size: 13px;
}

.cp-handbook-widget-sections {
	list-style: none;
	padding: 0 0 0 28px;
	margin: 0 0 4px;
}

.cp-handbook-widget-sections li {
	margin-bottom: 2px;
}

.cp-handbook-widget-sections a {
	display: block;
	padding: 4px 8px;
	border-radius: 4px;
	text-decoration: none;
	color: #64748b;
	font-size: 13px;
	transition: background 0.15s ease, color 0.15s ease;
}

.cp-handbook-widget-sections a:hover {
	background: #f8fafc;
	color: #3b82f6;
}

/* --------------------------------------------------------------------------
   Hub Widgets — Latest Widget
   -------------------------------------------------------------------------- */

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

.cp-handbook-latest-item {
	border-bottom: 1px solid #f1f5f9;
}

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

.cp-handbook-latest-item a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 8px;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.cp-handbook-latest-item a:hover {
	background: #f8fafc;
}

.cp-handbook-latest-title {
	font-size: 14px;
	font-weight: 500;
	color: #1e293b;
}

.cp-handbook-latest-meta {
	font-size: 12px;
	color: #94a3b8;
}

.cp-handbook-latest-type {
	font-weight: 600;
	color: #64748b;
}

/* --------------------------------------------------------------------------
   Hub Widgets — Chapter Card Widget
   -------------------------------------------------------------------------- */

.cp-hb-widget-chapter-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
}

.cp-hb-widget-chapter-card .cp-hb-card-header {
	padding: 16px 20px;
}

.cp-hb-widget-chapter-card .cp-hb-card-sections {
	border-top: 1px solid #f1f5f9;
}

.cp-hb-widget-chapter-card .cp-hb-card-section {
	padding-left: 56px;
}

/* --------------------------------------------------------------------------
   Hub Widgets — Search Widget
   -------------------------------------------------------------------------- */

.cp-hb-widget-search .cp-hb-search-wrap {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Hub Widgets — Progress Widget
   -------------------------------------------------------------------------- */

.cp-hb-widget-progress {
	padding: 4px 0;
}

.cp-hb-widget-progress-bar-wrap {
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}

.cp-hb-widget-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #3b82f6, #6366f1);
	border-radius: 4px;
	transition: width 0.4s ease;
	width: 0;
}

.cp-hb-widget-progress-text {
	font-size: 13px;
	color: #64748b;
	display: flex;
	justify-content: space-between;
}

.cp-hb-widget-progress-text strong {
	color: #0f172a;
}

/* --------------------------------------------------------------------------
   Widget empty state
   -------------------------------------------------------------------------- */

.cp-handbook-widget-empty {
	text-align: center;
	padding: 24px 16px;
	color: #94a3b8;
	font-size: 14px;
}

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

@media (max-width: 768px) {
	.cp-hb-hero {
		flex-direction: column;
		gap: 16px;
		padding: 28px 24px;
	}

	.cp-hb-hero-text h1 {
		font-size: 20px;
	}

	.cp-hb-hero-icon {
		width: 44px;
		height: 44px;
	}

	.cp-hb-hero-icon .dashicons {
		font-size: 22px;
		width: 22px;
		height: 22px;
	}

	.cp-hb-card-header {
		padding: 16px;
	}

	.cp-hb-card-section {
		padding-left: 56px;
	}

	.cp-handbook-single-layout {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.cp-handbook-sidebar {
		position: static;
		order: 2;
	}

	.cp-handbook-content {
		order: 1;
	}

	.cp-handbook-content-title {
		font-size: 22px;
	}

	.cp-handbook-nav {
		flex-direction: column;
	}

	.cp-handbook-nav-prev,
	.cp-handbook-nav-next {
		max-width: 100%;
	}

	.cp-handbook-nav-next {
		text-align: left;
	}

	.cp-hb-breadcrumbs {
		font-size: 12px;
	}

	.cp-hb-itc-item {
		padding: 10px 12px;
	}
}

@media (max-width: 480px) {
	.cp-hb-hero {
		padding: 24px 20px;
	}

	.cp-hb-hero-text h1 {
		font-size: 18px;
	}

	.cp-handbook-content-title {
		font-size: 18px;
	}

	.cp-handbook-sidebar {
		padding: 12px;
	}

	.cp-hb-card-num {
		min-width: 32px;
		height: 32px;
		font-size: 14px;
	}
}

@media print {
	.cp-hb-progress-bar,
	.cp-hb-breadcrumbs,
	.cp-handbook-actions,
	.cp-handbook-nav,
	.cp-handbook-sidebar,
	.cp-hb-search-wrap {
		display: none !important;
	}
}
