/* Zhihuilu Sensei course single styling.
   Scoped to course singles so it never touches normal pages or other CPTs. */

body.zhihuilu-course-single {
	--zh-course-surface: #ffffff;
	--zh-course-soft: #f7fafd;
	--zh-course-ink: #3d526c;
	--zh-course-ink-strong: #16324f;
	--zh-course-muted: #5b6b80;
	--zh-course-line: #e3ebf5;
	--zh-course-line-strong: #dfe9f6;
	--zh-course-accent: #16324f;
	--zh-course-signal: #b6482f;
	--zh-course-radius: 8px;
	--zh-course-shadow: 0 1px 2px rgba(24, 26, 32, 0.05);
	color-scheme: light;
	background: #fbfcfe;
	color: var(--zh-course-ink);
	font-family: "Avenir Next", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}

body.zhihuilu-course-single .entry-content-wrap {
	background: var(--zh-course-surface);
}

body.zhihuilu-course-single .entry-content {
	color: var(--zh-course-ink);
	font-size: 1rem;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

body.zhihuilu-course-single .entry-content a {
	color: var(--zh-course-ink-strong);
	text-decoration: none;
}

body.zhihuilu-course-single .entry-content a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

body.zhihuilu-course-single .entry-content h1,
body.zhihuilu-course-single .entry-content h2,
body.zhihuilu-course-single .entry-content h3,
body.zhihuilu-course-single .entry-content h4,
body.zhihuilu-course-single .entry-content p,
body.zhihuilu-course-single .entry-content ul,
body.zhihuilu-course-single .entry-content ol {
	margin-top: 0;
}

body.zhihuilu-course-single .entry-content h1,
body.zhihuilu-course-single .entry-content h2,
body.zhihuilu-course-single .entry-content h3,
body.zhihuilu-course-single .entry-content h4 {
	letter-spacing: 0;
	line-height: 1.22;
}

body.zhihuilu-course-single .entry-content h1 {
	margin-bottom: 10px;
	font-size: 2.3rem;
	line-height: 1.15;
	color: var(--zh-course-ink-strong);
}

body.zhihuilu-course-single .entry-content h2 {
	margin: 42px 0 16px;
	padding-top: 24px;
	border-top: 1px solid var(--zh-course-line);
	font-size: 1.5rem;
	color: var(--zh-course-ink-strong);
}

body.zhihuilu-course-single .entry-content h3 {
	margin: 30px 0 12px;
	font-size: 1.2rem;
	color: var(--zh-course-ink-strong);
}

body.zhihuilu-course-single .entry-content p {
	margin-bottom: 18px;
}

body.zhihuilu-course-single .entry-content ul,
body.zhihuilu-course-single .entry-content ol {
	margin-bottom: 22px;
	padding-left: 1.35rem;
}

body.zhihuilu-course-single .entry-content li {
	margin-bottom: 9px;
	padding-left: 4px;
}

body.zhihuilu-course-single .entry-content li strong {
	color: var(--zh-course-ink-strong);
}

body.zhihuilu-course-single .entry-content .woo-image,
body.zhihuilu-course-single .entry-content .course-image {
	display: block;
	float: none;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 18px 0 26px;
	border: 1px solid var(--zh-course-line);
	border-radius: var(--zh-course-radius);
}

body.zhihuilu-course-single .entry-content .course-video {
	max-width: 100%;
	margin: 18px 0 26px;
}

body.zhihuilu-course-single .entry-content .course-video iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 1px solid var(--zh-course-line);
	border-radius: var(--zh-course-radius);
}

/* Breadcrumb and update metadata */

.zhihuilu-course-crumbs {
	margin: 0 0 18px;
}

.zhihuilu-course-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.zhihuilu-course-crumbs li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.zhihuilu-course-crumbs li:not(:last-child)::after {
	content: "/";
	margin: 0 9px;
	color: var(--zh-course-line-strong);
}

.zhihuilu-course-crumbs a {
	color: var(--zh-course-muted);
	font-size: 0.86rem;
	text-decoration: none;
}

.zhihuilu-course-crumbs a:hover {
	color: var(--zh-course-ink-strong);
	text-decoration: underline;
}

.zhihuilu-course-crumbs [aria-current="page"] {
	color: var(--zh-course-ink);
	font-size: 0.86rem;
	font-weight: 650;
}

