/* Madrigal Workday careers listing — matched to wd501 CX jobs UI */
:root {
  --wd-navy: #00014d;
  --wd-navy-mid: #000477;
  --wd-link: #0875e1;
  --wd-text: #333333;
  --wd-muted: #5f5f5f;
  --wd-border: #d9d9d9;
  --wd-bg: #ededed;
  --wd-white: #ffffff;
  --wd-banner-bg: #001941;
  --wd-search-btn: #00014d;
  --wd-orange: #ff6c00;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--wd-bg);
  color: var(--wd-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wd-skip {
  position: absolute;
  left: -9999px;
}

.wd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ----- Header ----- */
.wd-header {
  background: var(--wd-white);
  border-bottom: 1px solid var(--wd-border);
}

.wd-header-top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.wd-brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.wd-logo-link img {
  height: 32px;
  width: auto;
  display: block;
}

.wd-brand-row h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--wd-navy);
  line-height: 1.2;
}

.wd-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.wd-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c4c4c4;
  background: var(--wd-white);
  color: var(--wd-text);
  border-radius: 999px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.wd-chip img {
  display: block;
  opacity: 0.85;
}

.wd-subnav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
}

.wd-subnav button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font: inherit;
  font-size: 15px;
  color: var(--wd-muted);
  cursor: pointer;
}

.wd-subnav button.is-active {
  color: var(--wd-link);
  font-weight: 500;
}

.wd-subnav button:hover {
  color: var(--wd-link);
}

/* ----- Banner ----- */
.wd-banner-wrap {
  background: var(--wd-banner-bg);
  line-height: 0;
}

.wd-banner {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  height: auto;
  max-height: 168px;
  object-fit: cover;
  object-position: center right;
}

/* ----- Main ----- */
.wd-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.wd-search-panel {
  position: relative;
  z-index: 2;
  margin-top: -32px;
  margin-bottom: 20px;
}

.wd-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
}

.wd-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  padding: 14px 20px;
  background: var(--wd-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.wd-search-input-wrap input {
  border: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  font-size: 15px;
  outline: none;
  color: var(--wd-text);
}

.wd-search-input-wrap input::placeholder {
  color: #767676;
}

.wd-search-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 32px;
  min-width: 108px;
  background: var(--wd-search-btn);
  color: var(--wd-white);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.wd-search-btn:hover {
  background: var(--wd-navy-mid);
}

.wd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.wd-filters button {
  border: 1px solid #bdbdbd;
  background: var(--wd-white);
  color: var(--wd-text);
  border-radius: 999px;
  padding: 8px 18px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.wd-filters button::after {
  content: "▾";
  margin-left: 10px;
  font-size: 11px;
  color: #666;
}

/* ----- Two-column content ----- */
.wd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 20px;
  align-items: start;
}

.wd-results {
  background: var(--wd-white);
  border-radius: 4px;
  padding: 0 32px 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  min-width: 0;
}

.wd-count {
  margin: 0;
  padding: 20px 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wd-muted);
  border-bottom: 1px solid var(--wd-border);
}

.wd-jobs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-job {
  padding: 22px 0 18px;
  border-bottom: 1px solid #e5e5e5;
}

.wd-job:last-child {
  border-bottom: 0;
}

.wd-job-title {
  color: var(--wd-link);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  display: inline-block;
}

.wd-job-title:hover {
  text-decoration: underline;
}

.wd-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  color: var(--wd-muted);
  font-size: 14px;
}

.wd-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wd-meta-item img {
  flex-shrink: 0;
  opacity: 0.75;
}

.wd-job-id {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--wd-muted);
}

/* ----- Pagination ----- */
.wd-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 8px;
}

.wd-page,
.wd-page-next {
  border: 1px solid var(--wd-border);
  background: var(--wd-white);
  color: var(--wd-text);
  border-radius: 999px;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.wd-page.is-current {
  background: var(--wd-link);
  border-color: var(--wd-link);
  color: var(--wd-white);
}

.wd-page-next:disabled {
  opacity: 0.4;
  cursor: default;
}

.wd-range {
  text-align: center;
  color: var(--wd-muted);
  font-size: 14px;
  margin: 12px 0 0;
}

/* ----- Sidebar ----- */
.wd-aside {
  background: var(--wd-white);
  border: 1px solid var(--wd-border);
  border-radius: 4px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 16px;
}

.wd-aside h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--wd-text);
}

