/* Halo employer demonstration: Colliers.
   "Who does what" section (#who-does-what): the employer's three areas of
   responsibility, the nursery-payment choice, the four-party map and the
   closing summary. Static content only: no script, no network requests.
   Uses the tokens from colliers.css. All classes are prefixed wd-. */

.band-warm { background: var(--base); }

/* ---------- Process strip: Administration → Finance → Governance ---------- */
.wd-process { margin: 0 0 40px; }
.wd-process-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  counter-reset: wd;
}
.wd-process-list li {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; background: var(--white);
  border: 1px solid var(--border); border-radius: 0.9rem;
}
/* arrow between steps (decorative; the list order carries the sequence) */
.wd-process-list li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -12px; z-index: 1;
  width: 12px; height: 12px; margin-top: -6px;
  border-top: 2px solid var(--terracotta); border-right: 2px solid var(--terracotta);
  transform: translateX(-2px) rotate(45deg);
}
.wd-process-name { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--ink); }
.wd-process-label { font-size: 0.88rem; color: var(--grey); }
.wd-process-note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 14px;
  font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft);
}
.wd-process-note svg { flex-shrink: 0; margin-top: 2px; color: var(--green-ink); }

/* ---------- Responsibility cards ---------- */
.wd-cards {
  display: grid; gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "admin finance gov";
  align-items: stretch;
}
.wd-card-admin { grid-area: admin; }
.wd-card-finance { grid-area: finance; }
.wd-card-gov { grid-area: gov; }

.wd-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 26px; background: var(--white);
  border: 1px solid var(--border); border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
}
/* horizontal connector between the three cards (desktop) */
.wd-card-admin::after, .wd-card-finance::after {
  content: ""; position: absolute; top: 58px; right: -29px; width: 30px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--terracotta) 0 6px, transparent 6px 11px);
}
.wd-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.wd-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--terracotta-soft); color: var(--terracotta-ink);
}
.wd-num {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--terracotta-ink);
}
.wd-num span { color: var(--grey); font-weight: 600; }
.wd-card h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.wd-summary { margin-top: 8px; font-size: 1rem; line-height: 1.55; color: var(--ink-soft); }

.wd-list-label {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey);
}
.wd-list { margin-top: 12px; display: grid; gap: 10px; }
.wd-list li {
  position: relative; padding-left: 28px;
  font-size: 0.95rem; line-height: 1.55; color: var(--ink);
}
.wd-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b41' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.wd-list strong { font-weight: 700; }

.wd-note {
  margin-top: 20px; padding: 14px 16px;
  background: var(--cream); border-left: 3px solid var(--terracotta);
  border-radius: 0 0.7rem 0.7rem 0;
  font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft);
}
.wd-note-label {
  display: block; margin-bottom: 2px;
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terracotta-ink);
}

.wd-ctas { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.wd-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 18px; border-radius: 0.6rem;
  background: var(--green-ink); color: #fff;
  font-weight: 600; font-size: 0.95rem; line-height: 1.35; text-decoration: none;
  transition: background-color 0.15s;
}
.wd-cta:hover { background: #245434; }
.wd-cta-secondary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  font-size: 0.92rem; font-weight: 600; color: var(--green-ink); text-decoration: underline;
  text-underline-offset: 3px;
}
.wd-cta-secondary:hover { color: var(--ink); }

/* ---------- Nursery-payment choice (in the Monthly management section) ---------- */
.wd-pay {
  position: relative; padding: 30px; margin: 0 0 40px;
  background: var(--white); border: 1.5px solid var(--terracotta); border-radius: 1.25rem;
  box-shadow: var(--shadow);
}
.wd-pay-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.wd-pay-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--terracotta-soft); color: var(--terracotta-ink);
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.wd-pay h3 { font-size: 1.2rem; font-weight: 700; }
.wd-pay-intro { margin-bottom: 22px; max-width: 52rem; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }
.wd-pay-intro p + p { margin-top: 6px; }

.wd-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.wd-option {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 22px; border-radius: 1rem; border: 1.5px solid var(--border-strong); background: var(--cream);
}
.wd-option-b { background: var(--green-soft); border-color: rgba(47, 107, 65, 0.35); }
.wd-option-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wd-option-letter {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft);
}
.wd-option-letter b {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-heading); font-size: 0.9rem;
}
.wd-option-b .wd-option-letter b { background: var(--green-ink); }
.wd-option-chip {
  padding: 3px 10px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--border-strong); font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
}
.wd-option-b .wd-option-chip { border-color: rgba(47, 107, 65, 0.35); color: var(--green-ink); }
.wd-option h4 { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 700; margin: 0; line-height: 1.35; }
.wd-option p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }

