/* ==========================================================================
   Canada Job Help Child — editorial, text-first
   ========================================================================== */

:root {
	--cjh-paper: #fbf8f3;
	--cjh-paper-2: #f3eee5;
	--cjh-ink: #1b1a17;
	--cjh-ink-2: #3d3a34;
	--cjh-muted: #7a7266;
	--cjh-rule: #e3dbcd;
	--cjh-red: #b3261e;
	--cjh-red-dark: #8c1c16;
	--cjh-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--cjh-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
body {
	background: var(--cjh-paper);
	color: var(--cjh-ink);
	font-family: var(--cjh-sans);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--cjh-serif);
	color: var(--cjh-ink);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
a { color: var(--cjh-ink); text-decoration: none; transition: color .15s; }
a:hover, a:focus { color: var(--cjh-red); }
:focus-visible { outline: 2px solid var(--cjh-red); outline-offset: 3px; }
::selection { background: #f3d6d3; }

.cjh-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.cjh-label {
	font-family: var(--cjh-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--cjh-muted);
	margin: 0 0 14px;
}
.cjh-label--red { color: var(--cjh-red); }

.cjh-kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--cjh-red);
	margin-bottom: 8px;
}
.cjh-kicker:hover { color: var(--cjh-red-dark); text-decoration: underline; }

.cjh-meta { display: flex; gap: 14px; font-size: 13px; color: var(--cjh-muted); margin: 10px 0 0; }
.cjh-meta span::before { content: "·"; margin-right: 14px; }

/* ---------- Masthead header ---------- */
.site-header { background: var(--cjh-paper); border-bottom: 1px solid var(--cjh-ink); }
.inside-header {
	flex-direction: column;
	justify-content: center;
	text-align: center;
	padding-top: 26px;
	padding-bottom: 0;
	gap: 6px;
}
.site-branding, .site-logo { margin: 0 auto; }
.main-title { font-family: var(--cjh-serif); font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.main-title a, .main-title a:hover { color: var(--cjh-ink); }
.site-description {
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cjh-muted);
	margin-top: 6px;
}
.site-logo img, .header-image { max-height: 56px; width: auto; }

.main-navigation, .main-navigation ul ul { background: transparent; }
.site-header .main-navigation {
	width: 100%;
	margin-top: 18px;
	border-top: 1px solid var(--cjh-rule);
}
.main-navigation .inside-navigation, .main-navigation .main-nav > ul { justify-content: center; }
.main-navigation .main-nav ul li a {
	font-family: var(--cjh-sans);
	color: var(--cjh-ink-2);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding-left: 16px;
	padding-right: 16px;
	line-height: 50px;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--cjh-red); background: transparent; }
.main-navigation .main-nav ul li.current-menu-item > a { box-shadow: inset 0 -3px 0 var(--cjh-red); }
.main-navigation ul ul { background: var(--cjh-paper); border: 1px solid var(--cjh-rule); }
.main-navigation .menu-toggle { color: var(--cjh-ink); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.main-navigation.toggled .main-nav ul li a { line-height: 44px; }

/* ---------- Containers: no boxes, just paper and rules ---------- */
.site-content { background: transparent; }
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header,
.separate-containers .site-main > * {
	background: transparent;
	box-shadow: none;
	border: 0;
}
.container.grid-container { max-width: 1160px; }
.site-main { margin-top: 36px; margin-bottom: 36px; }

/* Single + pages: narrow reading column */
.single .site-main, .page:not(.cjh-home) .site-main { max-width: 740px; margin-left: auto; margin-right: auto; }
.single .inside-article, .page .inside-article { padding: 0; }

.cjh-breadcrumbs { margin-bottom: 22px; }
.cjh-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cjh-muted); }
.cjh-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--cjh-rule); }
.cjh-breadcrumbs a { color: var(--cjh-red); }

