/* ============================================================
   Custom HR Portal — Frontend Styles
   Design system: Inter + Poppins · WaterBird teal tokens
   Drop-in replacement for cthr-frontend.css
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
	--cthr-teal:         #114c5f;
	--cthr-teal-light:   #1e88a8;
	--cthr-teal-pale:    #eaf4f7;
	--cthr-text:         #0f2027;
	--cthr-muted:        #5a6b72;
	--cthr-border:       rgba(17, 76, 95, 0.09);
	--cthr-border-hover: rgba(30, 136, 168, 0.30);
	--cthr-radius:       14px;
	--cthr-shadow-sm:    0 4px 16px rgba(17,76,95,.08);
	--cthr-shadow-md:    0 12px 36px rgba(17,76,95,.11);
	--cthr-shadow-lg:    0 22px 54px rgba(17,76,95,.13);
	/* legacy aliases */
	--cthr-accent:        var(--cthr-teal);
	--cthr-accent-light:  var(--cthr-teal-light);
	--cthr-accent-pale:   var(--cthr-teal-pale);
}

/* ---------- Board wrapper ---------- */
.cthr-board { font-family: 'Poppins', sans-serif; }

/* ============================================================
   ARCHIVE PAGE — Filter bar
   ============================================================ */
.cthr-filters {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--cthr-border);
	border-radius: var(--cthr-radius);
	box-shadow: 0 4px 24px rgba(17,76,95,.1), 0 1px 4px rgba(17,76,95,.06);
	margin-bottom: 32px;
}

/* Search spans full width */
.cthr-filters input[type="search"] {
	grid-column: 1 / -1;
}

/* All filter inputs/selects */
.cthr-filters input,
.cthr-filters select {
	padding: 11px 14px;
	border: 1px solid var(--cthr-border);
	border-radius: 9px;
	font: inherit;
	font-size: 14px;
	background: #fff;
	color: var(--cthr-text);
	width: 100%;
	transition: border-color .2s, box-shadow .2s;
	appearance: none;
	-webkit-appearance: none;
}

.cthr-filters select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath stroke='%235a6b72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	padding-right: 36px;
	cursor: pointer;
}

.cthr-filters input:focus,
.cthr-filters select:focus {
	outline: none;
	border-color: var(--cthr-teal-light);
	box-shadow: 0 0 0 3px rgba(30,136,168,.12);
}

.cthr-filters input[type="search"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Ccircle cx='7' cy='7' r='5' stroke='%235a6b72' stroke-width='1.5'/%3E%3Cpath stroke='%235a6b72' stroke-width='1.5' stroke-linecap='round' d='M11 11l3 3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 13px center;
	padding-left: 38px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cthr-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 11px 24px;
	background: linear-gradient(135deg, var(--cthr-teal), var(--cthr-teal-light));
	color: #fff;
	border: none;
	border-radius: 9px;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .2px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(17,76,95,.2);
	transition: transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s;
}
.cthr-btn:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(17,76,95,.28);
}

.cthr-btn-outline {
	background: transparent;
	color: var(--cthr-teal);
	border: 1.5px solid var(--cthr-border-hover);
	box-shadow: none;
}
.cthr-btn-outline:hover {
	background: var(--cthr-teal-pale);
	color: var(--cthr-teal);
	border-color: var(--cthr-teal-light);
	box-shadow: none;
	transform: translateY(-1px);
}

.cthr-btn-lg { padding: 14px 34px; font-size: 15px; }

/* Search Jobs button spans the grid */
#cthr-filter-btn {
	grid-column: 1 / -1;
	justify-content: center;
	padding: 13px;
}

/* ============================================================
   ARCHIVE — Job Cards
   ============================================================ */
.cthr-results { position: relative; }
.cthr-results.is-loading { opacity: .4; pointer-events: none; }

.cthr-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--cthr-border);
	border-radius: var(--cthr-radius);
	padding: 24px 26px;
	margin-bottom: 14px;
	position: relative;
	overflow: hidden;
	transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .2s;
}
.cthr-card::after {
	content: "";
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 3px;
	background: linear-gradient(90deg, var(--cthr-teal), var(--cthr-teal-light));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.cthr-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--cthr-shadow-md);
	border-color: var(--cthr-border-hover);
}
.cthr-card:hover::after { transform: scaleX(1); }

