/* Yanaagi ATS public styles. Inherits the theme's fonts and colours; only structure is set here. */
.yats-public { max-width: 860px; margin: 0 auto; }
.yats-job { padding: 20px 0; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.yats-job:first-child { padding-top: 0; }
.yats-job-title { margin: 0 0 4px; }
.yats-job-title a { text-decoration: none; }
.yats-meta { margin: 0 0 10px; opacity: .75; font-size: .95em; }
.yats-btn, .yats-btn:visited { display: inline-block; padding: 12px 22px; border: 0; border-radius: 6px; background: var(--yats-accent, #1d2327); color: #fff; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 1rem; }
.yats-btn:hover, .yats-btn:focus { opacity: .9; color: #fff; }
.yats-form { display: flex; flex-direction: column; gap: 16px; padding: 24px; margin-top: 32px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; background: #fff; }
.yats-form h3 { margin: 0; }
.yats-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.yats-form input:not([type=checkbox]), .yats-form textarea, .yats-form select { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 6px; font: inherit; font-weight: 400; background: #fff; color: #1d2327; }
.yats-form input[type=file] { padding: 8px; }
.yats-form .yats-hint { font-weight: 400; opacity: .7; font-size: .9em; }
.yats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .yats-row { grid-template-columns: 1fr; } .yats-form { padding: 16px; } }
.yats-form .yats-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.yats-consent input { margin-top: 4px; }
.yats-form .yats-btn { align-self: flex-start; }
.yats-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.yats-success, .yats-error { padding: 16px 20px; border-radius: 8px; }
.yats-success { background: #e3f4e8; color: #0f5323; border: 1px solid #a8d8b6; }
.yats-error { background: #fbeaea; color: #8a1f1f; border: 1px solid #f0c2c2; }
.yats-none { opacity: .8; }
/* Rows layout ([yanaagi_jobs layout="rows"]): a careers table, one job per row. */
/* On Elementor sites the rows follow the site's global text style, like the text widgets around them. */
.yats-public.yats-job-rows { max-width: none; font-family: var(--e-global-typography-text-font-family, inherit), sans-serif; font-weight: var(--e-global-typography-text-font-weight, inherit); color: var(--e-global-color-text, inherit); }
.yats-public.yats-job-rows { display: flex; flex-direction: column; gap: 20px; }
/* Same spacing as an Elementor grid container: 10px padding, 20px gaps. */
.yats-job-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 10px; border-bottom: 1px solid #c5c5c5; text-align: center; }
.yats-job-row > div:not(.yats-jr-title) { align-self: center; }
.yats-jr-title p { font-size: 20px; }
.yats-jr-title a { text-decoration: none; }
@media (max-width: 767px) { .yats-job-row { grid-template-columns: minmax(0, 1fr); } }
/* Apply box ([yanaagi_apply_box]) for the right-hand column of a job page. */
.yats-apply-box { padding: 30px; border: 1px solid #c5c5c5; border-radius: 4px; background: #fff; font-family: var(--e-global-typography-text-font-family, inherit), sans-serif; color: var(--e-global-color-text, inherit); }
.yats-apply-box .yats-ab-title { margin: 0 0 16px; font-family: var(--e-global-typography-primary-font-family, inherit), sans-serif; font-size: 24px; font-weight: 600; line-height: 1.2; color: #000; }
.yats-ab-details { margin: 0 0 24px; }
.yats-ab-details dt { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #114BA0; }
.yats-ab-details dd { margin: 2px 0 14px; }
.yats-ab-details dd:last-child { margin-bottom: 0; }
.yats-apply-box .yats-ab-btn, .yats-apply-box .yats-ab-btn:visited { display: block; padding: 15px 20px; border-radius: 3px; background: #114BA0; color: #fff; text-align: center; text-decoration: none; font-size: 15px; font-weight: 500; }
.yats-apply-box .yats-ab-btn:hover, .yats-apply-box .yats-ab-btn:focus { background: #0d3a7c; color: #fff; }
/* Elementor container with the CSS class "yats-apply-col": stays in view while the job text scrolls. */
@media (min-width: 768px) { .yats-apply-col { position: sticky; top: 30px; align-self: flex-start; } }
/* Built-in form fields (Settings → Application form). Two half-width fields share a row. */
.yats-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.yats-field { grid-column: span 2; min-width: 0; }
.yats-field.yats-w-half { grid-column: span 1; }
.yats-form .yats-req { color: #c02b2b; }
.yats-form fieldset.yats-choices { margin: 0; padding: 0; border: 0; font-weight: 600; }
.yats-form fieldset.yats-choices legend { padding: 0; margin-bottom: 6px; }
.yats-choice-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 4px; }
.yats-form .yats-choice { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.yats-form .yats-choice input { width: auto; padding: 0; margin: 0; }
.yats-section h4 { margin: 8px 0 0; }
.yats-section .yats-hint { margin: 4px 0 0; }
@media (max-width: 640px) { .yats-field.yats-w-half { grid-column: span 2; } }