.zhihuilu-course-updated {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 8px 0 22px;
	color: var(--zh-course-muted);
	font-size: 0.88rem;
}

/* Sensei progress and enrolment controls */

body.zhihuilu-course-single .course-completion-rate,
body.zhihuilu-course-single .progress.statement {
	margin: 20px 0 8px;
	color: var(--zh-course-muted);
	font-weight: 600;
}

body.zhihuilu-course-single .meter {
	width: 100%;
	height: 8px;
	margin: 0 0 26px;
	overflow: hidden;
	border: 1px solid var(--zh-course-line);
	border-radius: 999px;
	background: var(--zh-course-soft);
}

body.zhihuilu-course-single .meter > .value {
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: 999px;
	background: var(--zh-course-accent);
	font-size: 0;
	line-height: 0;
}

body.zhihuilu-course-single .course-meta.course-enrolment {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 18px 0 28px;
}

body.zhihuilu-course-single .course-meta form {
	margin: 0;
}

body.zhihuilu-course-single .course-meta .status {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	margin: 0;
	padding: 5px 12px;
	border: 1px solid var(--zh-course-line);
	border-radius: 999px;
	background: var(--zh-course-soft);
	color: var(--zh-course-muted);
	font-weight: 650;
}

body.zhihuilu-course-single .course-meta .status:before,
body.zhihuilu-course-single .status.completed:before,
body.zhihuilu-course-single .status.in-progress:before,
body.zhihuilu-course-single .status.register:before {
	display: none;
	content: "";
	font-family: inherit;
}

body.zhihuilu-course-single .course-meta .status.in-progress {
	border-color: #ecd5c8;
	background: #fbfcfe;
	color: #2f6fd6;
}

body.zhihuilu-course-single .course-meta .status.completed {
	border-color: #cfe1d5;
	background: #f1f8f4;
	color: #35624b;
}

body.zhihuilu-course-single .course-meta .status.register {
	padding: 0;
	border: 0;
	background: transparent;
}

body.zhihuilu-course-single .course-start,
body.zhihuilu-course-single input.course-start,
body.zhihuilu-course-single .view-results,
body.zhihuilu-course-single .view-results-link,
body.zhihuilu-course-single .sensei-certificate-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin: 0;
	padding: 8px 18px;
	border: 1px solid var(--zh-course-accent);
	border-radius: var(--zh-course-radius);
	background: var(--zh-course-accent);
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

body.zhihuilu-course-single .course-start:hover,
body.zhihuilu-course-single input.course-start:hover,
body.zhihuilu-course-single .view-results:hover,
body.zhihuilu-course-single .view-results-link:hover,
body.zhihuilu-course-single .sensei-certificate-link:hover {
	background: var(--zh-course-ink-strong);
	border-color: var(--zh-course-ink-strong);
	color: #ffffff;
	text-decoration: none;
}

/* Course module cards and lesson rows */

body.zhihuilu-course-single article.module {
	position: relative;
	margin: 26px 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--zh-course-line);
	border-radius: var(--zh-course-radius);
	background: var(--zh-course-surface);
	box-shadow: var(--zh-course-shadow);
	counter-reset: zhihuilu-course-lesson;
}

body.zhihuilu-course-single article.module + article.module {
	margin-top: 20px;
}

body.zhihuilu-course-single article.module > header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: 0;
	padding: 18px 20px;
	border-bottom: 1px solid var(--zh-course-line);
	background: var(--zh-course-soft);
}

body.zhihuilu-course-single article.module > header h2 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.24rem;
	line-height: 1.3;
	color: var(--zh-course-ink-strong);
}

body.zhihuilu-course-single article.module > header .status {
	margin-left: auto;
}

body.zhihuilu-course-single article.module > section.entry {
	padding: 0;
}

body.zhihuilu-course-single .module .module-description {
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid var(--zh-course-line);
	background: var(--zh-course-surface);
	color: var(--zh-course-muted);
	font-style: normal;
	line-height: 1.7;
}

body.zhihuilu-course-single .module .module-lessons {
	margin: 0;
	border-top: 0;
	background: var(--zh-course-surface);
}

body.zhihuilu-course-single .module .module-lessons > header {
	display: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

body.zhihuilu-course-single .module .module-lessons ul.lessons-list {
	display: grid;
	margin: 0;
	padding: 6px 10px 10px;
	list-style: none;
}

body.zhihuilu-course-single .module .module-lessons li {
	position: relative;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--zh-course-line);
	list-style: none;
	counter-increment: zhihuilu-course-lesson;
}

