/* Careers: /careers/ and /careers/campus-ambassador/.
   Built on the deals page system (deals.css: df-page, df-heading, df-feature,
   df-card, df-brand-list, df-how) so a job reads in the same vocabulary as a
   deal: pastel panel, Space Grotesk figure, doodle, dashed tear line. Only the
   pieces deals.css has no equivalent for live here. */

.cr-page { padding-bottom: 0; }
.cr-page > .container > :last-child { margin-bottom: 96px; }
.cr-page section[id] { scroll-margin-top: 96px; }
.cr-page :is(a, button, summary):focus-visible { outline: 3px solid var(--site-accent-text); outline-offset: 4px; }

/* ---------- Shared: section rhythm ---------- */

.cr-section { margin-top: 72px; }
.cr-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cr-section-head > div { max-width: 62ch; }
.cr-section-head p { margin-top: 10px; color: var(--tud-color-text-secondary); font-size: 17px; line-height: 1.55; }

/* ---------- Hero ---------- */

.cr-crumbs { margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--tud-color-text-secondary); }
.cr-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cr-crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--tud-color-text-muted); }
.cr-crumbs a { display: inline-flex; min-height: 24px; align-items: center; color: inherit; }
.cr-crumbs a:hover { color: var(--tud-color-text-primary); }
.cr-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.cr-hero-actions .fine { max-width: 34ch; font-size: 14px; color: var(--tud-color-text-secondary); }

/* ---------- /careers/: the open role ----------
   The role is set as the deals page's featured card, a ticket with a tear
   line. Its figure is the one number the role can truthfully lead with. */

.cr-roles-count { color: var(--tud-color-text-secondary); font-size: 15px; font-weight: 600; }
.cr-role { margin-top: 0; }
.cr-role .df-feature-saving { margin-block: 24px 10px; }
.cr-role .df-saving-rest { text-transform: none; }
.cr-role .df-feature-title { max-width: 30ch; }
.cr-role .df-art .theme-art img { padding: 28px; }
.cr-elsewhere { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--tud-color-border-strong); color: var(--tud-color-text-secondary); font-size: 17px; }
.cr-elsewhere a { font-weight: 700; overflow-wrap: anywhere; }
.cr-about { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.cr-about li { padding-top: 18px; border-top: 2px solid var(--tud-color-border-strong); }
.cr-about strong { display: block; font-size: 18px; line-height: 1.3; }
.cr-about span { display: block; margin-top: 8px; max-width: 34ch; color: var(--tud-color-text-secondary); }

/* ---------- Campuses ---------- */

.cr-campus-pin { color: var(--site-accent-text); }
.cr-campus--next .cr-campus-pin { color: var(--tud-color-text-muted); }
.cr-campus--next .df-brand-name { color: var(--tud-color-text-secondary); }
.cr-campuses.df-brand-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; }
/* Campus ticker: two rows drifting in opposite directions. Without the script, or with
   reduced motion, the rows stay a plain grid. */