/* Featured card — teal left accent */
.cthr-card.is-featured {
	border-left: 4px solid var(--cthr-teal);
}
.cthr-card.is-featured::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: linear-gradient(135deg, rgba(17,76,95,.025), transparent 55%);
	pointer-events: none;
}

.cthr-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}
.cthr-card h3 {
	margin: 0 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	letter-spacing: -.3px !important;
	line-height: 1.25 !important;
	border: none !important;
	padding: 0 !important;
	background: none !important;
}
.cthr-card h3 a {
	color: var(--cthr-text);
	text-decoration: none;
	transition: color .2s;
}
.cthr-card h3 a:hover { color: var(--cthr-teal); }

.cthr-excerpt {
	font-size: 13.5px;
	color: var(--cthr-muted);
	line-height: 1.65;
	margin: 8px 0 16px;
	flex: 1;
}

.cthr-empty {
	padding: 48px 32px;
	text-align: center;
	color: var(--cthr-muted);
	background: var(--cthr-teal-pale);
	border-radius: var(--cthr-radius);
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	border: 1px solid rgba(17,76,95,.08);
}

/* ============================================================
   Badges & Chips
   ============================================================ */
.cthr-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.cthr-badge {
	display: inline-flex;
	align-items: center;
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	padding: 4px 11px;
	border-radius: 20px;
}
.cthr-badge-featured {
	background: linear-gradient(135deg, var(--cthr-teal), var(--cthr-teal-light));
	color: #fff;
}
.cthr-badge-urgent {
	background: rgba(192,57,43,.1);
	color: #c0392b;
	border: 1px solid rgba(192,57,43,.18);
}
.cthr-badge-remote {
	background: var(--cthr-teal-pale);
	color: var(--cthr-teal);
	border: 1px solid rgba(17,76,95,.1);
}

.cthr-chip {
	display: inline-flex;
	align-items: center;
	background: var(--cthr-teal-pale);
	color: var(--cthr-teal);
	padding: 5px 13px;
	border-radius: 20px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid rgba(17,76,95,.09);
	margin: 0 6px 6px 0;
}

/* ============================================================
   Meta lists
   ============================================================ */
.cthr-meta {
	list-style: none;
	padding: 0;
	margin: 0 0 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	color: var(--cthr-muted);
	font-size: 13px;
}
.cthr-meta li {
	display: flex;
	align-items: center;
	gap: 6px;
}
.cthr-meta li::before {
	content: "";
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--cthr-teal-light);
	flex-shrink: 0;
}
.cthr-meta-large { font-size: 14.5px; margin: 0 0 18px; }

.cthr-list { padding-left: 22px !important; }
.cthr-list li {
	margin-bottom: 7px !important;
	line-height: 1.65 !important;
	font-size: 14.5px !important;
	color: var(--cthr-muted) !important;
}

/* ============================================================
   Pagination
   ============================================================ */
.cthr-pagination {
	display: flex;
	gap: 7px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--cthr-border);
}
.cthr-page {
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--cthr-border);
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--cthr-text);
	transition: background .2s, color .2s, border-color .2s, transform .15s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.cthr-page:hover {
	background: var(--cthr-teal-pale);
	border-color: var(--cthr-teal-light);
	color: var(--cthr-teal);
	transform: translateY(-1px);
}
.cthr-page.is-current {
	background: linear-gradient(135deg, var(--cthr-teal), var(--cthr-teal-light));
	color: #fff;
	border-color: var(--cthr-teal);
	box-shadow: 0 3px 10px rgba(17,76,95,.2);
}

/* ============================================================
   SINGLE JOB — Summary panel
   ============================================================ */
.cthr-job-summary {
	background: #fff;
	border: 1px solid var(--cthr-border);
	border-radius: var(--cthr-radius);
	padding: 28px 30px;
	margin-bottom: 28px;
	box-shadow: var(--cthr-shadow-sm);
	position: relative;
	overflow: hidden;
}
.cthr-job-summary::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--cthr-teal), var(--cthr-teal-light));
}

/* Skills strip inside summary */
.cthr-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-bottom: 18px;
}

/* Responsibilities / Requirements / Benefits sections */
.cthr-job-summary h2,
.cthr-job-summary h2:first-of-type {
	font-family: 'Inter', sans-serif !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	letter-spacing: -.4px !important;
	color: var(--cthr-text) !important;
	margin: 26px 0 13px !important;
	padding: 0 0 10px !important;
	border: none !important;
	border-bottom: 2px solid var(--cthr-teal-pale) !important;
	background: none !important;
	line-height: 1.2 !important;
}
.cthr-job-summary h2:first-of-type { margin-top: 18px !important; }

