/* Elko Local Jobs — same design system */
.ejb-board, .ejb-single, .ejb-postform, .ejb-myjobs {
	--ejb-navy: #1B2A4A; --ejb-navy-deep: #14213C; --ejb-navy-soft: #2A3D66;
	--ejb-orange: #E87722; --ejb-orange-deep: #C2600F;
	--ejb-brick: #9C2F1E; --ejb-cream: #F6EFE1; --ejb-cream-deep: #EDE2CB;
	--ejb-pine: #2C4A33; --ejb-ink: #232A3B; --ejb-ink-soft: #5A6274; --ejb-line: #E2DACA;
	--ejb-shadow-1: 0 1px 2px rgba(20,33,60,.06), 0 1px 6px rgba(20,33,60,.05);
	--ejb-shadow-2: 0 2px 4px rgba(20,33,60,.07), 0 8px 20px rgba(20,33,60,.10);
	--ejb-display: "Bitter", "Iowan Old Style", "Georgia", serif;
	--ejb-ease: cubic-bezier(.33,1,.68,1);
	color: var(--ejb-ink);
}
.ejb-board h2, .ejb-board h3, .ejb-single h2, .ejb-single h3,
.ejb-postform h2, .ejb-postform h3, .ejb-myjobs h2 { font-family: var(--ejb-display); color: var(--ejb-navy); letter-spacing: -.01em; }