.cr-ticker-copy { display: none; }
.is-ticker .cr-campus-window { overflow: hidden; padding-block: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.is-ticker .cr-campus-track { display: flex; width: max-content; animation: cr-campus-scroll var(--cr-ticker-duration, 110s) linear infinite; }
.is-ticker .cr-campus-track--reverse { animation-direction: reverse; }
.is-ticker .cr-campuses.df-brand-list { display: flex; flex: none; gap: 20px; padding-right: 20px; }
.is-ticker .cr-campuses > li { width: 210px; flex: none; }
.is-ticker .cr-ticker-copy { display: flex; }
.is-ticker-paused .cr-campus-track, .is-ticker .cr-campus-window:hover .cr-campus-track { animation-play-state: paused; }
@keyframes cr-campus-scroll { to { transform: translateX(-50%); } }
.cr-campus-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 20px; }
.cr-campus-other { font-weight: 600; color: var(--site-accent-text); text-underline-offset: 4px; }
.cr-ticker-toggle { min-height: 44px; padding: 8px 0; color: var(--tud-color-text-secondary); background: transparent; border: 0; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .cr-campus-track { animation: none !important; } .cr-ticker-copy { display: none !important; } }
.cr-campuses .df-brand { min-height: 80px; padding-block: 14px; }
.cr-campuses .df-brand-name { font-size: 16px; }
.cr-campuses .df-brand-category { margin-top: 4px; }
/* University marks are drawn for white paper, so their tile stays white in dark mode too. */
.cr-campus-logo, .cr-campus-logo img { background: #fff; }
.cr-campus-logo img { padding: 2px; }
@media (max-width: 1100px) { .cr-campuses.df-brand-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- What you do ----------
   The deals grid, not linked: a duty is not a destination, so the hover
   outline a deal card earns is switched off. */

.cr-pitch { max-width: 62ch; margin-bottom: 28px; padding: 18px 20px; border-radius: 12px; background: var(--tud-color-accent-tint); color: var(--tud-color-text-primary); font-size: 17px; line-height: 1.55; }
.cr-duties .df-card:hover .df-card-visual { outline: none; }
.cr-duties .df-saving-rest { text-transform: none; }
.cr-duties .df-card-title { margin-top: 0; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.cr-duties .df-card-body > p:not(.df-card-title) { margin-top: 10px; color: var(--tud-color-text-secondary); font-size: 16px; line-height: 1.6; }

/* ---------- What you get ---------- */

.cr-get { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }

/* The pay ticket: the homepage feature card's notched tear line, on yellow.
   The notches hang off the tear line itself, so they stay on it however the
   copy above wraps. */
.cr-pay { display: flex; flex-direction: column; min-height: 100%; padding: 32px 32px 0; border-radius: 16px; color: var(--tud-color-text-primary); }
.cr-pay h3 { font-size: 23px; line-height: 1.2; }
.cr-pay-line { margin-top: 18px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; max-width: 18ch; }
.cr-pay-cap { margin-top: 16px; max-width: 40ch; font-size: 16px; line-height: 1.55; }
.cr-pay-foot { position: relative; display: flex; align-items: center; gap: 12px; margin-top: auto; padding-block: 20px; border-top: 1.5px dashed currentColor; font-size: 15px; font-weight: 700; }
.cr-pay-foot::before, .cr-pay-foot::after { content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--tud-color-bg-canvas); }
.cr-pay-foot::before { left: -41px; }
.cr-pay-foot::after { right: -41px; }
.cr-pay-body { padding-bottom: 32px; }

.cr-kit h3 { font-size: 23px; line-height: 1.2; }
.cr-kit > p { margin-top: 8px; color: var(--tud-color-text-secondary); }
.cr-kit-list { margin: 20px 0 0; border-top: 1px solid var(--tud-color-border-strong); }
.cr-kit-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding-block: 16px; border-bottom: 1px solid var(--tud-color-border-strong); }
.cr-kit-row svg { width: 44px; height: 44px; padding: 10px; border-radius: 10px; color: var(--tud-color-text-primary); background: var(--tud-color-deal-panel-5); }
.cr-kit-row:nth-child(2) svg { background: var(--tud-color-deal-panel-3); }
.cr-kit-row:nth-child(3) svg { background: var(--tud-color-deal-panel-2); }
.cr-kit-row:nth-child(4) svg { background: var(--tud-color-deal-panel-1); }
.cr-kit-row dt { font-weight: 700; line-height: 1.35; }
.cr-kit-row dd { margin: 4px 0 0; color: var(--tud-color-text-secondary); font-size: 15px; line-height: 1.5; }

/* ---------- Who we're looking for ---------- */

.cr-fit { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; padding-block: 40px; border-block: 1px solid var(--tud-color-border-strong); }
.cr-fit-art { display: block; width: 210px; height: 210px; margin: 36px auto 0; }
.cr-fit .partners-benefits { margin-top: 0; }
.cr-fit .partners-benefits li { font-size: 17px; line-height: 1.55; }

/* ---------- Apply ---------- */

.cr-apply { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px 64px; align-items: start; }
.cr-apply-copy { position: sticky; top: 24px; }
.cr-apply-copy > p { margin-top: 12px; max-width: 44ch; color: var(--tud-color-text-secondary); font-size: 17px; }
.cr-next { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: cr-next; }
.cr-next li { position: relative; padding: 0 0 18px 44px; counter-increment: cr-next; }
.cr-next li::before { content: counter(cr-next); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tud-color-accent-tint); color: var(--site-accent-text); font-family: var(--tud-font-secondary); font-size: 14px; font-weight: 700; }
.cr-next li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 32px; bottom: 4px; border-left: 1.5px dashed var(--tud-color-border-strong); }
.cr-next strong { display: block; line-height: 1.4; }
.cr-next span { display: block; margin-top: 2px; color: var(--tud-color-text-secondary); font-size: 15px; }
.cr-apply-art { display: block; width: 260px; height: 260px; margin: 48px auto 0; }