.cthr-closed-notice {
	background: rgba(192,57,43,.08);
	color: #c0392b;
	border: 1px solid rgba(192,57,43,.15);
	padding: 13px 18px;
	border-radius: 9px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 16px;
}

/* ============================================================
   SINGLE JOB — Apply Form
   ============================================================ */
.cthr-apply {
	margin-top: 44px;
	padding: 36px 36px 32px;
	border: 1px solid var(--cthr-border);
	border-radius: var(--cthr-radius);
	background: #fff;
	box-shadow: var(--cthr-shadow-sm);
	position: relative;
	overflow: hidden;
}
.cthr-apply::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--cthr-teal), var(--cthr-teal-light));
}
.cthr-apply h2 {
	font-family: 'Inter', sans-serif !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	letter-spacing: -.4px !important;
	color: var(--cthr-text) !important;
	margin: 0 0 24px !important;
	border: none !important;
	padding: 0 !important;
	background: none !important;
}

/* Form grid */
.cthr-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 18px;
}
.cthr-form-grid .cthr-full { grid-column: 1 / -1; }

.cthr-form-grid p { margin: 0; }

.cthr-form-grid label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--cthr-text);
}

.cthr-form-grid input,
.cthr-form-grid textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--cthr-border);
	border-radius: 9px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	color: var(--cthr-text);
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
	box-sizing: border-box;
}
.cthr-form-grid input:focus,
.cthr-form-grid textarea:focus {
	outline: none;
	border-color: var(--cthr-teal-light);
	box-shadow: 0 0 0 3px rgba(30,136,168,.1);
}
.cthr-form-grid input[type="file"] {
	padding: 9px 12px;
	cursor: pointer;
}
.cthr-form-grid textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.cthr-hint {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--cthr-muted);
	font-size: 12px;
}
.cthr-consent {
	margin: 16px 0;
	font-size: 13px;
	color: var(--cthr-muted);
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.cthr-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }

/* Honeypot */
.cthr-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* Submit row */
.cthr-apply .cthr-btn-lg { margin-top: 8px; }

/* Form messages */
.cthr-form-msg {
	margin-top: 14px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 9px;
	display: none;
}
.cthr-form-msg.is-error  { display: block; background: rgba(192,57,43,.08); color: #c0392b; border: 1px solid rgba(192,57,43,.15); }
.cthr-form-msg.is-success{ display: block; background: rgba(30,136,168,.08); color: #114c5f; border: 1px solid rgba(30,136,168,.18); }

/* Thank-you panel */
.cthr-thankyou {
	text-align: center;
	padding: 48px 32px;
}
.cthr-thankyou h2 {
	font-family: 'Inter', sans-serif;
	font-size: 26px;
	font-weight: 700;
	color: var(--cthr-text);
	margin-bottom: 12px;
}
.cthr-thankyou p { color: var(--cthr-muted); font-size: 15px; line-height: 1.7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
	.cthr-filters { grid-template-columns: 1fr 1fr; }
	#cthr-filter-btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.cthr-filters { grid-template-columns: 1fr; padding: 16px; }
	.cthr-form-grid { grid-template-columns: 1fr; }
	.cthr-apply { padding: 24px 20px; }
	.cthr-job-summary { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.cthr-card, .cthr-card::after, .cthr-btn, .cthr-page { transition: none; }
}

/* ============================================================
   Additional elements (upgraded markup)
   ============================================================ */

/* Board header */
.cthr-board-header {
	margin-bottom: 24px;
}
.cthr-board-title {
	font-family: 'Inter', sans-serif !important;
	font-size: clamp(22px, 3vw, 32px) !important;
	font-weight: 700 !important;
	letter-spacing: -1px !important;
	color: var(--cthr-text) !important;
	margin: 0 0 6px !important;
	border: none !important;
	padding: 0 !important;
	background: none !important;
}
.cthr-board-sub {
	font-family: 'Poppins', sans-serif;
	font-size: 14.5px;
	color: var(--cthr-muted);
	margin: 0;
}

/* Card dept eyebrow */
.cthr-card-dept {
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cthr-teal-light);
	margin-bottom: 6px;
}

/* Card footer: meta + CTA side by side */
.cthr-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--cthr-border);
}
.cthr-card-footer .cthr-meta { margin: 0; }

