/* Halo employer demonstration: Colliers.
   Page-specific styles. Tokens follow /employer-resources/employer-resources.css;
   terracotta and grey have darker "-ink" shades so text meets WCAG 2.1 AA. */
:root {
  --base: #fff9f2;
  --cream: #faf8f2;
  --white: #ffffff;
  --ink: #2a1f17;
  --ink-soft: #4a3f37;
  --grey: #6b625b;            /* 5.6:1 on cream */
  --terracotta: #c4836a;      /* decorative only: fills, rules, dots */
  --terracotta-ink: #9b5439;  /* text and buttons: 5.6:1 with white */
  --terracotta-deep: #87482f;
  --terracotta-soft: #f5ece7;
  --green: #3f8a55;
  --green-ink: #2f6b41;
  --green-soft: #e6f2e8;
  --border: rgba(42, 31, 23, 0.08);
  --border-strong: rgba(42, 31, 23, 0.14);
  --shadow: 0 1px 3px rgba(42, 31, 23, 0.05);
  --shadow-lg: 0 10px 30px -12px rgba(42, 31, 23, 0.16);
  --font-heading: "Hubot Sans Variable", Georgia, serif;
  --font-body: "Mona Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nav-h: 68px;
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--terracotta-ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
a { color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1160px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 242, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: var(--nav-h); padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1440px; margin: 0 auto;
}
.nav-brand { display: inline-flex; flex-shrink: 0; }
.nav-logo { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap; transition: background-color 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(42, 31, 23, 0.05); }
.nav-links a[aria-current="true"] {
  color: var(--terracotta-ink); background: var(--terracotta-soft); font-weight: 600;
}
.nav-toggle { display: none; }

/* Progress: one segment per section, filled as the presenter moves through */
.nav-progress {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px;
  height: 3px; position: absolute; left: 0; right: 0; bottom: -1px;
}
.nav-progress span { background: transparent; position: relative; overflow: hidden; }
.nav-progress span::after {
  content: ""; position: absolute; inset: 0;
  background: var(--terracotta);
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
  transition: transform 0.2s linear;
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--terracotta-ink); margin-bottom: 12px;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.18; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--grey); margin-top: 18px; }
.sub { font-size: 1.1rem; line-height: 1.65; color: var(--grey); margin-top: 16px; max-width: 44rem; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 0.6rem;
  font-family: inherit; font-size: 1rem; font-weight: 600; line-height: 1.4;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 0; background: none; -webkit-appearance: none; appearance: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--terracotta-ink); color: #fff; }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-outline { border: 1.5px solid var(--terracotta-ink); color: var(--terracotta-ink); background: transparent; }
.btn-outline:hover { background: var(--terracotta-soft); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 60px; background: var(--base); }
.prepared {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 22px;
  background: var(--white); border: 1px solid var(--border-strong); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
}
.prepared-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- Sections ---------- */
.band { padding: 88px 0; border-top: 1px solid var(--border); background: var(--cream); }
.band-white { background: var(--white); }
.chapter { scroll-margin-top: var(--nav-h); }
.section-head { text-align: center; margin-bottom: 44px; }
.chapter-head { margin-bottom: 36px; }
.chapter-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
}
.chapter-head .eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--terracotta); border-radius: 2px;
}

.num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--terracotta-ink); color: #fff;
  font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700;
}

/* Employer responsibility callout: the one thing to remember in each section */
.duty {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
  margin: 28px 0 32px; padding: 16px 20px;
  background: var(--terracotta-soft); border-left: 4px solid var(--terracotta-ink);
  border-radius: 0 0.75rem 0.75rem 0;
  font-size: 1rem; line-height: 1.55; color: var(--ink);
}
.duty-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--terracotta-ink); white-space: nowrap;
}
.duty strong { font-weight: 700; }

.next-section {
  display: flex; justify-content: center;
  margin-top: 56px; padding-top: 40px; border-top: 1px dashed var(--border-strong);
}
.btn-next {
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--border-strong); box-shadow: var(--shadow);
}
.btn-next:hover { border-color: var(--terracotta-ink); color: var(--terracotta-ink); }
.band-white .btn-next { background: var(--cream); }

/* ---------- Overview ---------- */
.agenda {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  counter-reset: agenda;
}
.agenda a {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 18px 20px; background: var(--cream);
  border: 1px solid var(--border); border-radius: 1rem;
  text-decoration: none; transition: border-color 0.15s, background-color 0.15s;
}
.agenda a:hover { border-color: var(--terracotta); background: var(--white); }
.agenda-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 1.5px solid var(--terracotta);
  color: var(--terracotta-ink); font-family: var(--font-heading); font-weight: 700;
}
.agenda-text { font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem; line-height: 1.35; }

