/* Pratham Jobs – employer area. Uses the theme's tokens when present. */
.pj-emp {
	--e-ink: var(--pc-ink, #15213f);
	--e-text: var(--pc-text, #1e2738);
	--e-muted: var(--pc-muted, #5d6679);
	--e-line: var(--pc-line, #dfe3ea);
	--e-soft: var(--pc-soft, #f4f6f9);
	--e-brand: var(--pc-brand, #1f3a93);
	--e-brand-dark: var(--pc-brand-dark, #172c70);
	--e-brand-tint: var(--pc-brand-tint, #ebf0fb);
	--e-leaf: var(--pc-leaf, #0b7a4b);
	--e-leaf-tint: var(--pc-leaf-tint, #e5f4ec);
	--e-haldi-tint: var(--pc-haldi-tint, #fff6df);
	--e-danger: var(--pc-danger, #b42318);
	--e-r: 4px;
	color: var(--e-text);
	font-size: 1rem;
	line-height: 1.55;
	max-width: 860px;
	margin: 0 auto;
}
.pj-emp *, .pj-emp *::before, .pj-emp *::after { box-sizing: border-box; }
/* Single-column grids: minmax(0, 1fr) keeps long input from widening the page on phones. */
.pj-auth, .pj-ticks, .pj-form, .pj-grid-2, .pj-grid-3, .pj-grid-4, .pj-section, .pj-terms, .pj-terms ul, .pj-grammar__list { grid-template-columns: minmax(0, 1fr); }
.pj-emp h2 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 .4em; color: var(--e-ink); letter-spacing: -.01em; }
.pj-emp h3 { font-size: 1.15rem; margin: 0 0 .4em; color: var(--e-ink); }
.pj-emp p { margin: 0 0 .9em; }
.pj-muted { color: var(--e-muted); font-size: .92rem; margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* Cards and layout */
.pj-card { background: #fff; border: 1px solid var(--e-line); border-radius: 6px; padding: 24px; }
.pj-auth { display: grid; gap: 32px; align-items: start; }
@media (min-width: 760px) { .pj-auth { grid-template-columns: minmax(0, 1fr) 380px; } .pj-auth--narrow { grid-template-columns: minmax(0, 460px); justify-content: center; } }
.pj-auth__intro p { color: var(--e-muted); }
.pj-ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.pj-ticks li { padding-left: 30px; position: relative; font-weight: 500; }
.pj-ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--e-leaf-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Fields */
.pj-form { display: grid; gap: 18px; }
.pj-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.pj-emp [hidden] { display: none !important; }
.pj-field label, .pj-label { font-weight: 600; font-size: .94rem; color: var(--e-ink); }
.pj-optional { font-weight: 400; color: var(--e-muted); font-size: .85rem; }
.pj-emp input[type=text], .pj-emp input[type=email], .pj-emp input[type=tel], .pj-emp input[type=number], .pj-emp input[type=date], .pj-emp select, .pj-emp textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--e-text);
	background: #fff; border: 1.5px solid var(--e-line); border-radius: var(--e-r); transition: border-color .15s, box-shadow .15s;
}
.pj-emp textarea { min-height: 220px; resize: vertical; }
.pj-emp select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6679' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.pj-emp input:focus, .pj-emp select:focus, .pj-emp textarea:focus, .pj-editor__area:focus { outline: none; border-color: var(--e-brand); box-shadow: 0 0 0 3px var(--e-brand-tint); }
.pj-emp [aria-invalid="true"] { border-color: var(--e-danger) !important; }
.pj-emp input:disabled, .pj-emp select:disabled { background: var(--e-soft); color: var(--e-muted); }
.pj-code { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.pj-help { font-size: .85rem; color: var(--e-muted); margin: 0; }
.pj-help--top { margin: -4px 0 14px; }
.pj-error { color: var(--e-danger); font-size: .88rem; font-weight: 500; margin: 0; }
.pj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pj-grid-2, .pj-grid-3, .pj-grid-4 { display: grid; gap: 16px; }
@media (min-width: 640px) { .pj-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pj-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pj-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pj-section { border: 1px solid var(--e-line); margin: 0; display: grid; gap: 16px; }
.pj-section legend { font-weight: 700; font-size: 1.08rem; color: var(--e-ink); padding: 0 6px; margin-left: -6px; }
.pj-field--date input { max-width: 220px; }
.pj-salary[data-hidden] { opacity: .55; }
.pj-count { font-size: .82rem; color: var(--e-muted); font-variant-numeric: tabular-nums; }
.pj-count--inline { justify-self: end; margin-top: -2px; }
.pj-count.is-bad { color: var(--e-danger); }

/* Segmented radios and checks */
.pj-segment { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-segment label { position: relative; font-weight: 500; }
.pj-segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pj-segment span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1.5px solid var(--e-line); border-radius: 3px; background: #fff; }
.pj-segment input:checked + span { border-color: var(--e-brand); background: var(--e-brand-tint); color: var(--e-brand-dark); font-weight: 600; }
.pj-segment input:focus-visible + span { box-shadow: 0 0 0 3px var(--e-brand-tint); }
.pj-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.pj-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--e-brand); flex: none; }
.pj-check--inline { margin-top: 4px; font-weight: 400; }

/* Editor */
.pj-editor { border: 1.5px solid var(--e-line); border-radius: var(--e-r); background: #fff; overflow: hidden; }
.pj-editor:focus-within { border-color: var(--e-brand); box-shadow: 0 0 0 3px var(--e-brand-tint); }
.pj-editor__bar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--e-line); background: var(--e-soft); }
.pj-editor__btn { min-width: 38px; height: 36px; border: 0; border-radius: 3px; background: transparent; font: inherit; font-weight: 700; color: var(--e-ink); cursor: pointer; }
.pj-editor__btn:hover, .pj-editor__btn:focus-visible { background: #fff; outline: none; box-shadow: 0 0 0 1px var(--e-line); }
.pj-editor__btn--italic { font-style: italic; font-family: Georgia, serif; }
.pj-editor__btn--undo { margin-left: auto; font-weight: 400; }
.pj-editor__area { min-height: 260px; max-height: 70vh; overflow-y: auto; padding: 14px 16px; line-height: 1.6; border: 0 !important; box-shadow: none !important; }
.pj-editor__area p, .pj-editor__area ul, .pj-editor__area ol { margin: 0 0 .7em; }
.pj-editor__area h3 { font-size: 1.05rem; margin: 1em 0 .4em; }
.pj-editor__area ul, .pj-editor__area ol { padding-left: 1.4em; }
.pj-editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pj-grammar { border: 1px solid var(--e-line); border-radius: var(--e-r); padding: 12px 14px; background: var(--e-soft); font-size: .92rem; }
.pj-grammar__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.pj-grammar__list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; background: #fff; border: 1px solid var(--e-line); border-radius: 3px; padding: 10px 12px; }
.pj-grammar__list p { margin: 0; flex: 1 1 100%; }
.pj-grammar__list small { color: var(--e-muted); flex: 1 1 auto; }
.pj-grammar del { color: var(--e-danger); }
.pj-grammar ins { color: var(--e-leaf); text-decoration: none; font-weight: 600; }

/* Terms */
.pj-terms { background: var(--e-haldi-tint); border: 1px solid #f3dc9c; border-radius: 6px; padding: 18px 20px; display: grid; gap: 12px; }
.pj-terms__title { font-weight: 700; margin: 0; color: var(--e-ink); }
.pj-terms ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .94rem; }
.pj-terms a { color: var(--e-brand); }

/* Buttons */
.pj-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; font: inherit; font-weight: 600; border-radius: var(--e-r); border: 1.5px solid var(--e-brand); background: #fff; color: var(--e-brand); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.pj-btn:hover { background: var(--e-brand-tint); }
.pj-btn:focus-visible, .pj-link:focus-visible { outline: 3px solid var(--e-brand-tint); outline-offset: 2px; }
.pj-btn--primary { background: var(--e-brand); color: #fff; }
.pj-btn--primary:hover { background: var(--e-brand-dark); color: #fff; }
.pj-btn--block { width: 100%; }
.pj-btn--lg { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.pj-btn--sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.pj-btn--ghost { border-color: var(--e-line); color: var(--e-ink); }
.pj-btn--danger { color: var(--e-danger); }
.pj-btn--disabled { opacity: .5; cursor: not-allowed; border-color: var(--e-line); color: var(--e-muted); }
.pj-link { background: none; border: 0; padding: 0; font: inherit; color: var(--e-brand); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pj-inline-form { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; font-size: .9rem; color: var(--e-muted); }
.pj-submit { display: grid; gap: 8px; justify-items: start; }

/* Notices */
.pj-notice { border-radius: var(--e-r); padding: 12px 16px; margin: 0 0 18px; font-weight: 500; border: 1px solid; }
.pj-notice--ok { background: var(--e-leaf-tint); border-color: #b5dfc8; color: #0a5a38; }
.pj-notice--info { background: var(--e-brand-tint); border-color: #c8d4f1; color: var(--e-brand-dark); }
.pj-notice--error { background: #fdecea; border-color: #f4c3bd; color: var(--e-danger); }
.pj-notice:focus { outline: 2px solid currentColor; }
.pj-verified { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.pj-verified span { font-size: .78rem; font-weight: 700; color: var(--e-leaf); background: var(--e-leaf-tint); padding: 2px 8px; border-radius: 3px; }

/* Dashboard */
.pj-dash__head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.pj-dash__actions { display: flex; gap: 16px; align-items: center; }
.pj-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.pj-stats div { background: var(--e-soft); border-radius: 6px; padding: 14px 16px; }
.pj-stats dt { font-size: .82rem; color: var(--e-muted); }
.pj-stats dd { margin: 2px 0 0; font-size: 1.5rem; font-weight: 700; color: var(--e-ink); font-variant-numeric: tabular-nums; }
.pj-joblist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--e-line); border-radius: 6px; background: #fff; }
.pj-joblist__item { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 18px; border-top: 1px solid var(--e-line); }
.pj-joblist__item:first-child { border-top: 0; }
.pj-joblist__main { min-width: 0; flex: 1 1 320px; }
.pj-joblist__title { display: block; font-weight: 700; color: var(--e-ink); text-decoration: none; margin: 4px 0 2px; }
.pj-joblist__title:hover { color: var(--e-brand); }
.pj-joblist__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pj-joblist__actions form { margin: 0; }
.pj-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 3px; }
.pj-badge--live { background: var(--e-leaf-tint); color: var(--e-leaf); }
.pj-badge--review { background: var(--e-haldi-tint); color: #8a5a00; }
.pj-badge--closed { background: var(--e-soft); color: var(--e-muted); }
.pj-empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--e-line); border-radius: 6px; }
.pj-jobform__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) {
	.pj-card { padding: 16px; }
	.pj-section { padding: 16px 14px; }
	.pj-stats dd { font-size: 1.25rem; }
	.pj-submit { justify-items: stretch; }
	.pj-submit .pj-btn { width: 100%; }
}

/* Touch screens: every control at least 44 px (WCAG 2.5.5 / Google tap-target guidance). */
@media (pointer: coarse) {
	.pj-btn--sm { min-height: 44px; padding: 8px 14px; }
	.pj-editor__btn { min-width: 44px; height: 44px; }
	.pj-link { display: inline-flex; align-items: center; min-height: 44px; }
	.pj-joblist__title { display: flex; align-items: center; min-height: 44px; margin: 0; }
	.pj-check { min-height: 44px; align-items: center; }
}
