@charset "UTF-8";
/*
Theme Name: JIN:R Child (Well-Beings)
Template: jinr
Author: Well-Beings
Description: JIN:R 母主題的子主題。Well-Beings Career Guide Plus 客製化（首頁、側邊欄、Hero、頁尾）集中於此，避免母主題更新時被覆蓋。
Version: 1.0.1
*/

/* =====================================================
 * Single article layout (single.php)
 * ===================================================== */

.career-single-article {
	background: #fff;
	border-radius: 6px;
	padding: 36px 40px 32px;
	margin: 0 0 28px;
	box-sizing: border-box;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.career-single-header {
	margin: 0 0 24px;
	padding: 0 0 24px;
	border-bottom: 1px solid #eee;
}

.career-single-meta-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	flex-wrap: wrap;
}

.career-single-category-badge {
	display: inline-block;
	padding: 4px 14px;
	background: #43a047;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	text-decoration: none;
	line-height: 1.4;
}

.career-single-category-badge:hover {
	background: #2e7d32;
	color: #fff !important;
}

.career-single-date {
	color: #888;
	font-size: 13px;
	letter-spacing: 0.01em;
}

.career-single-title {
	margin: 0 0 20px;
	padding: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.5;
	color: #222;
	letter-spacing: 0.02em;
	display: block;
	overflow: visible;
	-webkit-line-clamp: unset;
	-webkit-box-orient: unset;
	white-space: normal;
	word-break: break-word;
}

.career-single-thumbnail {
	margin: 20px 0 0;
	border-radius: 6px;
	overflow: visible;
}

.career-single-thumbnail img,
.career-single-thumbnail .career-single-featured-image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	object-fit: contain;
	border-radius: 6px;
}

.career-single-content {
	font-size: 15px;
	line-height: 1.9;
	color: #333;
	word-wrap: break-word;
}

.career-single-content > *:first-child {
	margin-top: 0;
}

.career-single-content > *:last-child {
	margin-bottom: 0;
}

.career-single-content p {
	margin: 0 0 1.5em;
}

.career-single-content h2 {
	position: relative;
	margin: 2.2em 0 1em;
	padding: 0 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	color: #222;
	line-height: 1.5;
	border-left: 4px solid #43a047;
}

.career-single-content h3 {
	margin: 1.8em 0 0.9em;
	padding: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: #2e7d32;
	line-height: 1.5;
	border-bottom: 2px dotted #b8dcc0;
}

.career-single-content h4 {
	margin: 1.6em 0 0.7em;
	font-size: 16px;
	font-weight: 700;
	color: #333;
}

.career-single-content ul,
.career-single-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.6em;
}

.career-single-content ul li,
.career-single-content ol li {
	margin: 0 0 0.4em;
}

.career-single-content a {
	color: #0091d3;
	text-decoration: underline;
}

.career-single-content a:hover {
	color: #43a047;
}

.career-single-content img,
.career-single-content figure {
	max-width: 100%;
	height: auto;
	margin: 1.5em auto;
	display: block;
	border-radius: 4px;
}

.career-single-content blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	background: #f5f9fa;
	border-left: 4px solid #b8dcc0;
	color: #555;
	font-size: 14px;
}

.career-single-content code {
	padding: 2px 6px;
	background: #f5f5f5;
	border-radius: 3px;
	font-family: Consolas, "Courier New", monospace;
	font-size: 13px;
	color: #c7254e;
}

.career-single-content pre {
	margin: 1.5em 0;
	padding: 16px 20px;
	background: #2b2b2b;
	color: #eee;
	border-radius: 4px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.7;
}

.career-single-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
}

.career-single-content table {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
}

.career-single-content th,
.career-single-content td {
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	text-align: left;
	font-size: 14px;
}

.career-single-content th {
	background: #f5f9fa;
	font-weight: 700;
}

.career-single-footer {
	margin: 28px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid #eee;
}

.career-single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.career-single-tag {
	display: inline-block;
	padding: 4px 12px;
	background: #f0f5f8;
	color: #43a047;
	font-size: 12px;
	border-radius: 3px;
	text-decoration: none;
}

.career-single-tag:hover {
	background: #43a047;
	color: #fff;
}

/* prev / next */
.career-single-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 0 0 28px;
}

.career-single-nav-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s;
	min-height: 60px;
}

a.career-single-nav-item:hover {
	border-color: #43a047;
}

.career-single-nav-empty {
	background: transparent;
	border: none;
}

.career-single-nav-label {
	font-size: 12px;
	color: #43a047;
	font-weight: 700;
}

.career-single-nav-title {
	font-size: 13px;
	color: #333;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.career-single-nav-next {
	text-align: right;
}

@media (max-width: 767px) {
	.career-single-article {
		padding: 22px 18px 20px;
	}
	.career-single-title {
		font-size: 20px;
	}
	.career-single-content {
		font-size: 14px;
	}
	.career-single-content h2 {
		font-size: 18px;
	}
	.career-single-content h3 {
		font-size: 16px;
	}
	.career-single-nav {
		grid-template-columns: 1fr;
	}
}

/* 客製化樣式請寫在這裡，或維持在 css/ 資料夾中以 functions.php 載入。 */


/* =====================================================
 * Category / Single 頁面 — 頂部不 sticky
 * =====================================================
 * front-page.php 用 .career-page-shell + .career-page-sticky-top（fixed）；
 * category.php / single.php 改用 .career-page-shell-static，
 * header 跟麵包屑走正常文檔流，不再遮住內容。
 */
.career-page-shell.career-page-shell-static {
	padding-top: 0 !important;
}

.career-page-shell-static .career-page-header-block {
	background: #fff;
	padding-top: 0;
}

/* 麵包屑：溢位時橫向捲動（尤其 SP 模式很長時） */
.career-breadcrumb-wrapper {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}

.career-breadcrumb-wrapper:hover {
	scrollbar-color: #b0b0b0 transparent;
}

.career-breadcrumb-wrapper::-webkit-scrollbar {
	height: 4px;
}

.career-breadcrumb-wrapper::-webkit-scrollbar-track {
	background: transparent;
}

.career-breadcrumb-wrapper::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 2px;
}

.career-breadcrumb-wrapper:hover::-webkit-scrollbar-thumb {
	background: #b0b0b0;
}

/* 麵包屑本體不換行，用 nowrap 讓橫向捲動生效 */
.career-breadcrumb-wrapper .top-breadcrumb {
	display: inline-block;
	white-space: nowrap;
	padding-right: 12px; /* 讓最右邊有一點呼吸空間 */
}