.relationship {
  margin: 56px auto 0; max-width: 860px; padding: 32px;
  background: var(--base); border: 1px solid var(--border); border-radius: 1.25rem;
}
.relationship-parties {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  position: relative;
}
/* connecting line between the three parties */
.relationship-parties::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: 44px;
  height: 2px; background: repeating-linear-gradient(90deg, var(--terracotta) 0 6px, transparent 6px 12px);
}
.party {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 12px 20px; background: var(--white);
  border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow);
}
.party-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--terracotta-soft); color: var(--terracotta-ink); margin-bottom: 10px;
}
.party-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.party-note { font-size: 0.85rem; color: var(--grey); margin-top: 2px; }
.relationship-platform {
  position: relative; margin-top: 18px;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 20px; background: var(--white);
  border: 1.5px solid var(--terracotta); border-radius: 0.9rem;
  font-size: 0.95rem; font-weight: 600; color: var(--ink-soft);
}
/* small uprights: the platform sits beneath and supports each party */
.relationship-platform::before {
  content: ""; position: absolute; left: 16.66%; right: 16.66%; top: -19px; height: 18px;
  background:
    linear-gradient(var(--terracotta), var(--terracotta)) left / 2px 100% no-repeat,
    linear-gradient(var(--terracotta), var(--terracotta)) center / 2px 100% no-repeat,
    linear-gradient(var(--terracotta), var(--terracotta)) right / 2px 100% no-repeat;
}
.relationship-platform img { height: 20px; width: auto; display: block; }
.relationship-caption {
  margin: 22px auto 0; max-width: 40rem; text-align: center;
  font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft);
}

/* ---------- Summary steps (activation) ---------- */
.summary-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.summary-steps li {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; background: var(--white);
  border: 1px solid var(--border); border-radius: 0.9rem; box-shadow: var(--shadow);
  font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; line-height: 1.35;
}

/* ---------- Walkthrough component ---------- */
.wt {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border-strong);
  border-radius: 1.1rem; overflow: hidden; box-shadow: var(--shadow-lg);
}
.band-white .wt { background: var(--base); }
.wt-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px 12px 20px; background: var(--ink); color: #fff;
}
.wt-title { font-size: 1rem; font-weight: 600; color: #fff; }
.wt-bar-actions { display: flex; align-items: center; gap: 10px; }
.wt-status {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.9);
}
.wt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 16px; border-radius: 0.55rem;
  font-family: inherit; font-size: 0.92rem; font-weight: 600; line-height: 1.3;
  border: 1.5px solid var(--border-strong); background: var(--white); color: var(--ink);
  cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.wt-btn:hover:not(:disabled) { border-color: var(--terracotta-ink); color: var(--terracotta-ink); }
.wt-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.wt-btn-primary { background: var(--terracotta-ink); border-color: var(--terracotta-ink); color: #fff; }
.wt-btn-primary:hover:not(:disabled) { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fff; }
.wt-full { min-height: 36px; padding: 6px 12px; background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.wt-full:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }
.wt-full:focus-visible { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px #fff; }
.wt-full-icon {
  width: 12px; height: 12px; position: relative;
  border: 2px solid currentColor; border-radius: 2px;
  clip-path: polygon(0 0, 40% 0, 40% 20%, 60% 20%, 60% 0, 100% 0, 100% 40%, 80% 40%, 80% 60%, 100% 60%, 100% 100%, 60% 100%, 60% 80%, 40% 80%, 40% 100%, 0 100%, 0 60%, 20% 60%, 20% 40%, 0 40%);
}

.wt-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); flex: 1; min-height: 0; }
.wt-chapters {
  padding: 16px 12px; border-right: 1px solid var(--border);
  background: var(--cream); overflow-y: auto;
}
.band-white .wt-chapters { background: var(--white); }
.wt-chapters ol { display: flex; flex-direction: column; gap: 4px; counter-reset: ch; }
.wt-chapters li { counter-increment: ch; }
.wt-chapters button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 0.6rem;
  background: transparent; color: var(--ink-soft); text-align: left;
  font-family: inherit; font-size: 0.92rem; font-weight: 500; line-height: 1.35;
  cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.wt-chapters button::before {
  content: counter(ch);
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border-strong); background: var(--white);
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; color: var(--grey);
}
.wt-chapters button:hover { background: rgba(42, 31, 23, 0.04); color: var(--ink); }
.wt-chapters button[aria-current="step"] { background: var(--terracotta-soft); color: var(--ink); font-weight: 600; }
.wt-chapters button[aria-current="step"]::before { background: var(--terracotta-ink); border-color: var(--terracotta-ink); color: #fff; }

.wt-stage {
  position: relative; aspect-ratio: 16 / 10; min-height: 320px;
  background:
    radial-gradient(circle at 1px 1px, rgba(42, 31, 23, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    var(--base);
}
.wt-placeholder {
  position: absolute; inset: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center;
  border: 2px dashed rgba(155, 84, 57, 0.4); border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.6);
}
.wt-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--terracotta-soft); color: var(--terracotta-ink);
}
.wt-ph-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--ink); max-width: 28rem; }
.wt-ph-chapter { font-size: 0.92rem; color: var(--grey); }
.wt-panel { position: absolute; inset: 0; }
.wt-panel[hidden] { display: none; }

