/* Collision Repair 1 Stop Careers: position list and application form.
   Builds on the theme's tokens (--stop, --ink, --tape, --line, fonts). */

.page-main .entry > p.careers-lead { font-size: 21px; line-height: 1.5; color: var(--ink-2, #30363B); }

/* Group headings in the position list */
.page-main .entry .cr1stop-careers h3 { font-family: var(--font-display, sans-serif); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted, #4A5157); margin: 36px 0 10px; }

/* Each position is a card that opens to show duties */
.cr1stop-careers details.careers-position { background: var(--white, #fff); border: 1px solid var(--line, #CDD1D4); border-left: 5px solid var(--stop, #C8102E); border-radius: 8px; margin: 10px 0; transition: box-shadow .15s ease; }
.cr1stop-careers details.careers-position:hover { box-shadow: 0 6px 18px rgba(22, 25, 29, .08); }
.cr1stop-careers details.careers-position > summary { list-style: none; cursor: pointer; position: relative; padding: 18px 56px 18px 20px; font-family: var(--font-display, sans-serif); font-weight: 700; font-size: 23px; line-height: 1.15; text-transform: uppercase; color: var(--ink, #16191D); }
.cr1stop-careers details.careers-position > summary::-webkit-details-marker { display: none; }
.cr1stop-careers details.careers-position > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--stop, #C8102E); border-bottom: 3px solid var(--stop, #C8102E); transform: translateY(-70%) rotate(45deg); transition: transform .15s ease; }
.cr1stop-careers details.careers-position[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.cr1stop-careers details.careers-position > summary:focus-visible { outline: 3px solid var(--gold, #C9A227); outline-offset: 2px; border-radius: 6px; }
.cr1stop-careers details.careers-position[open] > summary { border-bottom: 1px solid var(--line, #CDD1D4); }
.cr1stop-careers details.careers-position > :not(summary) { margin-left: 20px; margin-right: 20px; }
.cr1stop-careers details.careers-position > :last-child { margin-bottom: 20px; }
.cr1stop-careers .careers-type { display: inline-block; margin-top: 16px; padding: 4px 10px; background: var(--tape, #F2C230); color: var(--ink, #16191D); font-family: var(--font-mono, monospace); font-size: 13px; transform: rotate(-1deg); }
.cr1stop-careers details h4 { font-family: var(--font-body, sans-serif); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #4A5157); margin: 20px 20px 4px; }
.cr1stop-careers .careers-apply-link a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border-radius: 6px; background: var(--stop, #C8102E); color: #fff !important; font-weight: 600; text-decoration: none; }
.cr1stop-careers .careers-apply-link a:hover { background: var(--stop-dark, #A10D25); }

/* Application form */
.cr1stop-careers-form .cr1stop-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cr1stop-careers-form > label, .cr1stop-careers-form fieldset > label { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.cr1stop-careers-form .careers-checks { margin: 14px 0; }
.cr1stop-careers-form .careers-checks-label { font-weight: 600; margin: 0 0 6px; }
.cr1stop-careers-form .careers-check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; font-weight: 400; cursor: pointer; }
.cr1stop-careers-form .careers-check { flex-direction: row !important; font-size: 16px; line-height: 1.45; }
.cr1stop-careers-form .careers-check input,
.cr1stop-careers-form .careers-ack input { width: 20px !important; min-width: 20px; height: 20px; min-height: 0 !important; padding: 0 !important; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--stop, #C8102E); }
.cr1stop-careers-form .careers-field-note { font-size: 14px; color: var(--muted, #4A5157); margin: 6px 0 12px; }
.cr1stop-careers-form .careers-test { border-color: var(--stop, #C8102E); background: #FFF; }
.cr1stop-careers-form .careers-question { padding: 14px 0; border-top: 1px solid var(--line, #CDD1D4); }
.cr1stop-careers-form .careers-question-text { font-weight: 600; margin: 0 0 6px; }
.cr1stop-careers-form .careers-ack { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 24px 0; font-weight: 400; }
.cr1stop-careers-form .careers-ack input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; }
.cr1stop-careers-form button[type="submit"] { margin-top: 4px; }
.cr1stop-careers-notice { padding: 16px 20px; border-radius: 8px; margin: 16px 0 24px; font-weight: 600; }
.cr1stop-careers-notice.is-ok { background: #E7F4EA; border-left: 5px solid #2E7D32; color: #1B4D20; }
.cr1stop-careers-notice.is-error { background: #FDECEC; border-left: 5px solid var(--stop, #C8102E); color: #7E0A1D; }

@media (max-width: 700px) {
  .cr1stop-careers details.careers-position > summary { font-size: 20px; padding: 16px 48px 16px 16px; }
  .cr1stop-careers details.careers-position > :not(summary) { margin-left: 16px; margin-right: 16px; }
  .cr1stop-careers details h4 { margin-left: 16px; margin-right: 16px; }
}