/* Apply form eyebrow */
.cthr-apply-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--cthr-teal-pale);
	color: var(--cthr-teal);
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 5px 13px;
	border-radius: 20px;
	border: 1px solid rgba(17,76,95,.1);
	margin-bottom: 10px;
}
.cthr-apply-eyebrow::before {
	content: "";
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--cthr-teal-light);
	flex-shrink: 0;
}

/* Single job meta table — nicer display */
.cthr-job-summary .cthr-meta.cthr-meta-large {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin-bottom: 20px;
}
.cthr-job-summary .cthr-meta.cthr-meta-large li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--cthr-border);
	font-size: 14px;
	color: var(--cthr-muted);
	background: #fff;
}
.cthr-job-summary .cthr-meta.cthr-meta-large li:last-child,
.cthr-job-summary .cthr-meta.cthr-meta-large li:nth-last-child(2):nth-child(odd) {
	border-bottom: none;
}
.cthr-job-summary .cthr-meta.cthr-meta-large li strong {
	color: var(--cthr-text) !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 700 !important;
	min-width: 120px;
	flex-shrink: 0;
	font-size: 13px;
	letter-spacing: .2px;
}
/* hide bullet dots on large meta */
.cthr-job-summary .cthr-meta.cthr-meta-large li::before { display: none; }

/* ============================================================
   ARCHIVE PAGE — Hero header (template/archive-cthr_job.php)
   ============================================================ */
.cthr-archive-page {
	font-family: 'Poppins', sans-serif;
}

/* Hero band */
.cthr-archive-hero {
	background: linear-gradient(135deg, #070f14 0%, #0d2030 100%);
	padding: clamp(60px, 9vh, 100px) 24px clamp(50px, 7vh, 80px);
	position: relative;
	overflow: hidden;
	text-align: center;
}
/* subtle grid texture — matches the rest of the WaterBird dark sections */
.cthr-archive-hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(126,212,232,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(126,212,232,.04) 1px, transparent 1px);
	background-size: 70px 70px;
	mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
	pointer-events: none;
}
/* teal glow */
.cthr-archive-hero::after {
	content: "";
	position: absolute; inset: 0;
	background:
		radial-gradient(700px 500px at 20% 50%, rgba(17,76,95,.5), transparent 65%),
		radial-gradient(600px 400px at 80% 30%, rgba(30,136,168,.15), transparent 65%);
	pointer-events: none;
}

.cthr-archive-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 0 auto;
}

/* Eyebrow pill */
.cthr-archive-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: rgba(126,212,232,.08);
	color: #7ed4e8;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	padding: 8px 16px;
	border-radius: 30px;
	border: 1px solid rgba(126,212,232,.2);
	margin-bottom: 20px;
}
.cthr-archive-eyebrow::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #7ed4e8;
	box-shadow: 0 0 8px #7ed4e8;
	animation: cthr-pulse 2.2s ease-in-out infinite;
}
@keyframes cthr-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: .4; transform: scale(1.5); }
}

/* H1 */
.cthr-archive-h1 {
	font-family: 'Inter', sans-serif !important;
	font-size: clamp(28px, 5vw, 54px) !important;
	font-weight: 600 !important;
	letter-spacing: -1.5px !important;
	line-height: 1.08 !important;
	color: #fff !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
}

/* Sub line */
.cthr-archive-sub {
	font-size: clamp(14px, 1.5vw, 17px);
	line-height: 1.72;
	color: rgba(200,220,226,.7);
	margin: 0;
}

/* Board wrapper — white card lifted above the page bg */
.cthr-archive-board {
	max-width: 1060px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

@media (max-width: 580px) {
	.cthr-archive-hero { padding: 50px 20px 40px; }
	.cthr-archive-board { padding: 28px 18px 60px; }
}

/* ============================================================
   SINGLE JOB — H1 title bar
   ============================================================ */
.cthr-job-title-bar {
	margin-bottom: 24px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--cthr-border);
}

/* Department eyebrow */
.cthr-job-dept-label {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--cthr-teal-light);
	margin-bottom: 10px;
}

/* H1 */
.cthr-job-h1 {
	font-family: 'Inter', sans-serif !important;
	font-size: clamp(26px, 4vw, 42px) !important;
	font-weight: 700 !important;
	letter-spacing: -1.2px !important;
	line-height: 1.1 !important;
	color: var(--cthr-text) !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
}

/* Badges row under H1 */
.cthr-job-title-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}