body.zhihuilu-course-single .module .module-lessons li:last-child {
	border-bottom: 0;
}

body.zhihuilu-course-single .module .module-lessons li a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 11px 12px 11px 48px;
	border: 0;
	border-radius: 6px;
	background: var(--zh-course-surface);
	color: var(--zh-course-ink);
	font-size: 1rem;
	font-weight: 650;
	text-decoration: none;
}

body.zhihuilu-course-single .module .module-lessons li a:hover {
	background: var(--zh-course-soft);
	color: var(--zh-course-ink-strong);
	text-decoration: none;
}

body.zhihuilu-course-single .module .module-lessons li a:before {
	position: absolute;
	left: 10px;
	top: 50%;
	display: grid;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--zh-course-line-strong);
	border-radius: 50%;
	background: var(--zh-course-surface);
	color: var(--zh-course-muted);
	font-family: inherit;
	font-size: 0.76rem;
	font-weight: 750;
	line-height: 1;
	text-align: center;
	transform: translateY(-50%);
	content: counter(zhihuilu-course-lesson, decimal-leading-zero);
	place-items: center;
}

body.zhihuilu-course-single .module .module-lessons li.completed a {
	color: var(--zh-course-muted);
}

body.zhihuilu-course-single .module .module-lessons li.completed a:before {
	border-color: #cfe1d5;
	background: #eef7f2;
	color: #35624b;
	content: counter(zhihuilu-course-lesson, decimal-leading-zero);
}

body.zhihuilu-course-single .module .module-lessons li.in-progress a:before {
	border-color: #ecd5c8;
	background: #fbfcfe;
	color: #2f6fd6;
}

body.zhihuilu-course-single .module .module-lessons .preview-label {
	display: inline-flex;
	align-items: center;
	float: none;
	margin: 0 0 0 auto;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 0.75rem;
}

/* Sensei notices used by access and enrolment messages */

body.zhihuilu-course-single .sensei-message {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 18px 0 26px;
	padding: 13px 16px;
	border: 1px solid var(--zh-course-line);
	border-left: 3px solid var(--zh-course-line-strong);
	border-radius: var(--zh-course-radius);
	background: var(--zh-course-soft);
	color: var(--zh-course-ink);
	line-height: 1.65;
}

body.zhihuilu-course-single .sensei-message:before,
body.zhihuilu-course-single .sensei-message:after {
	display: none;
	content: "";
	font-family: inherit;
}

body.zhihuilu-course-single .sensei-message.info {
	border-left-color: #78879a;
}

body.zhihuilu-course-single .sensei-message.alert {
	border-color: #efd7ce;
	border-left-color: #2f6fd6;
	background: #fbfcfe;
}

