/* Features: ads, save / remind / share, filters, trending, saved page, header saved icon */

/* ---------- Ads ---------- */
.jah-ad { margin: 14px 0; text-align: center; max-width: 100%; overflow: hidden; }
.jah-ad__label { display: block; margin: 0 0 4px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #8a8f99; }
.jah-ad ins, .jah-ad iframe, .jah-ad img { max-width: 100%; }
.jah-ad-bar { max-width: var(--jah-site-width, 1200px); margin: 0 auto; padding: 0 12px; background: #fff; }

/* ---------- Save, remind, share ---------- */
.jah-actions-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.jah-act { flex: 1 1 140px; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid #cfd3da; border-radius: 8px; background: #fff; color: #1d1d1f; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.jah-act svg { width: 18px; height: 18px; flex: none; }
.jah-act:hover { border-color: #e8590c; color: #8a3a00; }
.jah-act.is-on { background: #fff3e6; border-color: #e8590c; color: #8a3a00; }
.jah-act.is-on svg path { fill: #e8590c; stroke: #e8590c; }
.jah-act:focus-visible, .jah-share__btn:focus-visible { outline: 3px solid #0b3d91; outline-offset: 2px; }
.jah-act-msg { flex-basis: 100%; margin: 0; font-size: 12px; color: #b91c1c; }
.jah-act-msg:empty { display: none; }

.jah-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.jah-share__label { font-size: 13px; font-weight: 600; color: #666; }
.jah-share__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 20px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; }
.jah-share__btn:hover { color: #fff; opacity: .92; }
.jah-share__btn--wa { background: #128c4a; }
.jah-share__btn--tg { background: #1b8fc7; }
.jah-share__btn--copy { background: #555; }
.jah-share__msg { font-size: 12px; color: #15803d; }

/* ---------- Category filters ---------- */
.jah-filters { margin: 0 0 14px; padding: 10px; background: #f2f8fd; border: 1px solid #cfe3f6; border-radius: 8px; }
.jah-filters__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.jah-filters__field span { display: block; margin: 0 0 3px; font-size: 12px; font-weight: 600; color: #555; }
.jah-filters__field select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #cfd3da; border-radius: 6px; background: #fff; font-size: 14px; color: #1d1d1f; }
.jah-filters__buttons { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.jah-filters__apply { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 6px; background: #e8590c; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.jah-filters__reset { font-size: 14px; font-weight: 600; color: #0b3d91; }
.jah-filters__field select:focus-visible, .jah-filters__apply:focus-visible { outline: 3px solid #0b3d91; outline-offset: 2px; }

/* ---------- Trending in the sidebar ---------- */
.jah-rank { flex: none; width: 18px; font-weight: 700; color: #c2410c; }
.jah-widget__list li.jah-trend { justify-content: flex-start; align-items: flex-start; }
.jah-trend a { flex: 1; }
.jah-trend .jah-widget__count { white-space: nowrap; }

/* ---------- Saved jobs page ---------- */
.jah-saved-total { font-weight: 500; color: #666; }
.jah-saved-note { font-size: 13px; color: #666; margin: 0 0 14px; }
.jah-saved-list { margin: 0 0 14px; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; }
.jah-saved-list:empty { display: none; }
.jah-saved-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid #eee; background: #fff; }
.jah-saved-item:last-child { border-bottom: 0; }
.jah-saved-item__main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.jah-saved-item__main a { color: #0b3d91; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.jah-saved-item__main a:hover { text-decoration: underline; }
.jah-linkbtn { padding: 8px 4px; border: 0; background: none; color: #0b3d91; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 40px; }
.jah-linkbtn--danger { color: #b91c1c; flex: none; }
.jah-linkbtn:focus-visible { outline: 3px solid #0b3d91; outline-offset: 2px; }

/* ---------- Header: saved icon with count ---------- */
.header-tools { display: flex; align-items: center; gap: 2px; }
.saved-link { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--hdr-text, #1d1d1f); text-decoration: none; }
.saved-link svg { width: 22px; height: 22px; }
.saved-link:focus-visible { outline: 2px solid var(--hdr-accent, #e8590c); outline-offset: 2px; }
.saved-count { position: absolute; top: 4px; right: 2px; display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #e8590c; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
