/* Module "jobs": public careers pages. Prefix: ggc-hr-jobs-. Built on the theme tokens and its .ggc-jobs / .ggc-job list. */

/* ── /careers/: grouped list ── */
.ggc-hr-jobs-group { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; margin:36px 0 0; font-size:17px; letter-spacing:.06em; color:var(--text-1, #111620); }
.ggc-prose + .ggc-hr-jobs-group { margin-top:28px; }
.ggc-hr-jobs-count { font-size:13px; font-weight:400; letter-spacing:0; color:var(--text-3, #596171); }
.ggc-hr-jobs-list { margin-top:12px; }
.ggc-hr-jobs-item .ggc-job-title a { color:inherit; text-decoration:none; }
.ggc-hr-jobs-item .ggc-job-title a:hover { color:var(--accent-text, #00699F); text-decoration:underline; }
.ggc-hr-jobs-item p.ggc-job-where { margin:2px 0 8px; }
.ggc-hr-jobs-item p.ggc-hr-jobs-salary { margin:0 0 8px; font-weight:700; color:var(--text-1, #111620); }
.ggc-hr-jobs-item p.ggc-hr-jobs-links { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; margin:14px 0 0; }
.ggc-hr-jobs-btn { min-height:44px; padding:8px 20px; }
.ggc-hr-jobs-empty { margin:24px 0 0; }

.ggc-hr-jobs-general { margin-top:36px; padding:22px 24px; border:1px solid var(--accent-border, #BDE3F5); border-radius:var(--r, 6px); background:var(--accent-softer, #F0F8FD); }
.ggc-hr-jobs-general-title { font-size:18px; }
.ggc-hr-jobs-general p { margin:8px 0 0; }
.ggc-hr-jobs-general p.ggc-hr-jobs-general-action { margin-top:16px; }

/* ── /careers/{job}/ ── */
.ggc-hr-jobs-h { margin:40px 0 12px; font-size:20px; letter-spacing:.04em; }
.ggc-hr-jobs-cta { margin:24px 0 0; }
.ggc-hr-route-job .ggc-hr-facts dd { color:var(--text-1, #111620); }

/* ── /careers/apply/ and the thank-you page ── */
.ggc-hr-jobs-formnote { margin:0 0 24px; font-size:14px; color:var(--text-3, #596171); }
.ggc-hr-jobs-next { margin-bottom:24px; }
.ggc-hr-jobs-next strong { display:block; min-width:0; }
.ggc-hr-route-apply .ggc-hr-notice + .ggc-hr-jobs-h { margin-top:8px; }

/* short choices side by side, so the form stays short on a phone */
@media (min-width:360px) {
	#ggc-hr-form-apply [data-field="overtime_ok"] .ggc-hr-choices,
	#ggc-hr-form-apply [data-field="expected_pay_unit"] .ggc-hr-choices { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
#ggc-hr-form-apply [data-field="overtime_ok"] .ggc-hr-choices,
#ggc-hr-form-apply [data-field="expected_pay_unit"] .ggc-hr-choices { max-width:340px; }

/* the pay unit is asked only for 其他職務; this hides it without the script too (the script also disables it) */
#ggc-hr-form-apply:has(select[name="job"] option[value="other"]:not(:checked)) [data-field="expected_pay_unit"] { display:none; }

/* 專長與證照: a title, then 語言能力 / 電腦能力 / 專業證照 as a matrix: 4 columns on a wide screen, 2 on a phone, 1 on the narrowest */
#ggc-hr-form-apply .ggc-hr-skills-title .ggc-hr-label { margin-bottom:0; }
#ggc-hr-form-apply .ggc-hr-skills-title .ggc-hr-help { margin:4px 0 0; }
#ggc-hr-form-apply .ggc-hr-html:has(.ggc-hr-skills-title) { margin-bottom:-10px; }
#ggc-hr-form-apply :is([data-field="licences_lang"], [data-field="licences_it"], [data-field="licences"]) .ggc-hr-label { margin-bottom:8px; font-size:15px; color:var(--text-2, #3B4351); }
#ggc-hr-form-apply :is([data-field="licences_lang"], [data-field="licences_it"], [data-field="licences"]) .ggc-hr-choices { gap:6px; }
#ggc-hr-form-apply :is([data-field="licences_lang"], [data-field="licences_it"], [data-field="licences"]) .ggc-hr-choice { gap:8px; padding:8px 10px; font-size:15px; line-height:1.4; }
#ggc-hr-form-apply :is([data-field="licences_lang"], [data-field="licences_it"], [data-field="licences"]) .ggc-hr-choice input { width:18px; height:18px; margin-top:1px; }
#ggc-hr-form-apply :is([data-field="licences_lang"], [data-field="licences_it"], [data-field="licences"]) .ggc-hr-choice span { min-width:0; word-break:keep-all; overflow-wrap:anywhere; } /* "TOEIC 750 / 以上", not "TOEIC 750 以 / 上" */
@media (min-width:360px) {
	#ggc-hr-form-apply :is([data-field="licences_lang"], [data-field="licences_it"], [data-field="licences"]) .ggc-hr-choices { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (min-width:720px) {
	#ggc-hr-form-apply :is([data-field="licences_lang"], [data-field="licences_it"], [data-field="licences"]) .ggc-hr-choices { grid-template-columns:repeat(4, minmax(0, 1fr)); }
}

@media (max-width:479.98px) {
	.ggc-hr-jobs-general { padding:18px; }
	.ggc-hr-jobs-item p.ggc-hr-jobs-links { justify-content:space-between; }
	.ggc-hr-jobs-cta .ggc-btn { flex:1 1 100%; }
	.ggc-hr-jobs-general-action .ggc-btn { width:100%; }
}