.wd-cost {
  margin-top: 4px; padding: 14px 16px; border-radius: 0.8rem;
  background: var(--white); border: 1px dashed rgba(47, 107, 65, 0.45);
}
.wd-cost-label {
  display: block; margin-bottom: 4px;
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-ink);
}
.wd-cost p + p { margin-top: 8px; }
.wd-cost p { font-size: 0.92rem; color: var(--ink); }

.wd-oversight {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px;
  background: var(--cream); border-radius: 0.8rem;
  font-size: 0.95rem; line-height: 1.55; color: var(--ink);
}
.wd-oversight svg { flex-shrink: 0; margin-top: 2px; color: var(--terracotta-ink); }

/* Cue linking Option A to the monthly walkthrough directly below the panel */
.wd-walk-cue {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 12px 6px 10px;
  border: 1px dashed var(--border-strong); border-radius: 999px; background: var(--cream);
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
}
.wd-walk-cue svg { flex-shrink: 0; color: var(--terracotta-ink); }

/* ---------- The partnership at a glance ---------- */
.wd-map { margin-top: 72px; }
.wd-map-head { margin-bottom: 24px; }
.wd-map-head h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; }
.wd-map-head p { margin-top: 8px; color: var(--grey); font-size: 1rem; }
.wd-parties {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
/* dashed thread connecting the four parties */
.wd-parties::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 42px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--terracotta) 0 6px, transparent 6px 12px);
}
.wd-party {
  position: relative; display: flex; flex-direction: column;
  padding: 22px 20px; background: var(--white);
  border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow);
}
.wd-party-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wd-party-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--ink-soft); border: 1px solid var(--border-strong);
}
.wd-party h3, .wd-party h4 { font-size: 1.1rem; font-weight: 700; }
.wd-party-you {
  display: inline-block; margin-top: 2px;
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--terracotta-ink);
}
.wd-party p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.wd-party-employer {
  border: 2px solid var(--terracotta-ink); background: var(--terracotta-soft);
  box-shadow: var(--shadow-lg);
}
.wd-party-employer .wd-party-icon { background: var(--terracotta-ink); color: #fff; border-color: var(--terracotta-ink); }
.wd-party-employer p { color: var(--ink); }

/* ---------- Closing summary ---------- */
.wd-summary-panel {
  margin-top: 56px; padding: 30px 32px;
  background: var(--ink); color: #fff; border-radius: 1.25rem;
  font-size: 1.12rem; line-height: 1.65;
}
.wd-summary-panel strong { color: #f3c9b6; font-weight: 700; }


/* ---------- Responsive: stack on tablet and mobile ---------- */
@media (max-width: 1180px) {
  .wd-cards {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "admin" "finance" "gov";
    gap: 26px; max-width: 760px; margin: 0 auto;
  }
  /* vertical connector between stacked cards */
  .wd-card-admin::after, .wd-card-finance::after { display: none; }
  .wd-card-finance::before, .wd-card-gov::before {
    content: ""; position: absolute; left: 51px; top: -27px; width: 2px; height: 26px;
    background: repeating-linear-gradient(180deg, var(--terracotta) 0 6px, transparent 6px 11px);
  }
  .wd-process { max-width: 760px; margin-left: auto; margin-right: auto; }
  .wd-parties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-parties::before { display: none; }
  .wd-map, .wd-summary-panel { max-width: 760px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 760px) {
  .wd-process-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .wd-process-list li:not(:last-child)::after {
    top: auto; bottom: -10px; right: auto; left: 28px; margin-top: 0;
    transform: rotate(135deg);
  }
  .wd-card { padding: 22px 20px; }
  .wd-card-finance::before, .wd-card-gov::before { left: 45px; }
  .wd-icon { width: 48px; height: 48px; }
  .wd-card h3 { font-size: 1.18rem; }
  .wd-pay { padding: 22px 18px; margin-bottom: 32px; }
  .wd-options { grid-template-columns: minmax(0, 1fr); }
  .wd-option { padding: 18px; }
  .wd-map { margin-top: 56px; }
  .wd-parties { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* vertical thread on mobile */
  .wd-parties::before {
    display: block; left: 39px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--terracotta) 0 6px, transparent 6px 12px);
  }
  .wd-party { padding: 18px; }
  .wd-summary-panel { padding: 22px 20px; font-size: 1.02rem; margin-top: 44px; }
}

@media (forced-colors: active) {
  .wd-card, .wd-pay, .wd-option, .wd-party, .wd-summary-panel { border: 1px solid CanvasText; }
  .wd-list li::before { forced-color-adjust: none; }
}

#involved .relationship { max-width: none; margin-top: 0; }