body.zhihuilu-course-single .sensei-message a {
	color: var(--zh-course-ink-strong);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Course lesson fallback used when a course has no module grouping */

body.zhihuilu-course-single .course-lessons {
	margin: 26px 0 0;
}

body.zhihuilu-course-single .course-lessons > header {
	display: none;
}

body.zhihuilu-course-single .course-lessons article.lesson {
	margin: 0;
	padding: 18px 0;
	border-bottom: 1px solid var(--zh-course-line);
}

body.zhihuilu-course-single .course-lessons article.lesson:last-child {
	border-bottom: 0;
}

@media (max-width: 640px) {
	body.zhihuilu-course-single .entry-content h1 {
		font-size: 1.72rem;
	}

	body.zhihuilu-course-single .entry-content h2 {
		font-size: 1.32rem;
		margin-top: 34px;
	}

	body.zhihuilu-course-single article.module > header {
		padding: 15px 16px;
	}

	body.zhihuilu-course-single .module .module-description {
		padding: 14px 16px;
	}

	body.zhihuilu-course-single .module .module-lessons ul.lessons-list {
		padding: 4px 6px 8px;
	}

	body.zhihuilu-course-single .module .module-lessons li a {
		padding-right: 10px;
		padding-left: 46px;
		font-size: 0.96rem;
	}
}

/* theme */
body.zhihuilu-course-single {
	--zh-course-surface: #ffffff;
	--zh-course-soft: #f7fafd;
	--zh-course-ink: #16324f;
	--zh-course-ink-strong: #16324f;
	--zh-course-muted: #5b6b80;
	--zh-course-line: #e3ebf5;
	--zh-course-line-strong: #d6e2f2;
	--zh-course-accent: #2f6fd6;
	--zh-course-accent-dark: #245bb2;
	--zh-course-accent-soft: #eaf3ff;
	--zh-course-radius: 8px;
	--zh-course-shadow: 0 14px 36px rgba(22, 50, 79, 0.12);
	background: #f7fafd;
	color: var(--zh-course-ink);
}

body.zhihuilu-course-single .content-bg,
body.zhihuilu-course-single .content-area > .content-container,
body.zhihuilu-course-single .entry-content-wrap {
	background: transparent;
}

body.zhihuilu-course-single .entry-content a {
	color: var(--zh-course-accent-dark);
}
body.zhihuilu-course-single .entry-content a:hover {
	color: var(--zh-course-accent);
}
body.zhihuilu-course-single .entry-content h1 {
	padding-bottom: 20px;
	border-bottom: 3px solid var(--zh-course-accent);
	color: var(--zh-course-ink-strong);
}
body.zhihuilu-course-single .entry-content h2 {
	border-top-color: var(--zh-course-line);
	color: var(--zh-course-ink-strong);
}
body.zhihuilu-course-single .entry-content h3,
body.zhihuilu-course-single .entry-content h4 {
	color: var(--zh-course-ink-strong);
}

.zhihuilu-course-crumbs {
	margin: 0 0 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--zh-course-line);
}
.zhihuilu-course-crumbs li:not(:last-child)::after {
	margin: 0 8px;
	color: var(--zh-course-line-strong);
}
.zhihuilu-course-crumbs a {
	color: var(--zh-course-muted);
}
.zhihuilu-course-crumbs a:hover {
	color: var(--zh-course-accent);
}
.zhihuilu-course-crumbs [aria-current="page"] {
	color: var(--zh-course-accent-dark);
	font-weight: 750;
}

.zhihuilu-course-updated {
	display: inline-flex;
	width: fit-content;
	margin: 14px 0 22px;
	padding: 6px 12px;
	border: 1px solid rgba(199, 0, 11, 0.18);
	border-radius: 999px;
	background: var(--zh-course-accent-soft);
	color: #245bb2;
	font-size: 0.86rem;
	font-weight: 700;
}

body.zhihuilu-course-single .course-completion-rate,
body.zhihuilu-course-single .progress.statement {
	color: var(--zh-course-muted);
}
body.zhihuilu-course-single .meter {
	border-color: var(--zh-course-line);
	background: var(--zh-course-soft);
}
body.zhihuilu-course-single .meter > .value {
	background: var(--zh-course-accent);
}

body.zhihuilu-course-single .course-meta .status {
	border-color: var(--zh-course-line);
	background: var(--zh-course-soft);
	color: var(--zh-course-muted);
}
body.zhihuilu-course-single .course-meta .status.register {
	border-color: rgba(199, 0, 11, 0.24);
	background: var(--zh-course-accent-soft);
	color: var(--zh-course-accent-dark);
}
body.zhihuilu-course-single .course-meta .status.in-progress {
	border-color: #f0c9b2;
	background: #fff2e9;
	color: #245bb2;
}
body.zhihuilu-course-single .course-meta .status.completed {
	border-color: #b9d4c2;
	background: #eaf4ee;
	color: #2f6045;
}

body.zhihuilu-course-single .course-start,
body.zhihuilu-course-single input.course-start,
body.zhihuilu-course-single .view-results,
body.zhihuilu-course-single .view-results-link,
body.zhihuilu-course-single .sensei-certificate-link {
	border-color: var(--zh-course-accent);
	background: var(--zh-course-accent);
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(199, 0, 11, 0.14);
}
body.zhihuilu-course-single .course-start:hover,
body.zhihuilu-course-single input.course-start:hover,
body.zhihuilu-course-single .view-results:hover,
body.zhihuilu-course-single .view-results-link:hover,
body.zhihuilu-course-single .sensei-certificate-link:hover {
	border-color: var(--zh-course-accent-dark);
	background: var(--zh-course-accent-dark);
	color: #ffffff;
}

