/* Gameplay captures on the five job cards. Scoped to #jobs: arches, borders,
   selected states and breakpoints stay with the stylesheets that own them. */
#jobs .job-portrait { background-image: none; overflow: hidden; }
#jobs .job-portrait > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
/* The arch is narrower than the capture, so each card keeps its subject in view. */
#jobs .portrait-farmer > img { object-position: 30% 50%; }
#jobs .portrait-technician > img { object-position: 25% 50%; }
#jobs .portrait-wanderer > img { object-position: 58% 50%; }

#jobs .job-photo.job-capture { display: block; width: 100%; max-width: 470px; aspect-ratio: auto; justify-self: center; align-self: center; }
#jobs .job-photo.job-capture > img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; }

/* A card with two scenes: native radios pick which one fills the same frame.
   The picture that is not chosen is removed from layout, so the frame never changes size. */
#jobs .job-scenes { width: 100%; max-width: 470px; min-width: 0; justify-self: center; align-self: center; }
#jobs .job-scene-set { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
#jobs .job-scene-set > legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Kept focusable for the keyboard; the labels below are what is seen and clicked. */
#jobs .job-scene-input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
#jobs .job-scenes .job-photo.job-capture > img { display: none; }
#jobs .job-scene-input:nth-of-type(1):checked ~ .job-photo.job-capture > img:nth-of-type(1),
#jobs .job-scene-input:nth-of-type(2):checked ~ .job-photo.job-capture > img:nth-of-type(2) { display: block; }
#jobs .job-scene-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
#jobs .job-scene-options > label { display: flex; align-items: center; justify-content: center; gap: .5em; min-width: 0; min-height: 44px; padding: 4px 12px; box-sizing: border-box; border: 1px solid #a5b68c; border-radius: 12px; background: #fff8e8; color: #2b4231; font-size: 1rem; font-weight: 600; line-height: 1.2; cursor: pointer; }
#jobs .job-scene-options > label::before { content: ""; flex: none; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid currentColor; border-radius: 50%; }
#jobs .job-scene-options > label:hover { border-color: #3c5b30; }
/* Chosen: filled mark, heavier text and a ring, so it does not rest on colour alone. */
#jobs .job-scene-input:nth-of-type(1):checked ~ .job-scene-options > label:nth-of-type(1),
#jobs .job-scene-input:nth-of-type(2):checked ~ .job-scene-options > label:nth-of-type(2) { border-color: #35592e; box-shadow: 0 0 0 2px #35592e; background: #f3d999; color: #35492f; font-weight: 800; }
#jobs .job-scene-input:nth-of-type(1):checked ~ .job-scene-options > label:nth-of-type(1)::before,
#jobs .job-scene-input:nth-of-type(2):checked ~ .job-scene-options > label:nth-of-type(2)::before { border-width: 6px; }
#jobs .job-scene-input:nth-of-type(1):focus-visible ~ .job-scene-options > label:nth-of-type(1),
#jobs .job-scene-input:nth-of-type(2):focus-visible ~ .job-scene-options > label:nth-of-type(2) { outline: 3px solid #254d3c; outline-offset: 3px; }
@media (max-width:600px) {
  #jobs .job-photo.job-capture { max-width: 100%; }
  #jobs .job-scenes { max-width: 100%; }
}
