/* =================================================================
   Ashby consent-paragraph styling — ALL POSTINGS (combined)
   ----------------------------------------------------------------
   Ashby applies one custom-CSS file org-wide, so this single file
   styles the long GDPR consent paragraph on every posting we list
   below. Behaviour is identical to ashby-consent-v2.css: truncate to
   ~5 lines with a gradient + "Click to see full paragraph ▾" cue,
   pointer-hand cursor to invite the click, expand on :active, and
   stay open once the "I agree" checkbox is :checked.

   Consent fields targeted (label `for` uses the field PATH; the
   field-id is listed too, belt-and-suspenders, where recorded):

     Junior Frontend Engineer
       Posting ID: a65bff8d-af75-4622-b884-90fb52ecae39
         path     b20267bf-3620-4c37-a1e5-970390d14390
         field-id b14c39a7-50fe-42bc-a7fc-b6446d480574

     Passbolt Backend Engineer
       Posting ID: 8b16df37-705b-41f9-8de8-0d504c0a1c6f
         path     c65d8c7e-fa99-47ac-8265-9b2149652b4b
         field-id 8082de6a-48fc-48b6-93c1-203dd6e72055

     Revenue Operations Engineer
       Posting ID: 84300b46-6a05-45d6-b91a-eef678d6ee72
         path     57ec1c2d-da16-4245-b96b-14489e60b36e

     Template
         path     27870883-d29e-4010-a5f6-9040be53456b

   TO ADD A POSTING: append its consent field UUID (the label `for`
   value) to every selector list below — blocks 1–4 take it in their
   comma-separated `for=` list; blocks 5–6 need a new `:focus` /
   `:focus-within` / `::after` arm per UUID (follow the existing
   pattern).

   ---- Cursor model (from ashby-consent-v2.css) -------------------
   The label cursor is pointer, so the collapsed paragraph (and every
   child Ashby wraps the text in, since cursor inherits) shows the
   pointer/hand prompting the visitor to click. The cursor flips to
   default in the states that have a real CSS hook: while the
   paragraph is being clicked (:active), once focus lands inside the
   container after the click (:focus / :focus-within), and once the
   "I agree" checkbox is :checked (the permanent required end state).
   This focus latch relies on the paragraph click moving focus onto
   the consent control inside its container — Ashby's normal
   label/for behaviour — but it is not verifiable from the stylesheet
   alone, so confirm on the live posting. If a posting's DOM does not
   move focus on the paragraph click, the cursor falls back to
   pointer on release and only corrects on :checked.
   ================================================================= */

/* ---- 1. Truncation + cursor on the consent paragraph ------------ */

label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"],
label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"],
label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"],
label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"],
label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"],
label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"] {
  box-sizing: border-box !important;
  display: block !important;
  position: relative !important;
  max-height: calc(1.55em * 5) !important;
  overflow: hidden !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  color: #3a3a3a !important;
  text-transform: none !important;
  transition: max-height 0.5s ease 9999s !important;
}

/* ---- 2. Gradient + "Click to see full paragraph" cue ------------ */

label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"]::after,
label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"]::after,
label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"]::after,
label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"]::after,
label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"]::after,
label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"]::after {
  content: "Click to see full paragraph ▾";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 0 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 55%, #ffffff 100%);
  color: #2B4EF4;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease 9999s, visibility 0s linear 9999s !important;
}

/* ---- 3. :active latch on the paragraph label -------------------- */

label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"]:active,
label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"]:active,
label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"]:active,
label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"]:active,
label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"]:active,
label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"]:active {
  max-height: 500em !important;
  cursor: default !important;
  transition: max-height 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0s !important;
}

/* ---- 4. Cursor latches to default once the paragraph is opened --
   :active only covers the cursor during the click. These rules keep
   the cursor default AFTER mouse-release: clicking the paragraph
   focuses the consent control inside its container, so the container
   matches :focus-within and the label stays default. The label:focus
   arm covers the case where the label itself takes focus. Changes
   only `cursor`, never layout, so it cannot shift the checkbox
   mid-click and suppress the toggle. */

label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"]:focus,
*:has(> label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"]):focus-within
  > label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"],
label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"]:focus,
*:has(> label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"]):focus-within
  > label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"],
label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"]:focus,
*:has(> label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"]):focus-within
  > label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"],
label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"]:focus,
*:has(> label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"]):focus-within
  > label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"],
label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"]:focus,
*:has(> label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"]):focus-within
  > label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"],
label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"]:focus,
*:has(> label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"]):focus-within
  > label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"] {
  cursor: default !important;
}

/* ---- 5. Sticky after "I agree" is checked ----------------------- */

fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"],
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"],
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"],
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"],
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"],
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"] {
  max-height: 150em !important;
  cursor: default !important;
  transition: max-height 1.75s cubic-bezier(0.4, 0, 0.6, 1) !important;
}

/* ---- 6. Cue fades out in any expanded state --------------------- */

label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"]:active::after,
*:has(> label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"]):focus-within
  > label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"]::after,
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="b20267bf-3620-4c37-a1e5-970390d14390"]::after,

label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"]:active::after,
*:has(> label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"]):focus-within
  > label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"]::after,
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="b14c39a7-50fe-42bc-a7fc-b6446d480574"]::after,

label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"]:active::after,
*:has(> label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"]):focus-within
  > label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"]::after,
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="c65d8c7e-fa99-47ac-8265-9b2149652b4b"]::after,

label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"]:active::after,
*:has(> label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"]):focus-within
  > label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"]::after,
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="8082de6a-48fc-48b6-93c1-203dd6e72055"]::after,

label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"]:active::after,
*:has(> label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"]):focus-within
  > label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"]::after,
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="57ec1c2d-da16-4245-b96b-14489e60b36e"]::after,

label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"]:active::after,
*:has(> label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"]):focus-within
  > label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"]::after,
fieldset:has(input[type="checkbox"]:checked)
  > label.ashby-application-form-question-title[for="27870883-d29e-4010-a5f6-9040be53456b"]::after {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0s linear 0s, visibility 0s linear 0s !important;
}
