/* Jobbay – job board styles. Uses the theme's fonts; colors via --jobbay-accent. */
.jobbay {
	--jobbay-accent: #2563eb;
	--jobbay-text: inherit;
	--jobbay-muted: #646970;
	--jobbay-line: #e2e4e7;
	--jobbay-soft: #f6f7f9;
	--jobbay-radius: 8px;
	--jobbay-ok: #00733a;
	--jobbay-err: #b32d2e;
	box-sizing: border-box;
	margin: 0 0 2em;
}
.jobbay *, .jobbay *::before, .jobbay *::after { box-sizing: inherit; }
.jobbay [hidden] { display: none !important; }

/* Buttons */
.jobbay .jobbay-button,
.jobbay button.jobbay-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	background: var(--jobbay-accent); color: #fff; border: 2px solid var(--jobbay-accent);
	border-radius: 6px; padding: .6em 1.2em; font-size: 15px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: filter .15s;
}
.jobbay .jobbay-button:hover, .jobbay .jobbay-button:focus { filter: brightness(.92); color: #fff; }
.jobbay .jobbay-button--ghost { background: transparent; color: var(--jobbay-accent); }
.jobbay .jobbay-button--ghost:hover, .jobbay .jobbay-button--ghost:focus { color: var(--jobbay-accent); background: var(--jobbay-soft); filter: none; }
.jobbay .jobbay-button--small { padding: .4em .8em; font-size: 13px; }
.jobbay .jobbay-link-danger { color: var(--jobbay-err); }
.jobbay .jobbay-linkbutton { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }

/* Notices and boxes */
.jobbay-notice { padding: .8em 1em; border-radius: var(--jobbay-radius); margin: 0 0 1em; border-left: 4px solid; background: var(--jobbay-soft); }
.jobbay-notice--success { border-color: var(--jobbay-ok); background: #edfaef; }
.jobbay-notice--error { border-color: var(--jobbay-err); background: #fcf0f1; }
.jobbay-notice--info { border-color: var(--jobbay-accent); }
.jobbay-box { border: 1px solid var(--jobbay-line); border-radius: var(--jobbay-radius); padding: 1.2em 1.4em; margin: 0 0 1.5em; background: #fff; }
.jobbay-box h3 { margin-top: 0; }
.jobbay-empty { padding: 1.5em; text-align: center; background: var(--jobbay-soft); border-radius: var(--jobbay-radius); color: var(--jobbay-muted); }
.jobbay-help { display: block; color: var(--jobbay-muted); font-size: 13px; margin-top: .3em; }
.jobbay-count { color: var(--jobbay-muted); font-size: 14px; margin: 0 0 .6em; }

/* Search */
.jobbay-search { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; padding: 1em; background: var(--jobbay-soft); border-radius: var(--jobbay-radius); margin: 0 0 1.2em; }
.jobbay-search input[type="search"] { flex: 2 1 220px; }
.jobbay-search select { flex: 1 1 150px; }
.jobbay-search input[type="search"], .jobbay-search select { min-height: 42px; padding: .4em .7em; border: 1px solid var(--jobbay-line); border-radius: 6px; background: #fff; max-width: 100%; }
.jobbay-check { display: inline-flex; align-items: center; gap: .4em; cursor: pointer; margin-right: 1em; }

/* Job list */
.jobbay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6em; }
.jobbay-card { margin: 0; padding: 0; border: 1px solid var(--jobbay-line); border-radius: var(--jobbay-radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.jobbay-card:hover { border-color: var(--jobbay-accent); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.jobbay-card.is-featured { border-left: 4px solid var(--jobbay-accent); }
.jobbay-card__link { display: flex; gap: 1em; align-items: center; padding: 1em 1.1em; color: inherit; text-decoration: none; }
.jobbay-card__link:hover, .jobbay-card__link:focus { color: inherit; }
.jobbay-card__logo { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--jobbay-soft); display: flex; align-items: center; justify-content: center; }
.jobbay-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.jobbay-card__initial { font-size: 22px; font-weight: 700; color: var(--jobbay-accent); }
.jobbay-card__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.jobbay-card__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.jobbay-card__company { color: var(--jobbay-muted); font-size: 14px; }
.jobbay-card__meta { display: flex; flex-wrap: wrap; gap: .3em .9em; font-size: 13px; color: var(--jobbay-muted); }
.jobbay-meta--salary { color: var(--jobbay-ok); font-weight: 600; }
.jobbay-card__side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: .35em; text-align: right; }
.jobbay-card__date { font-size: 12px; color: var(--jobbay-muted); }
.jobbay-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: .2em .6em; border-radius: 20px; background: var(--jobbay-soft); white-space: nowrap; }
.jobbay-badge--featured { background: var(--jobbay-accent); color: #fff; }
.jobbay-pagination { margin-top: 1.2em; display: flex; gap: .3em; flex-wrap: wrap; }
.jobbay-pagination .page-numbers { padding: .4em .8em; border: 1px solid var(--jobbay-line); border-radius: 6px; text-decoration: none; }
.jobbay-pagination .page-numbers.current { background: var(--jobbay-accent); color: #fff; border-color: var(--jobbay-accent); }

/* Single job */
.jobbay-summary { border: 1px solid var(--jobbay-line); border-radius: var(--jobbay-radius); padding: 1.2em 1.4em; margin: 0 0 1.5em; background: var(--jobbay-soft); }
.jobbay-summary__company { display: flex; gap: 1em; align-items: center; margin-bottom: 1em; }
.jobbay-summary__logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.jobbay-summary__name { display: block; font-size: 18px; }
.jobbay-summary__site { font-size: 14px; }
.jobbay-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8em 1.4em; margin: 0 0 1em; }
.jobbay-facts div { margin: 0; }
.jobbay-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--jobbay-muted); margin: 0; font-weight: 600; }
.jobbay-facts dd { margin: .15em 0 0; font-weight: 600; }
.jobbay-apply { margin-top: 2em; padding: 1.4em; border: 2px solid var(--jobbay-line); border-radius: var(--jobbay-radius); scroll-margin-top: 90px; }
.jobbay-apply__title { margin-top: 0; }

/* Forms */
.jobbay-form .jobbay-field { margin: 0 0 1em; }
.jobbay-form label, .jobbay-form legend { display: block; font-weight: 600; margin-bottom: .3em; }
.jobbay-form .jobbay-check, .jobbay-form .jobbay-choice { font-weight: normal; }
.jobbay-form input[type="text"], .jobbay-form input[type="email"], .jobbay-form input[type="url"], .jobbay-form input[type="tel"],
.jobbay-form input[type="password"], .jobbay-form input[type="date"], .jobbay-form select, .jobbay-form textarea {
	width: 100%; max-width: 100%; padding: .55em .7em; border: 1px solid #c3c4c7; border-radius: 6px; background: #fff; font-size: 15px; min-height: 42px;
}
.jobbay-form textarea { min-height: 120px; line-height: 1.5; }
.jobbay-form input:focus, .jobbay-form select:focus, .jobbay-form textarea:focus { outline: 2px solid var(--jobbay-accent); outline-offset: 1px; border-color: var(--jobbay-accent); }
.jobbay-form fieldset { border: 0; padding: 0; margin: 0 0 1em; min-width: 0; }
.jobbay-form__section { margin: 1.6em 0 .8em; padding-bottom: .4em; border-bottom: 1px solid var(--jobbay-line); font-size: 18px; }
.jobbay-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1em; }
.jobbay-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jobbay-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jobbay-field--check { display: flex; align-items: flex-end; padding-bottom: .6em; }
.jobbay-req { color: var(--jobbay-err); }
.jobbay-choices { display: grid; gap: .5em; }
.jobbay-choice { display: flex; gap: .6em; align-items: center; padding: .8em 1em; border: 1px solid var(--jobbay-line); border-radius: 6px; cursor: pointer; }
.jobbay-choice:has(input:checked) { border-color: var(--jobbay-accent); background: var(--jobbay-soft); }
.jobbay-logo-preview { display: flex; gap: .8em; align-items: center; margin-bottom: .5em; }
.jobbay-actions { display: flex; gap: .6em; flex-wrap: wrap; margin-top: 1.5em; }
.jobbay-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.jobbay-inline-form { display: inline-flex; gap: .4em; align-items: center; flex-wrap: wrap; margin: 0 0 .4em; }
.jobbay-inline-form select { min-height: 34px; padding: .2em .5em; border: 1px solid #c3c4c7; border-radius: 6px; }

/* Account */
.jobbay-account { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5em; }
.jobbay-account__box { border: 1px solid var(--jobbay-line); border-radius: var(--jobbay-radius); padding: 1.4em; background: #fff; }
.jobbay-account__box h2 { margin-top: 0; font-size: 22px; }
.jobbay-account #jobbay-login p { margin: 0 0 1em; }
.jobbay-account #jobbay-login label { display: block; font-weight: 600; margin-bottom: .3em; }
.jobbay-account #jobbay-login .login-remember label { font-weight: normal; }
.jobbay-account #jobbay-login input[type="text"], .jobbay-account #jobbay-login input[type="password"] { width: 100%; padding: .55em .7em; border: 1px solid #c3c4c7; border-radius: 6px; min-height: 42px; }
.jobbay-account #jobbay-login .button-primary { background: var(--jobbay-accent); color: #fff; border: 0; border-radius: 6px; padding: .65em 1.3em; font-weight: 600; cursor: pointer; }
.jobbay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.jobbay-tab { position: relative; margin: 0 !important; }
.jobbay-tab input { position: absolute; opacity: 0; }
.jobbay-tab span { display: block; text-align: center; padding: .8em; border: 2px solid var(--jobbay-line); border-radius: 8px; cursor: pointer; font-weight: 600; }
.jobbay-tab span small { display: block; font-weight: normal; color: var(--jobbay-muted); font-size: 12px; }
.jobbay-tab input:checked + span { border-color: var(--jobbay-accent); background: var(--jobbay-soft); }
.jobbay-tab input:focus-visible + span { outline: 2px solid var(--jobbay-accent); outline-offset: 2px; }

/* Packages */
.jobbay-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2em; }
.jobbay-package { border: 1px solid var(--jobbay-line); border-radius: 12px; padding: 1.5em; background: #fff; display: flex; flex-direction: column; }
.jobbay-package.is-featured { border: 2px solid var(--jobbay-accent); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.jobbay-package__name { margin: 0 0 .3em; font-size: 20px; }
.jobbay-package__price { font-size: 30px; font-weight: 800; margin: 0 0 .6em; color: var(--jobbay-accent); }
.jobbay-package__price small, .jobbay-package__tax { display: block; font-size: 13px; font-weight: 600; color: var(--jobbay-muted); }
.jobbay-package__features { list-style: none; padding: 0; margin: 0 0 1em; flex: 1; }
.jobbay-package__features li { padding: .35em 0 .35em 1.4em; position: relative; border-bottom: 1px dashed var(--jobbay-line); }
.jobbay-package__features li::before { content: "✓"; position: absolute; left: 0; color: var(--jobbay-ok); font-weight: 700; }
.jobbay-package__desc { color: var(--jobbay-muted); font-size: 14px; }
.jobbay-package form { margin: 0; }
.jobbay-package .jobbay-button { width: 100%; }

/* Dashboards */
.jobbay-dash-head { display: flex; flex-wrap: wrap; gap: 1em; justify-content: space-between; align-items: center; margin: 0 0 1.2em; }
.jobbay-dash-title { margin: 0; }
.jobbay-dash-head--end { justify-content: flex-end; }
.jobbay-cv-box .jobbay-inline-form { margin-right: 1em; }
.jobbay-dash-tabs { display: flex; gap: .3em; }
.jobbay-dash-tabs a { padding: .5em 1em; border-radius: 6px; text-decoration: none; font-weight: 600; color: inherit; }
.jobbay-dash-tabs a.is-active { background: var(--jobbay-soft); color: var(--jobbay-accent); }
.jobbay-dash-actions { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.jobbay-dash-actions .jobbay-help { margin: 0; }
.jobbay-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.jobbay-table th, .jobbay-table td { text-align: left; padding: .75em .6em; border-bottom: 1px solid var(--jobbay-line); vertical-align: top; }
.jobbay-table th { font-size: 13px; color: var(--jobbay-muted); font-weight: 600; }
.jobbay-row-actions { white-space: nowrap; text-align: right; }
.jobbay-row-actions a { margin-left: .8em; font-size: 14px; }
.jobbay-status { display: inline-block; font-size: 12px; font-weight: 600; padding: .2em .6em; border-radius: 20px; background: var(--jobbay-soft); }
.jobbay-status--publish, .jobbay-status--app-hired, .jobbay-status--app-shortlisted { background: #edfaef; color: var(--jobbay-ok); }
.jobbay-status--pending, .jobbay-status--app-interview { background: #fcf9e8; color: #8a6d00; }
.jobbay-status--expired, .jobbay-status--app-rejected { background: #f0f0f1; color: var(--jobbay-muted); }
.jobbay-status--app-new { background: var(--jobbay-accent); color: #fff; }
.jobbay-applications { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: .8em; }
.jobbay-application { border: 1px solid var(--jobbay-line); border-radius: var(--jobbay-radius); padding: 1em 1.2em; background: #fff; }
.jobbay-application--new { border-left: 4px solid var(--jobbay-accent); }
.jobbay-application__head { display: flex; flex-wrap: wrap; gap: .6em; align-items: center; }
.jobbay-application__head .jobbay-help { margin: 0 0 0 auto; }
.jobbay-application__name { font-size: 17px; }
.jobbay-application__contact { margin: .3em 0 .6em; font-size: 14px; }
.jobbay-application__message { background: var(--jobbay-soft); padding: .8em 1em; border-radius: 6px; margin: 0 0 .8em; font-size: 14px; white-space: normal; }
.jobbay-application__actions { display: flex; flex-wrap: wrap; gap: .6em; align-items: center; }
.jobbay-bank { background: var(--jobbay-soft); padding: .8em 1em; border-radius: 6px; }

.jobbay .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

@media (max-width: 700px) {
	.jobbay-row, .jobbay-row--3, .jobbay-row--4 { grid-template-columns: 1fr; }
	.jobbay-card__link { flex-wrap: wrap; }
	.jobbay-card__side { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; padding-left: calc(56px + 1em); }
	.jobbay-table thead { display: none; }
	.jobbay-table, .jobbay-table tbody, .jobbay-table tr, .jobbay-table td { display: block; width: 100%; }
	.jobbay-table tr { border: 1px solid var(--jobbay-line); border-radius: var(--jobbay-radius); margin-bottom: .8em; padding: .4em .8em; }
	.jobbay-table td { border: 0; padding: .3em 0; }
	.jobbay-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--jobbay-muted); }
	.jobbay-row-actions { text-align: left; }
	.jobbay-row-actions a { margin: 0 1em 0 0; }
}

/* Right-to-left */
[dir="rtl"] .jobbay-card.is-featured { border-left: 1px solid var(--jobbay-line); border-right: 4px solid var(--jobbay-accent); }
[dir="rtl"] .jobbay-card__side { align-items: flex-start; text-align: left; }
[dir="rtl"] .jobbay-table th, [dir="rtl"] .jobbay-table td { text-align: right; }
[dir="rtl"] .jobbay-row-actions { text-align: left; }
[dir="rtl"] .jobbay-notice { border-left: 0; border-right: 4px solid; }
[dir="rtl"] .jobbay-package__features li { padding: .35em 1.4em .35em 0; }
[dir="rtl"] .jobbay-package__features li::before { left: auto; right: 0; }
[dir="rtl"] .jobbay-application--new { border-left: 1px solid var(--jobbay-line); border-right: 4px solid var(--jobbay-accent); }
