/* Needs home.css loaded first (shares .jah-wrap) */

/* Two-column layout: phone stacks, desktop puts sidebar on the right */
.jah-has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.jah-main { min-width: 0; }
.jah-has-sidebar .jah-job,
.jah-has-sidebar .jah-related,
.jah-has-sidebar .jah-page { max-width: none; }

@media (min-width: 1000px) {
	.jah-has-sidebar { grid-template-columns: minmax(0, 1fr) var(--jah-sidebar, 25%); align-items: start; }
	.jah-sidebar { position: sticky; top: 90px; }
}

/* Widgets */
.jah-widget { border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; background: #fff; margin-bottom: 14px; }
.jah-widget__title { margin: 0; padding: 8px 12px; font-size: 15px; font-weight: 600; color: #fff; }
.jah-widget__body { padding: 10px 12px; }
.jah-widget__list { list-style: none; margin: 0; padding: 0; }
.jah-widget__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
.jah-widget__list li:last-child { border-bottom: 0; }
.jah-widget__list a { color: #0b3d91; text-decoration: none; line-height: 1.4; }
.jah-widget__list a:hover { text-decoration: underline; }
.jah-widget__count { flex: none; font-size: 12px; color: #777; }

/* Search inside the first widget */
.jah-widget .search-form { display: flex; gap: 6px; padding: 10px 12px; }
.jah-widget .search-form label { flex: 1; }
.jah-widget .search-field { width: 100%; padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; }
.jah-widget .search-submit { background: #e8590c; color: #fff; border: 0; border-radius: 6px; padding: 0 14px; font-weight: 600; cursor: pointer; }
.jah-widget .screen-reader-text { position: absolute; left: -9999px; }

/* Join buttons */
.jah-join { display: flex; gap: 8px; }
.jah-join__btn { flex: 1; text-align: center; padding: 10px; border-radius: 6px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.jah-join__btn:hover { opacity: .9; }

/* State pills */
.jah-pill { display: inline-block; padding: 5px 12px; margin: 0 4px 8px 0; border-radius: 14px; background: #f3f4f6; color: #1d1d1f; font-size: 13px; text-decoration: none; }
.jah-pill:hover { background: #e8590c; color: #fff; }

/* Ad / custom widget area */
.jah-widget-area { margin-bottom: 14px; text-align: center; }
.jah-widget-area .widget { margin-bottom: 14px; }

.jah-widget a:focus-visible, .jah-pill:focus-visible, .jah-join__btn:focus-visible { outline: 2px solid #e8590c; outline-offset: 2px; }
