/* RR Recruitment — careers list, role page, apply form.
   Uses the site's Breakdance palette: dark #1D1D1D, orange #F5634A, grey #F7F7F7. */
.rr-rec {
  --rr-ink: var(--bde-palette-color-6, #1d1d1d);
  --rr-muted: #5c5c5c;
  --rr-line: #e3e1dd;
  --rr-soft: var(--bde-palette-color-2, #f7f7f7);
  --rr-accent: var(--bde-palette-color-3, #f5634a);
  --rr-accent-ink: #c8432c;
  --rr-radius: 6px;
  color: var(--rr-ink);
  font-size: 17px;
  line-height: 1.6;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  font-variant-numeric: tabular-nums;
}
.rr-rec *, .rr-rec *::before, .rr-rec *::after { box-sizing: border-box; }
.rr-ico { width: 18px; height: 18px; flex: none; }

.rr-h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 18px; color: var(--rr-ink); }
.rr-h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 10px; color: var(--rr-ink); }
.rr-eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--rr-accent-ink); margin: 0 0 12px; }
.rr-muted { color: var(--rr-muted); margin: 0 0 24px; }

.rr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--rr-radius);
  background: var(--rr-accent); color: #fff !important; font-weight: 600; font-size: 16px;
  text-decoration: none !important; border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.rr-btn:hover { background: var(--rr-accent-ink); }
.rr-btn:active { transform: translateY(1px); }
.rr-btn:focus-visible, .rr-rec a:focus-visible, .rr-rec input:focus-visible, .rr-rec select:focus-visible, .rr-rec textarea:focus-visible, .rr-general summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rr-accent) 45%, transparent); outline-offset: 2px;
}
.rr-btn-ghost { background: transparent; color: var(--rr-ink) !important; border: 1.5px solid var(--rr-ink); }
.rr-btn-ghost:hover { background: var(--rr-ink); color: #fff !important; }

/* ── List ─────────────────────────────────────────────────────────────── */
.rr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--rr-ink); }
.rr-count { font-size: 15px; color: var(--rr-muted); white-space: nowrap; }
.rr-list { margin: 0 0 56px; }
.rr-card {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--rr-line);
}
.rr-card-title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.rr-card-title a { color: inherit !important; text-decoration: none !important; background: linear-gradient(var(--rr-accent), var(--rr-accent)) 0 100% / 0 2px no-repeat; transition: background-size .25s ease; }
.rr-card:hover .rr-card-title a { background-size: 100% 2px; }
.rr-card-summary { margin: 12px 0 0; color: var(--rr-muted); max-width: 68ch; }

.rr-chips { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.rr-chips li { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: var(--rr-muted); margin: 0; }
.rr-chips .rr-ico { color: var(--rr-accent); width: 17px; height: 17px; }

/* "Don't see your role?" */
.rr-general { background: var(--rr-soft); border-radius: var(--rr-radius); padding: 0; }
.rr-general > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px;
}
.rr-general > summary::-webkit-details-marker { display: none; }
.rr-general > summary > span:first-child { max-width: 62ch; color: var(--rr-muted); }
.rr-general > summary strong { display: block; color: var(--rr-ink); font-size: 20px; margin-bottom: 4px; }
.rr-general[open] > summary .rr-btn { display: none; }
.rr-general > .rr-form { padding: 0 32px 32px; }
.rr-empty { padding: 8px 0 24px; max-width: 70ch; }
.rr-empty p { color: var(--rr-muted); }