.wt-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--border); background: var(--white);
}
.band-white .wt-controls { background: var(--white); }
.wt-progress { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Full screen (native) and expanded (fallback where the Fullscreen API is unavailable) */
.wt:fullscreen { border-radius: 0; border: 0; width: 100vw; height: 100vh; }
.wt:fullscreen .wt-stage,
.wt.is-expanded .wt-stage { aspect-ratio: auto; height: 100%; }
.wt.is-expanded {
  position: fixed; inset: 0; z-index: 250; border-radius: 0; border: 0;
}
.wt:fullscreen .wt-full-icon,
.wt.is-expanded .wt-full-icon { transform: rotate(45deg) scale(0.85); }
body.has-expanded-wt { overflow: hidden; }

/* ---------- Portal areas ---------- */
.portal-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.portal-area {
  padding: 18px 20px; background: var(--cream);
  border: 1px solid var(--border); border-radius: 0.9rem;
}
.portal-area h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.portal-area p { font-size: 0.9rem; line-height: 1.5; color: var(--grey); }

/* ---------- Arrangement journey ---------- */
.journey {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  counter-reset: j;
}
.journey-step {
  counter-increment: j; position: relative;
  padding: 18px 18px 20px; background: var(--white);
  border: 1px solid var(--border); border-radius: 0.9rem; box-shadow: var(--shadow);
}
.journey-step::before {
  content: counter(j);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%; margin-bottom: 12px;
  background: var(--white); border: 1.5px solid var(--terracotta);
  color: var(--terracotta-ink); font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700;
}
.journey-step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; right: -12px; width: 12px; height: 2px;
  background: var(--terracotta);
}
.journey-who {
  position: absolute; top: 20px; right: 16px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--grey);
}
.journey-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.journey-step p { font-size: 0.9rem; line-height: 1.55; color: var(--grey); }
.journey-step.is-employer { background: var(--terracotta-soft); border-color: rgba(155, 84, 57, 0.35); }
.journey-step.is-employer::before { background: var(--terracotta-ink); border-color: var(--terracotta-ink); color: #fff; }
.journey-step.is-employer .journey-who { color: var(--terracotta-ink); }
.journey-step.is-employer p { color: var(--ink-soft); }
.journey-step.is-live { background: var(--green-soft); border-color: rgba(63, 138, 85, 0.35); }
.journey-step.is-live::before { background: var(--green-ink); border-color: var(--green-ink); color: #fff; content: "✓"; }
.journey-step.is-live .journey-who { color: var(--green-ink); }
.journey-step.is-live p { color: var(--ink-soft); }

/* ---------- Monthly routine ---------- */
.routine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.routine-card {
  padding: 28px; background: var(--cream);
  border: 1px solid var(--border); border-radius: 1rem;
  border-top: 4px solid var(--terracotta);
}
.routine-card .num { margin-bottom: 16px; }
.routine-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.routine-card p { font-size: 0.98rem; line-height: 1.65; color: var(--ink-soft); }
.duty-strip { margin-top: 16px; }

.example {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; align-items: center;
  margin-top: 40px; padding: 28px;
  background: var(--base); border: 1px dashed var(--border-strong); border-radius: 1rem;
}
.example-tag {
  display: inline-block; margin-bottom: 10px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--border-strong); color: var(--ink-soft);
}
.example-head h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.example-head p { font-size: 0.92rem; line-height: 1.6; color: var(--grey); }
.example-figures {
  margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.example-figures > div {
  padding: 14px 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: 0.75rem;
}
.example-figures dt { font-size: 0.82rem; color: var(--grey); line-height: 1.4; }
.example-figures dd {
  margin: 4px 0 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem;
  color: var(--ink);
}
.example-figures dd span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--grey); }
.example-figures .is-highlight { grid-column: 1 / -1; background: var(--green-soft); border-color: rgba(63, 138, 85, 0.3); }
.example-figures .is-highlight dt { color: var(--green-ink); font-weight: 600; }