.cr-form-card { min-width: 0; padding: clamp(22px, 4vw, 36px); scroll-margin-top: 88px; }
.cr-form-card .form-stack { gap: 20px; }
.cr-form-card h2 { font-size: 26px; line-height: 1.15; }
.cr-form-card .form-intro { margin: 6px 0 24px; color: var(--tud-color-text-secondary); font-size: 15px; }
.cr-counter { justify-self: end; margin-top: -2px; color: var(--tud-color-text-muted); font-family: var(--tud-font-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.cr-counter.is-near { color: var(--site-accent-text); font-weight: 700; }
.field-error { color: var(--tud-color-status-error-text); font-size: 14px; font-weight: 700; line-height: 1.4; }
.field-error:empty { display: none; }
.cr-form-card [aria-invalid="true"] { border-color: var(--tud-color-status-error-text); }

.cr-consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; background: var(--tud-color-bg-sunken); font-size: 15px; line-height: 1.5; color: var(--tud-color-text-secondary); }
.cr-consent input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--tud-color-accent-base); cursor: pointer; }
.cr-consent a { font-weight: 700; }
.cr-consent:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1.5px var(--tud-color-status-error-text); background: var(--tud-color-status-error-bg); }

/* A field people never see and screen readers never reach. Off-canvas rather
   than display:none, which some form bots read as a sign to skip it. */
.cr-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cr-form-card .partners-success { padding-block: 40px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cr-get, .cr-fit, .cr-apply { grid-template-columns: 1fr; }
  .cr-apply-copy { position: static; }
  .cr-page .cr-apply-art, .cr-page .cr-fit-art { display: none; }
  .cr-about { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  .cr-section { margin-top: 52px; }
  .cr-section-head { align-items: flex-start; }
  .cr-section-head p { font-size: 16px; }
  .cr-crumbs { padding-right: 72px; }
  .cr-hero-actions { margin-top: 22px; }
  .cr-hero-actions .btn { width: 100%; }
  .cr-pitch { font-size: 16px; }
  .cr-pay { padding: 24px 22px 0; }
  .cr-pay-foot::before { left: -31px; }
  .cr-pay-foot::after { right: -31px; }
  .cr-campuses.df-brand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .cr-role .df-feature-saving .df-saving-rest { font-size: 21px; }
  .cr-fit { padding-block: 32px; }
  .cr-page > .container > :last-child { margin-bottom: 56px; }
  .cr-form-card .field-row { grid-template-columns: 1fr; }
  .cr-role .df-feature-saving .df-saving-number { font-size: 76px; }
  .cr-elsewhere { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cr-page * { scroll-behavior: auto !important; }
}

/* ---------- /careers/: the list, drawn from the API ----------
   Every open role is the same ticket; the gap keeps two of them from reading
   as one long card. */

.cr-roles { display: grid; gap: 24px; }
.cr-role .df-saving-label { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; }
.cr-none { border-block: 1px solid var(--tud-color-border-strong); }

/* ---------- A role's own page: /careers/<slug>/ ----------
   Server-rendered by functions/careers/[slug].js from assets/careers-view.js.
   The hero carries the facts and the one action; the body reads like the
   ambassador page's prose, at a reading measure. */

.cr-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 26px 0 0; }
.cr-facts div { min-width: 0; }
.cr-facts dt { color: var(--tud-color-text-secondary); font-size: 14px; font-weight: 600; }
.cr-facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }

.cr-apply-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.cr-apply-box .fine { max-width: 44ch; font-size: 14px; color: var(--tud-color-text-secondary); overflow-wrap: anywhere; }

.cr-closed { display: grid; justify-items: start; gap: 8px; max-width: 52ch; margin-top: 28px; padding: 20px 22px; border: 1.5px dashed var(--tud-color-border-strong); border-radius: 12px; }
.cr-closed p { margin: 0; color: var(--tud-color-text-secondary); font-size: 16px; }
.cr-closed .cr-closed-title { color: var(--tud-color-text-primary); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.cr-closed .btn { margin-top: 8px; }
.cr-post-page.is-closed .df-heading-art { opacity: .55; filter: grayscale(1); }

.cr-post { max-width: 68ch; }
.cr-post > .df-section-title { margin-bottom: 20px; }
.cr-post-body { font-size: 17px; line-height: 1.65; }
.cr-post-body > * + * { margin-top: 16px; }
.cr-post-body h2 { margin-top: 40px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.cr-post-body h2 + * { margin-top: 12px; }
.cr-post-body ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tud-color-border-strong); }
.cr-post-body li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--tud-color-border-strong); }
.cr-post-body li::before { content: ''; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--tud-color-accent-base); }
.cr-post-foot { padding-top: 32px; border-top: 1.5px dashed var(--tud-color-border-strong); }
.cr-post-foot .cr-apply-box { margin-top: 0; }
.cr-post-page .cr-elsewhere { margin-top: 56px; }

@media (max-width: 600px) {
  .cr-facts { gap: 10px 24px; margin-top: 20px; }
  .cr-facts dd { font-size: 16px; }
  .cr-post-body { font-size: 16px; }
}