/* ── Role page ────────────────────────────────────────────────────────── */
.rr-role { padding: 8px 0 24px; }
.rr-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--rr-muted) !important; text-decoration: none !important; font-size: 15px; margin-bottom: 8px; }
.rr-back:hover { color: var(--rr-ink) !important; }
.rr-role-head { padding-bottom: 36px; border-bottom: 2px solid var(--rr-ink); margin-bottom: 40px; }
.rr-role-head .rr-chips { margin-bottom: 28px; }
.rr-role-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; margin-bottom: 64px; }
.rr-role-body:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.rr-prose > :first-child { margin-top: 0; }
.rr-prose p, .rr-prose li { color: #333; }
.rr-prose h2, .rr-prose h3 { margin: 1.6em 0 .5em; line-height: 1.25; }
.rr-role-side { display: grid; gap: 16px; position: sticky; top: 110px; }
.rr-panel { border: 1px solid var(--rr-line); border-radius: var(--rr-radius); padding: 24px; }
.rr-panel:first-child { background: var(--rr-ink); border-color: var(--rr-ink); color: #fff; }
.rr-panel:first-child h3 { color: #fff; }
.rr-panel:first-child .rr-ticks li { color: rgba(255,255,255,.88); }
.rr-panel h3 { font-size: 18px; margin: 0 0 14px; font-weight: 700; }
.rr-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rr-ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.5; margin: 0; }
.rr-ticks .rr-ico { color: var(--rr-accent); margin-top: 3px; }
.rr-apply { background: var(--rr-soft); border-radius: var(--rr-radius); padding: 48px; }

/* ── Form ─────────────────────────────────────────────────────────────── */
.rr-form { display: grid; gap: 8px; }
.rr-form fieldset { border: 0; border-top: 1px solid var(--rr-line); margin: 0; padding: 24px 0 8px; min-width: 0; }
.rr-form fieldset:first-of-type { border-top: 0; padding-top: 8px; }
.rr-form legend { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--rr-muted); padding: 0; margin-bottom: 16px; float: left; width: 100%; }
.rr-form legend + * { clear: both; }
.rr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.rr-field { margin-bottom: 18px; min-width: 0; }
.rr-split { display: grid; grid-template-columns: 2fr 3fr; gap: 12px; }
.rr-form label, .rr-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--rr-ink); }
.rr-form label span, .rr-req { color: var(--rr-accent-ink); }
.rr-form .rr-opt { color: var(--rr-muted); font-weight: 400; }
.rr-form input[type=text], .rr-form input[type=tel], .rr-form input[type=email], .rr-form input[type=number], .rr-form select, .rr-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--rr-ink);
  background: #fff; border: 1.5px solid #cfccc6; border-radius: var(--rr-radius); box-shadow: none; margin: 0;
  transition: border-color .15s ease;
}
.rr-form select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.rr-form textarea { min-height: 120px; resize: vertical; }
.rr-form input:hover, .rr-form select:hover, .rr-form textarea:hover { border-color: #a9a59e; }
.rr-form input:focus, .rr-form select:focus, .rr-form textarea:focus { border-color: var(--rr-ink); outline: none; }
.rr-form [aria-invalid=true] { border-color: #c0392b !important; }
.rr-field-error { color: #b42318; font-size: 14px; margin-top: 6px; }

.rr-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-checks .rr-check { margin: 0; }
.rr-checks .rr-check input { position: absolute; opacity: 0; pointer-events: none; }
.rr-checks .rr-check span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #cfccc6; background: #fff; font-weight: 500; font-size: 15px; color: var(--rr-ink); cursor: pointer;
}
.rr-checks .rr-check input:checked + span { background: var(--rr-ink); border-color: var(--rr-ink); color: #fff; }
.rr-checks .rr-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--rr-accent) 45%, transparent); outline-offset: 2px; }

.rr-seg { display: inline-flex; border: 1.5px solid #cfccc6; border-radius: var(--rr-radius); overflow: hidden; background: #fff; }
.rr-seg label { margin: 0; }
.rr-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rr-seg span { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; min-width: 84px; padding: 0 18px; font-weight: 500; color: var(--rr-ink) !important; cursor: pointer; }
.rr-seg label + label span { border-left: 1.5px solid #cfccc6; }
.rr-seg input:checked + span { background: var(--rr-ink); color: #fff !important; }
.rr-seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--rr-accent) 45%, transparent); outline-offset: -3px; }

.rr-file { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 64px; padding: 12px 16px; border: 1.5px dashed #b9b5ae; border-radius: var(--rr-radius); background: #fff; cursor: pointer; font-weight: 400 !important; }
.rr-file:hover { border-color: var(--rr-ink); }
.rr-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rr-file-text { font-weight: 600; color: var(--rr-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
.rr-file-hint { color: var(--rr-muted) !important; font-size: 14px; }
.rr-file.has-file .rr-file-text { text-decoration: none; }
.rr-file:focus-within { outline: 3px solid color-mix(in srgb, var(--rr-accent) 45%, transparent); outline-offset: 2px; }

.rr-consent { display: grid; gap: 12px; padding: 20px 0 8px; border-top: 1px solid var(--rr-line); }
.rr-consent .rr-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 0; cursor: pointer; }
.rr-consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--rr-ink); }
.rr-consent a { color: var(--rr-ink); text-decoration: underline; }
.rr-submit { justify-self: start; margin-top: 12px; min-width: 240px; font-size: 17px; min-height: 54px; }
.rr-submit[disabled] { opacity: .6; cursor: progress; }

.rr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rr-alert { background: #fdecea; color: #8a1c12; border-left: 4px solid #c0392b; padding: 14px 16px; border-radius: 4px; margin-bottom: 8px; }
.rr-thanks { display: flex; gap: 14px; align-items: flex-start; background: #edf7ee; border-left: 4px solid #2e7d32; padding: 18px 20px; border-radius: 4px; margin: 0 0 32px; }
.rr-thanks .rr-ico { color: #2e7d32; width: 24px; height: 24px; margin-top: 2px; }
.rr-thanks strong { font-size: 18px; }
.rr-thanks p { margin: 2px 0 0; }

/* ── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rr-role-body { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rr-role-side { position: static; }
}
@media (max-width: 680px) {
  .rr-rec { font-size: 16px; }
  .rr-card { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .rr-card .rr-btn { width: 100%; }
  .rr-row { grid-template-columns: 1fr; }
  .rr-row > .rr-field:empty { display: none; }
  .rr-general > summary { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .rr-general > summary .rr-btn { width: 100%; }
  .rr-general > .rr-form { padding: 0 20px 24px; }
  .rr-apply { padding: 28px 20px; margin: 0 -4px; }
  .rr-submit { width: 100%; }
  .rr-seg { display: flex; }
  .rr-seg label { flex: 1; }
  .rr-seg span { width: 100%; }
}