/* ---------- Governance and changes ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.split-card {
  display: flex; flex-direction: column;
  padding: 30px; background: var(--white);
  border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow);
}
.split-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; }
.split-card > p { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.clarify {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px !important; padding: 16px 18px;
  background: var(--green-soft); border-radius: 0.75rem;
  color: var(--green-ink) !important; line-height: 1.5 !important;
}
.clarify strong { font-weight: 700; }
.clarify-icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-ink); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.change-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.change-list li {
  position: relative; padding: 10px 12px 10px 32px;
  background: var(--cream); border-radius: 0.6rem;
  font-size: 0.93rem; line-height: 1.4; color: var(--ink);
}
.change-list li::before {
  content: ""; position: absolute; left: 13px; top: 17px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta);
}
.split-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 0.95rem !important;
}

/* ---------- Next steps ---------- */
.prompts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  counter-reset: q;
}
.prompts li {
  counter-increment: q; position: relative;
  padding: 22px 22px 22px 66px; background: var(--cream);
  border: 1px solid var(--border); border-radius: 1rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; line-height: 1.4;
}
.prompts li::before {
  content: "Q" counter(q);
  position: absolute; left: 20px; top: 21px;
  width: 34px; height: 34px; border-radius: 0.55rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--terracotta-soft); color: var(--terracotta-ink);
  font-size: 0.8rem; font-weight: 700;
}