/* Buttons */
.ejb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	padding: .7rem 1.45rem; border-radius: 999px;
	font-weight: 700; font-size: .97rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	border: 2px solid var(--ejb-navy);
	transition: background .18s var(--ejb-ease), color .18s var(--ejb-ease), transform .12s var(--ejb-ease), box-shadow .18s var(--ejb-ease);
}
.ejb-btn:active { transform: translateY(1px); }
.ejb-btn-sm { padding: .45rem .95rem; font-size: .86rem; }
.ejb-btn-solid {
	background: linear-gradient(180deg, #F2853A 0%, var(--ejb-orange) 45%, var(--ejb-orange-deep) 100%);
	border-color: var(--ejb-orange-deep); color: #fff;
	box-shadow: var(--ejb-shadow-1), inset 0 1px 0 rgba(255,255,255,.28);
}
.ejb-btn-solid:hover, .ejb-btn-solid:focus { background: linear-gradient(180deg, var(--ejb-orange) 0%, var(--ejb-orange-deep) 100%); color: #fff; }
.ejb-btn-outline { background: #fff; color: var(--ejb-navy); }
.ejb-btn-outline:hover, .ejb-btn-outline:focus { background: var(--ejb-navy); color: #fff; }
.ejb-btn-link { background: none; border: 0; padding: 0; color: var(--ejb-brick); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ejb-btn:focus-visible, .ejb-btn-link:focus-visible { outline: 3px solid var(--ejb-orange); outline-offset: 2px; }

/* Hero */
.ejb-hero {
	display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
	color: #fff; padding: 1.7rem 1.8rem; margin-bottom: 1.4rem; border-radius: 14px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 90' preserveAspectRatio='none'%3E%3Ccircle cx='480' cy='30' r='34' fill='%23E87722' fill-opacity='.5'/%3E%3Cpath d='M0 90 L80 34 L140 62 L210 16 L280 56 L360 8 L440 58 L510 28 L600 60 L600 90 Z' fill='%232A3D66' fill-opacity='.55'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat,
		linear-gradient(165deg, var(--ejb-navy-soft) 0%, var(--ejb-navy) 42%, var(--ejb-navy-deep) 100%);
	box-shadow: var(--ejb-shadow-2);
}
.ejb-hero h2 { color: #fff; margin: 0 0 .3rem; font-size: 1.55rem; }
.ejb-hero p { margin: 0; color: #DFE4EF; max-width: 52ch; }

/* Search bar */
.ejb-search-bar {
	display: flex; flex-wrap: wrap; gap: .65rem;
	padding: 1.1rem; margin-bottom: 1.4rem; border-radius: 14px;
	background: linear-gradient(165deg, var(--ejb-navy-soft) 0%, var(--ejb-navy) 42%, var(--ejb-navy-deep) 100%);
	box-shadow: var(--ejb-shadow-2), inset 0 1px 0 rgba(255,255,255,.08);
}
.ejb-search-bar input[type="search"] { flex: 2 1 230px; }
.ejb-search-bar select { flex: 1 1 150px; }
.ejb-search-bar input, .ejb-search-bar select {
	appearance: none; padding: .68rem 1rem;
	border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
	font-size: .97rem; background: #fff; color: var(--ejb-ink);
	box-shadow: inset 0 1px 3px rgba(20,33,60,.12);
}
.ejb-search-bar select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B2A4A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem;
}
.ejb-search-bar input:focus, .ejb-search-bar select:focus { outline: none; box-shadow: inset 0 1px 3px rgba(20,33,60,.12), 0 0 0 3px var(--ejb-orange); }

/* Job rows */
.ejb-list { display: flex; flex-direction: column; gap: .8rem; }
.ejb-row {
	display: flex; align-items: center; gap: 1.1rem;
	background: #fff; border: 1px solid var(--ejb-line); border-radius: 12px;
	padding: 1rem 1.2rem;
	text-decoration: none; color: inherit;
	box-shadow: var(--ejb-shadow-1);
	transition: transform .18s var(--ejb-ease), box-shadow .18s var(--ejb-ease), border-color .18s var(--ejb-ease);
}
.ejb-row:hover { transform: translateY(-2px); box-shadow: var(--ejb-shadow-2); border-color: #CFC5AC; }
.ejb-row.is-featured { border: 2px solid var(--ejb-orange); }
.ejb-row-logo { flex: 0 0 56px; }
.ejb-row-logo img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--ejb-cream); display: block; }
.ejb-logo-fallback {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px;
	font-family: var(--ejb-display); font-size: 1.5rem; font-weight: 800; color: var(--ejb-navy);
	background: linear-gradient(160deg, var(--ejb-cream) 0%, var(--ejb-cream-deep) 100%);
}
.ejb-row-main { flex: 1 1 auto; min-width: 0; }
.ejb-row-main h3 { margin: 0 0 .15rem; font-size: 1.08rem; line-height: 1.3; color: var(--ejb-navy); }
.ejb-row-meta { margin: 0; font-size: .87rem; color: var(--ejb-ink-soft); }
.ejb-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex: 0 0 auto; }
.ejb-pay { font-weight: 800; color: var(--ejb-pine); font-size: .95rem; white-space: nowrap; }
.ejb-type {
	font-size: .74rem; font-weight: 700; color: var(--ejb-navy);
	background: var(--ejb-cream); border: 1px solid var(--ejb-line);
	padding: .16rem .6rem; border-radius: 999px; white-space: nowrap;
}
.ejb-when { font-size: .76rem; color: var(--ejb-ink-soft); }
.ejb-badge { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 800; color: #fff; vertical-align: 2px; }
.ejb-badge-new { background: var(--ejb-pine); letter-spacing: .08em; }
.ejb-badge-featured { background: var(--ejb-orange); }
.ejb-empty { background: var(--ejb-cream); border: 1px dashed var(--ejb-line); padding: 1.4rem 1.5rem; border-radius: 10px; }
.ejb-more-wrap { text-align: center; margin-top: 1.6rem; }
@media (max-width: 560px) {
	.ejb-row { flex-wrap: wrap; }
	.ejb-row-side { flex-direction: row; align-items: center; gap: .6rem; width: 100%; }
}

/* Single job */
.ejb-single-head { position: relative; padding-bottom: .9rem; margin-bottom: 1.2rem; }
.ejb-single-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg, var(--ejb-navy) 0 62%, var(--ejb-orange) 62% 84%, var(--ejb-brick) 84% 100%); border-radius: 2px; }
.ejb-single-meta { color: var(--ejb-brick); font-weight: 700; margin: 0 0 .5rem; }
.ejb-single-badges { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ejb-single-badges .ejb-pay { font-size: 1.25rem; }
.ejb-single-cols { display: grid; gap: 1.7rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .ejb-single-cols { grid-template-columns: 1.7fr 1fr; } }
.ejb-apply-card {
	position: relative; overflow: hidden; color: #fff;
	border-radius: 14px; padding: 1.3rem 1.35rem 1.4rem;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80' preserveAspectRatio='none'%3E%3Ccircle cx='240' cy='30' r='24' fill='%23E87722' fill-opacity='.55'/%3E%3Cpath d='M0 80 L60 34 L105 58 L165 20 L225 55 L300 27 L300 80 Z' fill='%232A3D66' fill-opacity='.65'/%3E%3C/svg%3E") top right / 100% 78px no-repeat,
		linear-gradient(170deg, var(--ejb-navy-soft) 0%, var(--ejb-navy) 38%, var(--ejb-navy-deep) 100%);
	box-shadow: var(--ejb-shadow-2);
}
.ejb-apply-card h3 { color: #fff; margin: 0 0 .8rem; padding-top: 1.9rem; }
.ejb-apply-card .ejb-btn { width: 100%; margin-bottom: .6rem; }
.ejb-apply-card .ejb-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ejb-apply-card .ejb-btn-outline:hover { background: #fff; color: var(--ejb-navy); }
#ejb-apply-form { background: rgba(255,255,255,.08); border-radius: 10px; padding: .9rem; margin-top: .4rem; }
#ejb-apply-form label { color: #fff; font-size: .86rem; }
#ejb-apply-form input[type="file"] { background: transparent; border: 1px dashed rgba(255,255,255,.4); color: #fff; padding: .5rem; }
.ejb-apply-status { font-size: .88rem; margin: .5rem 0 0; color: #fff; }
.ejb-company-note { background: rgba(255,255,255,.1); border-radius: 8px; padding: .7rem .9rem; margin: .5rem 0; line-height: 1.5; }
.ejb-backlink { margin-top: 1.6rem; }
.ejb-backlink a { color: var(--ejb-navy); font-weight: 600; }

/* Forms */
.ejb-form label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; color: var(--ejb-navy); }
.ejb-form input, .ejb-form textarea, .ejb-form select {
	display: block; width: 100%; margin-top: .35rem;
	padding: .62rem .8rem; border: 1px solid var(--ejb-line); border-radius: 6px;
	font-size: 1rem; font-weight: 400; background: #fff; color: var(--ejb-ink);
	box-shadow: inset 0 1px 2px rgba(20,33,60,.05);
	transition: border-color .15s, box-shadow .15s;
}
.ejb-form input:focus, .ejb-form textarea:focus, .ejb-form select:focus {
	outline: none; border-color: var(--ejb-orange);
	box-shadow: inset 0 1px 2px rgba(20,33,60,.05), 0 0 0 3px rgba(232,119,34,.28);
}
.ejb-form-row { display: grid; gap: 0 1.1rem; grid-template-columns: 1fr; }
.ejb-form-row-3 { display: grid; gap: 0 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.ejb-form-row { grid-template-columns: 1fr 1fr; }
	.ejb-form-row-3 { grid-template-columns: 1.4fr 1fr 1fr; }
}
.ejb-payfield { border: 1px solid var(--ejb-line); border-radius: 10px; padding: 1rem 1.1rem .3rem; margin-bottom: 1rem; }
.ejb-payfield legend { font-weight: 700; color: var(--ejb-navy); padding: 0 .4rem; }
.ejb-pricenote { background: var(--ejb-cream); border-left: 4px solid var(--ejb-orange); padding: .75rem 1.05rem; border-radius: 0 8px 8px 0; }
.ejb-notice { padding: .85rem 1.15rem; border-radius: 6px; margin-bottom: 1.1rem; box-shadow: var(--ejb-shadow-1); }
.ejb-notice-ok { background: #EAF2EA; border-left: 4px solid var(--ejb-pine); }
.ejb-notice-err { background: #F8E9E5; border-left: 4px solid var(--ejb-brick); }
.ejb-hint { font-size: .86rem; font-weight: 400; color: var(--ejb-ink-soft); }
.ejb-upload-btn { position: relative; overflow: hidden; }
.ejb-logo-preview img { width: 110px; height: 110px; object-fit: contain; border-radius: 10px; background: var(--ejb-cream); padding: 8px; box-shadow: var(--ejb-shadow-1); margin-bottom: .7rem; }

/* My Jobs */
.ejb-myjobs-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.ejb-myrow {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
	background: #fff; border: 1px solid var(--ejb-line); border-radius: 10px;
	padding: .8rem 1rem; margin-bottom: .7rem; box-shadow: var(--ejb-shadow-1);
}
.ejb-myrow-main h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.ejb-myrow-main a { color: var(--ejb-navy); text-decoration: none; }
.ejb-myrow-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.ejb-pill { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #fff; }
.ejb-pill-live { background: var(--ejb-pine); }
.ejb-pill-filled { background: var(--ejb-navy); }
.ejb-pill-expired { background: #8A8577; }
.ejb-pill-unpaiddraft { background: var(--ejb-orange); }

@media (prefers-reduced-motion: reduce) {
	.ejb-board *, .ejb-single *, .ejb-postform *, .ejb-myjobs * { transition: none !important; animation: none !important; }
	.ejb-row:hover { transform: none; }
}