body.zhihuilu-course-single article.module {
	border-color: var(--zh-course-line);
	border-top: 4px solid var(--zh-course-accent);
	background: var(--zh-course-surface);
	box-shadow: var(--zh-course-shadow);
}
body.zhihuilu-course-single article.module > header {
	border-bottom-color: var(--zh-course-line);
	background: linear-gradient(90deg, #fdf5ec, var(--zh-course-soft));
}
body.zhihuilu-course-single article.module > header h2 {
	color: var(--zh-course-ink-strong);
}
body.zhihuilu-course-single .module .module-description {
	border-bottom-color: var(--zh-course-line);
	background: #fbfcfe;
	color: var(--zh-course-muted);
}
body.zhihuilu-course-single .module .module-lessons li {
	border-bottom-color: var(--zh-course-line);
}
body.zhihuilu-course-single .module .module-lessons li a {
	color: var(--zh-course-ink);
}
body.zhihuilu-course-single .module .module-lessons li a:hover {
	background: var(--zh-course-accent-soft);
	color: var(--zh-course-accent-dark);
}
body.zhihuilu-course-single .module .module-lessons li a:before {
	border-color: var(--zh-course-line-strong);
	background: var(--zh-course-surface);
	color: var(--zh-course-muted);
}
body.zhihuilu-course-single .module .module-lessons li.in-progress a:before {
	border-color: var(--zh-course-accent);
	background: var(--zh-course-accent);
	color: #ffffff;
}
body.zhihuilu-course-single .module .module-lessons li.completed a:before {
	border-color: #9ec6ab;
	background: #dff0e5;
	color: #2f6045;
}

body.zhihuilu-course-single .sensei-message {
	border-color: var(--zh-course-line);
	background: var(--zh-course-soft);
	color: var(--zh-course-ink);
}
body.zhihuilu-course-single .sensei-message.alert {
	border-color: #f3cfc8;
	border-left-color: var(--zh-course-accent);
	background: var(--zh-course-accent-soft);
}
body.zhihuilu-course-single .sensei-message.info {
	border-left-color: var(--zh-course-accent);
	background: #fbfcfe;
}

body.zhihuilu-course-single .course-lessons article.lesson {
	border-bottom-color: var(--zh-course-line);
}

body.zhihuilu-course-single .sensei-course-content > header:empty,
body.zhihuilu-course-single .sensei-course-content > section:empty,
body.zhihuilu-course-single .course-meta.course-enrolment:empty,
body.zhihuilu-course-single .course-lessons:empty {
	display: none;
}
body.zhihuilu-course-single .entry-content header:has(> h1:empty) {
	display: none;
}

@media (max-width: 640px) {
	body.zhihuilu-course-single .entry-content h1 {
		padding-bottom: 16px;
		font-size: 1.72rem;
	}
	body.zhihuilu-course-single article.module > header h2 {
		font-size: 1.1rem;
	}
}

/* Sensei contact teacher block: clear red CTA and readable modal. */
body.zhihuilu-course-single .wp-block-sensei-lms-button-contact-teacher,
body.zhihuilu-course-single .sensei-contact-teacher-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 26px 0;
}
body.zhihuilu-course-single a.sensei-contact-teacher-open,
body.zhihuilu-course-single .wp-block-button__link.sensei-contact-teacher-open,
body.zhihuilu-course-single .sensei-course-theme-contact-teacher__button.sensei-contact-teacher-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 24px;
	border: 1px solid var(--zh-course-accent, #c7000b) !important;
	border-radius: 8px;
	background: var(--zh-course-accent, #c7000b) !important;
	box-shadow: 0 6px 18px rgba(199, 0, 11, 0.16);
	color: #ffffff !important;
	font-weight: 700;
	text-decoration: none;
}
body.zhihuilu-course-single a.sensei-contact-teacher-open:hover,
body.zhihuilu-course-single .wp-block-button__link.sensei-contact-teacher-open:hover,
body.zhihuilu-course-single .sensei-course-theme-contact-teacher__button.sensei-contact-teacher-open:hover {
	border-color: var(--zh-course-accent-dark, #245bb2) !important;
	background: var(--zh-course-accent-dark, #245bb2) !important;
	color: #ffffff !important;
	text-decoration: none;
}
body.zhihuilu-course-single a.sensei-contact-teacher-open:focus-visible,
body.zhihuilu-course-single .wp-block-button__link.sensei-contact-teacher-open:focus-visible {
	outline: 3px solid rgba(199, 0, 11, 0.28);
	outline-offset: 3px;
}

body.zhihuilu-course-single [data-sensei-modal] [data-sensei-modal-content],
body.zhihuilu-course-single .sensei-course-theme__frame {
	width: min(94vw, 640px);
	max-width: 94vw;
	padding: 34px 30px 30px;
	border: 0;
	border-radius: 12px;
	background: #fbfcfe;
	color: #16324f;
}
body.zhihuilu-course-single .sensei-contact-teacher-form label {
	margin: 0 0 14px;
	color: var(--zh-course-ink-strong, #16324f);
	font-size: 1.28rem;
	font-weight: 750;
}
body.zhihuilu-course-single .sensei-contact-teacher-form textarea {
	min-height: 170px;
	margin: 0 0 16px;
	padding: 13px 14px;
	border: 1px solid #d8c6b6;
	border-radius: 8px;
	background: #ffffff;
	color: #16324f;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.6;
}
body.zhihuilu-course-single .sensei-contact-teacher-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--zh-course-accent, #c7000b) !important;
	border-radius: 8px;
	background: var(--zh-course-accent, #c7000b) !important;
	color: #ffffff !important;
	font-weight: 700;
	cursor: pointer;
}
body.zhihuilu-course-single a.sensei-contact-teacher-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	top: 16px;
	right: 16px;
	border-radius: 999px;
	background: #f7fafd;
	color: #16324f;
}

@media (max-width: 640px) {
	body.zhihuilu-course-single a.sensei-contact-teacher-open {
		width: 100%;
	}
	body.zhihuilu-course-single [data-sensei-modal] [data-sensei-modal-content] {
		padding: 28px 20px 22px;
	}
}

/* Course background: keep the site white content card on the theme background. */
body.zhihuilu-course-single {
	--zh-course-soft: var(--global-palette7, #f0e1cf);
	background: var(--global-palette8, #f7fafd);
}
body.zhihuilu-course-single .content-bg,
body.zhihuilu-course-single .content-area > .content-container,
body.zhihuilu-course-single .entry-content-wrap {
	background: var(--global-palette9, #ffffff);
}

/* Legacy Sensei contact course teacher link and private message form. */
body.zhihuilu-course-single a.send-message-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 18px 0;
	padding: 11px 24px;
	border: 1px solid var(--global-palette1, #c7000b) !important;
	border-radius: 8px;
	background: var(--global-palette1, #c7000b) !important;
	box-shadow: 0 6px 18px rgba(199, 0, 11, 0.16);
	color: #ffffff !important;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}
body.zhihuilu-course-single a.send-message-button:hover,
body.zhihuilu-course-single a.send-message-button:focus {
	border-color: #245bb2 !important;
	background: #245bb2 !important;
	color: #ffffff !important;
	text-decoration: none;
}
body.zhihuilu-course-single #private_message {
	margin: 30px 0 12px;
	padding-top: 22px;
	border-top: 1px solid #e3ebf5;
	color: var(--global-palette3, #1a202c);
	font-size: 1.32rem;
}
body.zhihuilu-course-single form.contact-teacher {
	margin: 0 0 28px;
	padding: 22px;
	border: 1px solid #e3ebf5;
	border-radius: 8px;
	background: #fbfcfe;
}
body.zhihuilu-course-single form.contact-teacher .form-row {
	margin: 0 0 16px;
}
body.zhihuilu-course-single form.contact-teacher textarea {
	display: block;
	width: 100%;
	min-height: 150px;
	padding: 13px 14px;
	border: 1px solid #d8c6b6;
	border-radius: 8px;
	background: #ffffff;
	color: #16324f;
	font: inherit;
	line-height: 1.6;
}
body.zhihuilu-course-single form.contact-teacher textarea:focus {
	border-color: var(--global-palette1, #c7000b);
	outline: 3px solid rgba(199, 0, 11, 0.14);
}
body.zhihuilu-course-single input.send_message {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--global-palette1, #c7000b) !important;
	border-radius: 8px;
	background: var(--global-palette1, #c7000b) !important;
	color: #ffffff !important;
	font-weight: 700;
	cursor: pointer;
}
body.zhihuilu-course-single input.send_message:hover {
	border-color: #245bb2 !important;
	background: #245bb2 !important;
	color: #ffffff !important;
}

/* Equal course card padding: title top now matches left/right spacing. */
body.zhihuilu-course-single .entry-content-wrap {
	padding: 2rem;
}
@media (max-width: 767px) {
	body.zhihuilu-course-single .entry-content-wrap {
		padding: 1.5rem;
	}
}
