/* Needs home.css and category.css loaded first (shares .jah-wrap, .jah-crumbs, .jah-badge) */

.jah-job { max-width: 820px; margin: 0 auto; }
.jah-job__title { font-size: 22px; line-height: 1.35; margin: 0 0 8px; }
.jah-job__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #666; margin: 0 0 14px; }

/* Summary box */
.jah-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; padding: 12px; background: #fff3e6; border: 1px solid #f5c89a; border-radius: 8px; }
.jah-summary dt { font-size: 12px; color: #8a3a00; }
.jah-summary dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: #5c2500; }

/* Section headings and tables */
.jah-sec { font-size: 16px; font-weight: 600; margin: 0; padding: 8px 12px; background: #0b3d91; color: #fff; border-radius: 6px 6px 0 0; }
.jah-table-wrap { overflow-x: auto; border: 1px solid #e5e5e5; border-top: 0; border-radius: 0 0 6px 6px; margin: 0 0 16px; }
.jah-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jah-table th, .jah-table td { padding: 8px 12px; border-bottom: 1px solid #eee; text-align: left; }
.jah-table tr:last-child th, .jah-table tr:last-child td { border-bottom: 0; }
.jah-table th { width: 45%; font-weight: 500; color: #555; background: #fafafa; }

.jah-steps { margin: 0 0 16px; padding: 10px 12px 10px 32px; border: 1px solid #e5e5e5; border-top: 0; border-radius: 0 0 6px 6px; font-size: 14px; line-height: 1.7; }

.jah-entry { padding: 12px 0; margin: 0 0 16px; font-size: 14px; line-height: 1.7; overflow-wrap: break-word; overflow-x: auto; }
.jah-entry h2 { font-size: 18px; margin: 22px 0 8px; }
.jah-entry h3 { font-size: 16px; margin: 18px 0 6px; }
.jah-entry ul, .jah-entry ol { padding-left: 24px; }
.jah-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; }
.jah-entry table { width: 100%; border-collapse: collapse; margin: 0; }
.jah-entry th, .jah-entry td { border: 1px solid #e5e5e5; padding: 8px 10px; text-align: left; vertical-align: top; min-width: 96px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.jah-entry th, .jah-entry thead td { background: #0b3d91; color: #fff; font-weight: 600; border-color: #2a5cb8; }
.jah-entry img { max-width: 100%; height: auto; }

/* Buttons */
.jah-actions { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.jah-btn { display: block; text-align: center; padding: 12px; border-radius: 6px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; }
.jah-btn:hover { opacity: .9; }
.jah-btn:focus-visible { outline: 2px solid #1d1d1f; outline-offset: 2px; }
.jah-btn--apply { background: #e8590c; }
.jah-btn--notice { background: #0b3d91; }
.jah-btn--site { background: #1a8f4c; }

.jah-disclaimer { font-size: 12px; line-height: 1.5; color: #666; margin: 0 0 20px; }

/* Related */
.jah-related { max-width: 820px; margin: 0 auto 10px; }
.jah-related__list { list-style: none; margin: 0; padding: 0; border: 1px solid #e5e5e5; border-top: 0; border-radius: 0 0 6px 6px; }
.jah-related__list li { border-bottom: 1px solid #eee; }
.jah-related__list li:last-child { border-bottom: 0; }
.jah-related__list a { display: block; padding: 8px 12px; font-size: 14px; color: #0b3d91; text-decoration: none; }
.jah-related__list a:hover { background: #f7f9fc; text-decoration: underline; }

@media (min-width: 700px) {
	.jah-job__title { font-size: 26px; }
	.jah-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.jah-actions { flex-direction: row; }
	.jah-btn { flex: 1; }
}

/* Telegram + WhatsApp box inside posts */
.jah-join-box { margin: 22px 0; padding: 16px 14px; text-align: center; background: #f2f8fd; border: 1px solid #cfe3f6; border-radius: 10px; }
.jah-join-box__title { margin: 0 0 4px; font-size: 18px; font-weight: 600; color: #0b3d91; }
.jah-join-box__text { margin: 0 0 12px; font-size: 14px; color: #555; }
.jah-join-box__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.jah-join-box__btn { flex: 1 1 140px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; }
.jah-join-box__btn svg { width: 20px; height: 20px; fill: #fff; flex: none; }
.jah-join-box__btn--tg { background: #1b8fc7; }
.jah-join-box__btn--wa { background: #128c4a; }
.jah-join-box__btn:hover { color: #fff; opacity: .92; }
.jah-join-box__btn:focus-visible { outline: 3px solid #0b3d91; outline-offset: 2px; }