.single .entry-header, .page .entry-header { border-bottom: 1px solid var(--cjh-rule); padding-bottom: 22px; margin-bottom: 30px; }
.entry-title { font-size: clamp(32px, 4.6vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.entry-meta { font-size: 13px; color: var(--cjh-muted); margin-top: 14px; }
.entry-meta a { color: var(--cjh-ink-2); font-weight: 600; }
.entry-header .entry-meta .cjh-reading-time::before { content: "·"; margin: 0 10px; }

.entry-content { font-size: 19px; line-height: 1.78; color: var(--cjh-ink-2); }
.entry-content h2 {
	font-size: 28px;
	margin: 2em 0 .55em;
	padding-top: .9em;
	border-top: 1px solid var(--cjh-rule);
}
.entry-content h3 { font-size: 22px; margin: 1.6em 0 .5em; }
.entry-content h4 { font-family: var(--cjh-sans); font-size: 17px; font-weight: 700; }
.entry-content a { color: var(--cjh-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content ul, .entry-content ol { margin-left: 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--cjh-red); }
.entry-content blockquote {
	border: 0;
	border-left: 3px solid var(--cjh-red);
	padding: 4px 0 4px 22px;
	font-family: var(--cjh-serif);
	font-size: 23px;
	font-style: italic;
	color: var(--cjh-ink);
	background: transparent;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 0; border-bottom: 1px solid var(--cjh-rule); padding: 12px 10px; text-align: left; }
.entry-content th { font-family: var(--cjh-sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cjh-muted); border-bottom: 2px solid var(--cjh-ink); }
.entry-content img { border-radius: 0; }

/* Restyle in-article boxes that ship with inline styles */
.entry-content .wp-block-group[style] {
	background: var(--cjh-paper-2) !important;
	border: 0 !important;
	border-top: 2px solid var(--cjh-ink) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.entry-content .google-auto-placed,
.entry-content ins.adsbygoogle { margin: 32px auto !important; }

.cjh-note {
	margin-top: 40px;
	padding: 18px 20px;
	background: var(--cjh-paper-2);
	border-left: 3px solid var(--cjh-red);
	font-size: 15px;
	line-height: 1.6;
	color: var(--cjh-ink-2);
}
.cjh-note a { color: var(--cjh-red); text-decoration: underline; }

.cjh-related { margin-top: 44px; padding-top: 22px; border-top: 2px solid var(--cjh-ink); }
.cjh-numbered { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.cjh-numbered li {
	counter-increment: n;
	display: flex;
	gap: 16px;
	align-items: baseline;
	padding: 14px 0;
	border-bottom: 1px solid var(--cjh-rule);
	margin: 0;
}
.cjh-numbered li::before {
	content: counter(n, decimal-leading-zero);
	font-family: var(--cjh-serif);
	font-size: 22px;
	font-weight: 600;
	color: var(--cjh-red);
	min-width: 32px;
}
.cjh-numbered a { font-family: var(--cjh-serif); font-size: 20px; font-weight: 600; line-height: 1.3; }

.cat-links a, .tags-links a { color: var(--cjh-red); font-weight: 600; }
.post-navigation { border-top: 1px solid var(--cjh-rule); padding-top: 18px; font-size: 15px; }

/* ---------- Archives & search: rule-separated list ---------- */
.archive .site-main, .search .site-main, .blog .site-main { max-width: 820px; margin-left: auto; margin-right: auto; }
.page-header { padding: 0 0 22px !important; margin-bottom: 8px; border-bottom: 2px solid var(--cjh-ink) !important; }
.page-header h1 { font-size: clamp(32px, 4vw, 44px); margin: 0; }
.taxonomy-description { color: var(--cjh-muted); margin-top: 10px; font-size: 17px; }
.archive .inside-article, .search .inside-article, .blog .inside-article {
	padding: 26px 0 !important;
	border-bottom: 1px solid var(--cjh-rule) !important;
}
.archive .entry-title, .search .entry-title, .blog .entry-title { font-size: 26px; }
.archive .entry-summary, .search .entry-summary, .blog .entry-summary { font-size: 17px; color: var(--cjh-ink-2); margin-top: 8px; }
.separate-containers .post { margin-bottom: 0; }
.paging-navigation { padding: 26px 0 !important; }
.paging-navigation .page-numbers { display: inline-block; padding: 4px 12px; font-weight: 600; color: var(--cjh-ink); border-bottom: 2px solid transparent; }
.paging-navigation .page-numbers.current { color: var(--cjh-red); border-bottom-color: var(--cjh-red); }

/* ---------- Forms & buttons ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], textarea, select {
	background: #fff;
	border: 1px solid var(--cjh-rule);
	border-radius: 0;
	color: var(--cjh-ink);
	padding: 10px 12px;
}
input:focus, textarea:focus, select:focus { border-color: var(--cjh-ink); background: #fff; }
button, .button, input[type="submit"], .wp-block-button__link {
	background: var(--cjh-ink);
	color: var(--cjh-paper);
	border-radius: 0;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: 13px;
	padding: 12px 20px;
}
button:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover { background: var(--cjh-red); color: #fff; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.cjh-home .site-content { padding: 0; }
.cjh-home .site-main { margin: 0; max-width: none; }

.cjh-intro { padding: 56px 0 52px; border-bottom: 1px solid var(--cjh-rule); }
.cjh-intro__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .cjh-intro__grid { grid-template-columns: 1fr; gap: 40px; } }
.cjh-intro__title {
	font-size: clamp(38px, 5.6vw, 66px);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.03em;
	margin: 0 0 20px;
}
.cjh-intro__lead { font-size: 20px; color: var(--cjh-ink-2); max-width: 36em; margin: 0 0 28px; }

.cjh-search { display: flex; max-width: 560px; border-bottom: 2px solid var(--cjh-ink); }
.cjh-search input[type="search"] {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 0;
	padding: 14px 0;
	font-size: 17px;
}
.cjh-search input[type="search"]:focus { outline: none; background: transparent; }
.cjh-search button { background: transparent; border: 0; color: var(--cjh-ink); padding: 14px 0 14px 16px; }
.cjh-search button:hover { background: transparent; color: var(--cjh-red); }

.cjh-index { border-top: 2px solid var(--cjh-ink); padding-top: 14px; }
.cjh-index ol { list-style: none; margin: 0; padding: 0; }
.cjh-index li { margin: 0; border-bottom: 1px solid var(--cjh-rule); }
.cjh-index a { display: grid; grid-template-columns: 38px 1fr auto; align-items: baseline; gap: 8px; padding: 14px 0; }
.cjh-index__num { font-family: var(--cjh-serif); font-size: 20px; font-weight: 600; color: var(--cjh-red); }
.cjh-index__name { font-family: var(--cjh-serif); font-size: 21px; font-weight: 600; line-height: 1.25; }
.cjh-index__count { font-size: 13px; color: var(--cjh-muted); }
.cjh-index a:hover .cjh-index__name { color: var(--cjh-red); }

.cjh-block { padding: 48px 0; }
.cjh-rule-title {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--cjh-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--cjh-ink);
	margin: 0 0 28px;
}
.cjh-rule-title::after { content: ""; flex: 1; height: 1px; background: var(--cjh-ink); }

.cjh-front { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0; }
@media (max-width: 900px) { .cjh-front { grid-template-columns: 1fr; } }
.cjh-lead { padding-right: 40px; border-right: 1px solid var(--cjh-rule); }
@media (max-width: 900px) { .cjh-lead { padding-right: 0; border-right: 0; padding-bottom: 28px; border-bottom: 1px solid var(--cjh-rule); } }
.cjh-lead__title { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; }
.cjh-lead__dek { font-family: var(--cjh-serif); font-size: 21px; line-height: 1.5; color: var(--cjh-ink-2); margin: 0; }
.cjh-readmore { display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cjh-red); }

.cjh-side { padding-left: 32px; }
@media (max-width: 900px) { .cjh-side { padding-left: 0; } }
.cjh-side__item { padding: 18px 0; border-bottom: 1px solid var(--cjh-rule); }
.cjh-side__item:first-child { padding-top: 0; }
.cjh-side__item:last-child { border-bottom: 0; }
.cjh-side__item h3 { font-size: 21px; line-height: 1.25; margin: 0; }
.cjh-side__item .cjh-kicker { margin-bottom: 4px; font-size: 11px; }

.cjh-block--sections { background: var(--cjh-paper-2); border-top: 1px solid var(--cjh-rule); border-bottom: 1px solid var(--cjh-rule); }
.cjh-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
@media (max-width: 800px) { .cjh-sections { grid-template-columns: 1fr; } }
.cjh-sections .cjh-section:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cjh-section__head { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--cjh-red); padding-top: 12px; margin-bottom: 6px; }
.cjh-section__head h3 { font-size: 26px; margin: 0; }
.cjh-section__all { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cjh-muted); }
.cjh-section__list { list-style: none; margin: 0; padding: 0; }
.cjh-section__list li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--cjh-rule); }
.cjh-section__list li:last-child { border-bottom: 0; }
.cjh-section__list a { font-family: var(--cjh-serif); font-size: 19px; font-weight: 600; line-height: 1.3; }
.cjh-section__list li.is-first a { font-size: 24px; }
.cjh-section__list p { margin: 8px 0 0; font-size: 15px; color: var(--cjh-ink-2); line-height: 1.6; }

.cjh-checklist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .cjh-checklist { grid-template-columns: 1fr; gap: 24px; } }
.cjh-checklist__title { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; margin: 0; }
.cjh-checklist__list { list-style: none; counter-reset: c; margin: 0; padding: 0; }
.cjh-checklist__list li {
	counter-increment: c;
	position: relative;
	padding: 18px 0 18px 56px;
	border-top: 1px solid var(--cjh-rule);
	margin: 0;
}
.cjh-checklist__list li:last-child { border-bottom: 1px solid var(--cjh-rule); }
.cjh-checklist__list li::before {
	content: counter(c);
	position: absolute;
	left: 0;
	top: 14px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 1.5px solid var(--cjh-red);
	border-radius: 50%;
	font-family: var(--cjh-serif);
	font-weight: 700;
	color: var(--cjh-red);
}
.cjh-checklist__list strong { display: block; font-family: var(--cjh-serif); font-size: 21px; font-weight: 600; }
.cjh-checklist__list span { color: var(--cjh-ink-2); font-size: 16px; }

/* ==========================================================================
   Footer — light, editorial
   ========================================================================== */
.cjh-footer { background: var(--cjh-paper); border-top: 4px double var(--cjh-ink); padding: 48px 0 28px; }
.cjh-footer__mast { text-align: center; padding-bottom: 28px; border-bottom: 1px solid var(--cjh-rule); margin-bottom: 30px; }
.cjh-footer__brand { font-family: var(--cjh-serif); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.cjh-footer__tag { color: var(--cjh-muted); margin: 6px auto 0; max-width: 520px; font-size: 15px; }
.cjh-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 700px) { .cjh-footer__cols { grid-template-columns: 1fr 1fr; } }
.cjh-links { list-style: none; margin: 0; padding: 0; }
.cjh-links li { margin: 0 0 8px; font-size: 15px; }
.cjh-links a { color: var(--cjh-ink-2); word-break: break-word; }
.cjh-links a:hover { color: var(--cjh-red); }

.site-info { background: var(--cjh-paper); color: var(--cjh-muted); font-size: 13px; border-top: 1px solid var(--cjh-rule); }
.site-info a { color: var(--cjh-ink-2); }
.inside-site-info { justify-content: center; text-align: center; padding-top: 18px; padding-bottom: 22px; }

@media (prefers-reduced-motion: reduce) { a { transition: none; } }