.recap {
  margin-top: 48px; padding: 32px;
  background: var(--base); border: 1px solid var(--border); border-radius: 1.25rem;
}
.recap-title {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--terracotta-ink); margin-bottom: 18px;
}
.recap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.recap-card {
  padding: 22px; background: var(--white);
  border: 1px solid var(--border); border-radius: 0.9rem;
}
.recap-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.recap-card p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.recap-card.is-employer { border: 1.5px solid var(--terracotta-ink); }
.recap-card.is-employer h4 { color: var(--terracotta-ink); }
.recap-card.is-halo { background: var(--ink); border-color: var(--ink); }
.recap-card.is-halo h4 { color: #fff; }
.recap-card.is-halo p { color: rgba(255, 255, 255, 0.86); }
.closing-actions { margin-top: 44px; }

/* ---------- Footer ---------- */
.footer { background: var(--base); border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo { height: 24px; width: auto; }
.footer p { font-size: 0.82rem; color: var(--grey); }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; text-align: center;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--border-strong); border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-inner { padding: 0 20px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: var(--white); color: var(--ink);
    font-family: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
  }
  .nav-toggle-icon {
    width: 10px; height: 10px; margin-top: -4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform 0.15s;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon { transform: rotate(-135deg); margin-top: 4px; }
  .nav-menu {
    display: none;
    position: absolute; top: calc(100% + 1px); right: 12px; left: auto;
    width: min(320px, calc(100vw - 24px));
    padding: 8px; background: var(--white);
    border: 1px solid var(--border-strong); border-radius: 1rem; box-shadow: var(--shadow-lg);
  }
  .nav-menu.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 14px; border-radius: 0.6rem; font-size: 1rem; }

  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey-step:nth-child(3)::after { display: none; }
  .recap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .summary-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routine { grid-template-columns: 1fr; }
  .example { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .wt-body { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .nav-inner { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 44px; }
  .band { padding: 60px 0; }
  .chapter-head { margin-bottom: 28px; }
  .actions .btn { width: 100%; }

  .agenda, .summary-steps, .portal-grid, .prompts, .recap-grid, .change-list { grid-template-columns: 1fr; }
  .relationship { padding: 20px 16px; margin-top: 40px; }
  .relationship-parties { gap: 8px; }
  .relationship-parties::before { top: 38px; }
  .party { padding: 14px 6px; }
  .party-icon { width: 36px; height: 36px; }
  .party-icon svg { width: 20px; height: 20px; }
  .party-name { font-size: 0.95rem; }
  .party-note { font-size: 0.75rem; }
  .relationship-platform { flex-direction: column; gap: 6px; text-align: center; font-size: 0.88rem; }

  .journey { grid-template-columns: 1fr; gap: 10px; }
  .journey-step::after { display: none; }
  .journey-step:not(:last-child)::after {
    display: block; top: auto; bottom: -11px; right: auto; left: 31px; width: 2px; height: 10px;
  }

  .duty { padding: 14px 16px; font-size: 0.95rem; }
  .split-card, .routine-card, .recap, .example { padding: 22px; }
  .prompts li { font-size: 1rem; padding: 18px 18px 18px 60px; }
  .prompts li::before { left: 16px; top: 17px; }

  /* Walkthrough stacks: chapters become a horizontal strip above the stage */
  .wt-body { grid-template-columns: 1fr; }
  .wt-chapters { border-right: 0; border-bottom: 1px solid var(--border); padding: 10px; overflow-x: auto; overflow-y: hidden; }
  .wt-chapters ol { flex-direction: row; gap: 6px; width: max-content; }
  .wt-chapters button { white-space: nowrap; padding: 8px 12px 8px 8px; font-size: 0.88rem; }
  .wt-stage { aspect-ratio: 4 / 5; min-height: 300px; }
  .wt-placeholder { inset: 12px; padding: 16px; }
  .wt-bar { padding: 10px 12px 10px 16px; }
  .wt-status { display: none; }
  .wt-controls { padding: 10px 12px; }
  .wt-btn { padding: 8px 12px; }
  .next-section { margin-top: 40px; padding-top: 28px; }
  .btn-next { width: 100%; white-space: normal; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-keys { display: none; }
}

@media (max-width: 1180px) and (min-width: 761px) {
  .wt-stage { aspect-ratio: 16 / 11; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .nav-links a[aria-current="true"], .wt-chapters button[aria-current="step"] { outline: 2px solid CanvasText; }
}

/* ---------- Employer-focused structure (administration, finance, governance, discussion) ---------- */
/* Opening journey: four stages, each with a one-line description */
.agenda.agenda-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agenda-4 a { align-items: flex-start; }
.agenda-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.agenda-desc { font-size: 0.9rem; line-height: 1.5; color: var(--grey); }

/* Optional portal tour: separated from the main sequence in the section menu */
.nav-optional { margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--border-strong); }
.nav-optional-tag {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  border: 1px dashed var(--border-strong); background: var(--cream);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey);
  vertical-align: 1px;
}
.chapter-optional { border-top: 2px dashed var(--border-strong); }
.optional-tag {
  display: inline-block; padding: 1px 10px; margin-right: 2px; border-radius: 999px;
  border: 1.5px dashed var(--terracotta-ink); font-size: 0.78rem;
}

/* Shared small headings and bullet lists used by Governance and Discussion */
.ds-subhead { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin-bottom: 16px; }
.ds-list { display: grid; gap: 10px; margin-top: 12px; }
.ds-list li {
  position: relative; padding-left: 20px;
  font-size: 1rem; line-height: 1.6; color: var(--ink-soft);
}
.ds-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta);
}

/* Finance: the Option A line directly above the monthly walkthrough */
.duty.duty-option { margin-top: -16px; }

/* Governance: the two Family Circle editions */
.gv-editions { margin-bottom: 40px; }
.gv-editions .split-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.gv-editions-shared {
  margin-top: 16px; padding: 22px 26px;
  background: var(--white); border: 1px solid var(--border); border-radius: 1rem;
}
.gv-editions-shared > p { font-size: 1rem; line-height: 1.65; color: var(--ink-soft); }
.gv-editions-shared > p + p, .gv-editions-shared .ds-list + p { margin-top: 12px; }
.gv-editions-label { font-weight: 700; color: var(--ink) !important; }

/* Discussion and next steps */
.ds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.chapter-head + .ds-grid { margin-top: 0; }
.chapter-head + .ds-closing { margin-top: 0; }
.ds-closing + .actions { justify-content: flex-start; margin-top: 24px; }
.ds-assumptions { background: var(--cream); box-shadow: none; }
.ds-closing { margin: 32px 0 0; max-width: 46rem; font-size: 1.05rem; line-height: 1.65; color: var(--ink-soft); }

@media (max-width: 1180px) {
  .agenda.agenda-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-optional { margin: 6px 0 0; padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 960px) {
  .ds-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .agenda.agenda-4 { grid-template-columns: 1fr; }
  .gv-editions-shared { padding: 18px; }
  .duty.duty-option { margin-top: -12px; }
}