.wd-aside p {
  margin: 0 0 18px;
  color: var(--wd-muted);
  font-size: 14px;
  line-height: 1.55;
}

.wd-read-more {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--wd-link);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wd-read-more:hover {
  text-decoration: underline;
}

.wd-chevron {
  font-size: 16px;
  line-height: 1;
}

/* Nav links + Apply CTA */
.wd-nav-link {
  font: inherit;
  font-size: 15px;
  color: var(--wd-muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}
.wd-nav-link.is-active {
  color: var(--wd-link);
  font-weight: 500;
}
.wd-nav-link:hover {
  color: var(--wd-link);
}
.wd-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--wd-search-btn);
  color: var(--wd-white);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.wd-apply-btn:hover {
  background: var(--wd-navy-mid);
}
.wd-apply-btn[aria-current="page"] {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* Site footer */
.wd-footer {
  background: var(--wd-white);
  border-top: 1px solid var(--wd-border);
  margin-top: 24px;
}
.wd-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 40px;
  font-size: 14px;
  color: var(--wd-muted);
  line-height: 1.55;
}
.wd-footer-inner p {
  margin: 0 0 10px;
}
.wd-footer-links a {
  color: var(--wd-link);
  text-decoration: none;
}
.wd-footer-links a:hover {
  text-decoration: underline;
}

/* Apply page */
.wd-banner-short .wd-banner {
  max-height: 120px;
}
.wd-apply-main {
  padding-top: 24px;
}
.wd-apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: start;
}
.wd-apply-intro {
  background: var(--wd-white);
  border: 1px solid var(--wd-border);
  border-radius: 4px;
  padding: 28px 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.wd-apply-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wd-muted);
}
.wd-apply-title {
  margin: 12px 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--wd-navy);
  line-height: 1.25;
}
.wd-apply-lead,
.wd-apply-note {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--wd-muted);
  line-height: 1.55;
}
.wd-apply-note a {
  color: var(--wd-link);
}
.wd-form {
  background: var(--wd-white);
  border: 1px solid var(--wd-border);
  border-radius: 4px;
  padding: 28px 32px 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.wd-form-hp {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.wd-form-row {
  margin-bottom: 14px;
}
.wd-form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wd-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--wd-text);
}
.wd-form input,
.wd-form select {
  width: 100%;
  border: 1px solid #c8c8c8;
  background: #fff;
  border-radius: 4px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--wd-text);
}
.wd-form input[type="file"] {
  padding: 10px 12px;
  border-style: dashed;
  cursor: pointer;
}
.wd-form-hint {
  font-size: 12px;
  color: var(--wd-muted);
  margin: 6px 0 0;
}
.wd-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 22px;
  font-size: 14px;
  cursor: pointer;
}
.wd-check-row input {
  width: auto;
  margin-top: 3px;
}
.wd-submit-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  background: var(--wd-search-btn);
  color: var(--wd-white);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.wd-submit-btn:hover {
  background: var(--wd-navy-mid);
}
.wd-alert {
  padding: 14px 16px;
  border-radius: 4px;
  margin-top: 16px;
  font-size: 14px;
}
.wd-alert.is-ok {
  background: #e9f8ea;
  color: #1f5f22;
}
.wd-alert.is-err {
  background: #fdecec;
  color: #8a1f1f;
}
body.wd-modal-open {
  overflow: hidden;
}
.wd-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.wd-modal[hidden] {
  display: none;
}
.wd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 77, 0.45);
}
.wd-modal-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 8px;
  padding: 34px 32px 28px;
  width: min(92vw, 420px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 20, 77, 0.2);
  border: 1px solid var(--wd-border);
}
.wd-modal-card h2 {
  font-size: 22px;
  margin: 16px 0 8px;
  color: var(--wd-navy);
}
.wd-modal-card p {
  color: var(--wd-muted);
  margin: 0 0 22px;
  font-size: 15px;
}
.wd-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e9f8ea;
  color: #2a7a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wd-modal-icon svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 960px) {
  .wd-header-top,
  .wd-subnav,
  .wd-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .wd-layout {
    grid-template-columns: 1fr;
  }

  .wd-aside {
    position: static;
  }

  .wd-results {
    padding: 0 20px 24px;
  }

  .wd-job-title {
    font-size: 20px;
  }

  .wd-apply-layout {
    grid-template-columns: 1fr;
  }

  .wd-form-two {
    grid-template-columns: 1fr;
  }
}