/* NewzTodays Jobs – uses the Kadence global palette so it follows the site theme. */
.ntj-portal, .ntj-jobbox, .ntj-related, .ntj-breadcrumbs, .ntj-alert {
	--ntj-accent: var(--global-palette1, #2b6cb0);
	--ntj-accent-dark: var(--global-palette2, #215387);
	--ntj-text: var(--global-palette3, #1a202c);
	--ntj-text-2: var(--global-palette5, #4a5568);
	--ntj-muted: var(--global-palette6, #718096);
	--ntj-line: var(--global-palette7, #edf2f7);
	--ntj-soft: var(--global-palette8, #f7fafc);
	--ntj-card: var(--global-palette9, #ffffff);
	--ntj-green: var(--global-palette11, #13612e);
	--ntj-red: var(--global-palette13, #b82105);
	--ntj-amber: var(--global-palette14, #f7630c);
	--ntj-radius: 10px;
	color: var(--ntj-text);
}
.ntj-main { padding-top: 1.5rem; padding-bottom: 2.5rem; }
.ntj-ico { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; vertical-align: -3px; }

/* Hero */
.ntj-hero { background: linear-gradient(135deg, var(--ntj-accent-dark), var(--ntj-accent)); color: #fff; border-radius: var(--ntj-radius); padding: clamp(1.5rem, 4vw, 2.75rem); margin-bottom: 1.25rem; }
.ntj-hero h1 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.15; }
.ntj-hero p { color: rgba(255,255,255,.92); margin: 0 0 .75rem; max-width: 62rem; font-size: 1.02rem; }
.ntj-hero-stats { font-size: .9rem !important; margin: 0 !important; opacity: .95; }

/* Search & filters */
.ntj-search { background: var(--ntj-card); border: 1px solid var(--ntj-line); border-radius: var(--ntj-radius); padding: 1rem; box-shadow: 0 4px 14px rgba(26,32,44,.06); margin-bottom: 1rem; }
.ntj-search-main { display: flex; gap: .5rem; }
.ntj-search-main input[type="search"] { flex: 1; min-width: 0; padding: .75rem .9rem; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 1rem; }
.ntj-filters { margin-top: .75rem; }
.ntj-filters summary { cursor: pointer; font-weight: 600; color: var(--ntj-accent); }
.ntj-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-top: .75rem; }
.ntj-field span { display: block; font-size: .8rem; font-weight: 600; color: var(--ntj-text-2); margin-bottom: .25rem; }
.ntj-field select { width: 100%; padding: .55rem; border: 1px solid #cbd5e0; border-radius: 8px; background: #fff; }
.ntj-filter-actions { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; }
.ntj-reset { font-size: .9rem; }

.ntj-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; }
.ntj-chip { display: inline-block; padding: .4rem .85rem; border-radius: 999px; background: var(--ntj-soft); border: 1px solid var(--ntj-line); color: var(--ntj-text); font-size: .88rem; font-weight: 500; text-decoration: none; }
.ntj-chip:hover, .ntj-chip:focus { background: var(--ntj-accent); border-color: var(--ntj-accent); color: #fff; }

/* Buttons */
.ntj-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .6rem 1.05rem; border-radius: 8px; border: 1px solid var(--ntj-accent); background: var(--ntj-accent); color: #fff !important; font-weight: 600; font-size: .9rem; line-height: 1.2; text-decoration: none !important; cursor: pointer; white-space: nowrap; }
.ntj-btn:hover, .ntj-btn:focus { background: var(--ntj-accent-dark); border-color: var(--ntj-accent-dark); }
.ntj-btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.ntj-btn-ghost { background: transparent; color: var(--ntj-accent) !important; }
.ntj-btn-ghost:hover, .ntj-btn-ghost:focus { color: #fff !important; }

/* Sections */
.ntj-section { margin: 0 0 2.25rem; }
.ntj-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ntj-line); margin-bottom: 1rem; padding-bottom: .5rem; }
.ntj-section-head h2 { margin: 0; font-size: clamp(1.25rem, 2.6vw, 1.55rem); position: relative; }
.ntj-section-head h2::after { content: ""; position: absolute; left: 0; bottom: calc(-.5rem - 2px); width: 56px; height: 2px; background: var(--ntj-accent); }
.ntj-more-link { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.ntj-count { color: var(--ntj-text-2); margin: 0 0 .75rem; }
.ntj-empty { background: var(--ntj-soft); border: 1px dashed #cbd5e0; border-radius: var(--ntj-radius); padding: 1.25rem; color: var(--ntj-text-2); margin: 0; }

/* Cards */
.ntj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.ntj-card { display: flex; flex-direction: column; background: var(--ntj-card); border: 1px solid var(--ntj-line); border-radius: var(--ntj-radius); padding: 1rem 1.1rem; box-shadow: 0 2px 8px rgba(26,32,44,.05); transition: box-shadow .15s ease, transform .15s ease; }
.ntj-card:hover { box-shadow: 0 8px 22px rgba(26,32,44,.10); transform: translateY(-2px); }
.ntj-card-tags { display: flex; gap: .4rem; margin-bottom: .5rem; min-height: 1.4rem; }
.ntj-tag { font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 5px; background: var(--ntj-soft); color: var(--ntj-text-2); }
.ntj-tag-government { background: #e6f4ea; color: var(--ntj-green); }
.ntj-tag-private { background: #e8f0fe; color: var(--ntj-accent-dark); }
.ntj-tag-warn { background: #fff4e5; color: #9a3412; }
.ntj-card-title { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .35rem; }
.ntj-card-title a { color: var(--ntj-text); text-decoration: none; }
.ntj-card-title a:hover { color: var(--ntj-accent); }
.ntj-card-org { margin: 0 0 .6rem; color: var(--ntj-text-2); font-size: .9rem; font-weight: 500; }
.ntj-card-meta { list-style: none; margin: 0 0 .75rem; padding: 0; font-size: .87rem; color: var(--ntj-text-2); }
.ntj-card-meta li { display: flex; align-items: flex-start; margin: 0 0 .3rem; }
.ntj-card-meta .ntj-ico { margin-top: 3px; vertical-align: 0; }
.ntj-na { color: var(--ntj-muted); font-style: italic; }
.ntj-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--ntj-line); padding-top: .75rem; }
.ntj-card-dates { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; color: var(--ntj-muted); }
.ntj-deadline { color: var(--ntj-text-2); }
.ntj-status-closing_soon .ntj-deadline strong { color: var(--ntj-red); }

/* Province / qualification tiles */
.ntj-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: .75rem; }
.ntj-tile { display: flex; align-items: center; padding: .85rem 1rem; border: 1px solid var(--ntj-line); border-radius: var(--ntj-radius); background: var(--ntj-card); color: var(--ntj-text); font-weight: 600; text-decoration: none; }
.ntj-tile .ntj-ico { color: var(--ntj-accent); width: 18px; height: 18px; flex-basis: 18px; }
.ntj-tile:hover, .ntj-tile:focus { border-color: var(--ntj-accent); color: var(--ntj-accent); }

/* Official sources */
.ntj-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .6rem; }
.ntj-sources li { border: 1px solid var(--ntj-line); border-radius: 8px; padding: .7rem .9rem; background: var(--ntj-soft); }
.ntj-sources a { font-weight: 600; display: block; }
.ntj-sources span { font-size: .82rem; color: var(--ntj-muted); }
.ntj-about { background: var(--ntj-soft); border-radius: var(--ntj-radius); padding: 1.25rem 1.4rem; font-size: .95rem; color: var(--ntj-text-2); }
.ntj-about h2 { font-size: 1.2rem; margin-top: 0; }
.ntj-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.25rem; }

/* Single job */
.ntj-breadcrumbs { font-size: .85rem; color: var(--ntj-muted); margin: 0 0 1rem; }
.ntj-breadcrumbs a { color: var(--ntj-text-2); }
.ntj-alert { border-radius: 8px; padding: .8rem 1rem; margin: 0 0 1rem; font-size: .95rem; }
.ntj-alert-closed { background: #fdecea; border: 1px solid #f5c2c0; color: #7f1d1d; }
.ntj-alert-warn { background: #fff4e5; border: 1px solid #fcd9b6; color: #7c2d12; }
.ntj-jobbox { border: 1px solid var(--ntj-line); border-top: 4px solid var(--ntj-accent); border-radius: var(--ntj-radius); padding: 1.1rem 1.25rem 1.25rem; margin: 0 0 1.75rem; background: var(--ntj-card); box-shadow: 0 2px 10px rgba(26,32,44,.05); }
.ntj-jobbox-title { font-size: 1.2rem; margin: 0 0 .75rem; }
.ntj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 1.5rem; margin: 0; }
.ntj-fact { display: grid; grid-template-columns: 9.5rem 1fr; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--ntj-line); font-size: .92rem; }
.ntj-fact dt { font-weight: 600; color: var(--ntj-text-2); margin: 0; }
.ntj-fact dd { margin: 0; overflow-wrap: anywhere; }
.ntj-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 .75rem; }
.ntj-disclaimer { font-size: .8rem; color: var(--ntj-muted); margin: 0; }
.ntj-related { margin-top: 2.5rem; }
.ntj-related h2 { font-size: 1.3rem; }
.ntj-more { margin-top: .75rem; font-weight: 600; }

@media (max-width: 600px) {
	.ntj-search-main { flex-direction: column; }
	.ntj-search-main .ntj-btn { width: 100%; }
	.ntj-section-head { flex-direction: column; align-items: flex-start; gap: .35rem; }
	.ntj-fact { grid-template-columns: 1fr; gap: .1rem; }
	.ntj-card-foot { flex-direction: column; align-items: stretch; }
	.ntj-card-foot .ntj-btn { width: 100%; }
	.ntj-actions .ntj-btn { width: 100%; }
}
