:root {
  color-scheme: light;
  --ink: #304838;
  --muted: #4e6755;
  --sage: #e5ece3;
  --sage-soft: #f0f4ee;
  --sand: #f7f2eb;
  --paper: #fbfaf6;
  --white: #fffefa;
  --line: #c6d3c4;
  --terra: #8c4832;
  --terra-hover: #763c29;
  --surface-border: #d6dfd3;
  --soft-terra: #f3e5dc;
  --active: #36583f;
  --card-gap: 12px;
  --card-padding: clamp(14px, 2.8vw, 22px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui,sans-serif; }
.wrap { width: min(1120px, calc(100% - 2 * clamp(16px, 4vw, 42px))); margin-inline: auto; }
a { color: #35563d; text-underline-offset: .21em; }
/* Keep keyboard focus distinct on both light cards and terracotta buttons. */
:focus-visible {
  outline: 3px solid var(--active);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--white);
}
/* These headings receive focus for orientation after navigating to a screen. */
:is(h2, h3)[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.skip { position: absolute; z-index: 1; background: var(--white); padding: 8px; top: 10px; left: 16px; }
.skip:not(:focus) { clip-path: inset(50%); }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 6vw, 4.1rem); letter-spacing: -.042em; }
h2 { font-size: clamp(1.38rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: .65em 0; text-wrap: pretty; }
.notice { margin: 0 0 34px; }
section:not(.hero) > p { max-inline-size: 68ch; }
button, input { font: inherit; color: inherit; min-height: 44px; max-width: 100%; }
button { cursor: pointer; }
.panel, .step, details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: var(--card-padding); }
.date-panel { margin-block: 16px; background: var(--sage-soft); }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
input:not([type="checkbox"]), .secondary { background: var(--white); border: 1px solid #99ae9b; border-radius: 9px; padding: 8px 11px; }
label { font-weight: 650; }
.muted, .step .tag { color: var(--muted); font-size: .9rem; }
#status:empty, #search-status:empty { margin: 0; }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: var(--card-gap); }
.step { overflow-wrap: break-word; }
.step.next { border-inline-start: 4px solid var(--terra); background: var(--sage-soft); }
.step .tag { margin: 0 0 5px; }
.step label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .94rem; }
.step label input { min-height: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--active); }
.source { font-size: .9rem; }
#kennis label { display: block; margin: 12px 0 5px; }
#search { display: block; width: min(100%,36rem); margin-bottom: 12px; }
#articles, #rights-list, #scenario-list, #law-list, #practice-list, #template-list {
  display: grid;
  gap: var(--card-gap);
  margin-block: 14px;
}
details { min-inline-size: 0; overflow-wrap: anywhere; scroll-margin-block-start: 16px; }
details[open] > summary { border-bottom: 1px solid var(--surface-border); padding-bottom: 8px; }
summary { border-radius: .45rem; cursor: pointer; font-weight: 700; min-height: 44px; align-content: center; }
.prompts { padding-inline-start: 1.3rem; }
.prompts li + li { margin-top: 6px; }
.notice { padding: clamp(16px, 4vw, 25px); background: var(--sage); border-radius: 16px; }
.notice h2 { font-size: 1.2rem; }
footer { border-top: 1px solid var(--line); padding-block: 15px 26px; font-size: .9rem; }

[hidden] { display: none !important; }
.workspace {
  display: grid;
  grid-template-columns: minmax(252px, .7fr) minmax(0, 1.65fr);
  align-items: start;
  gap: clamp(20px, 3.5vw, 40px);
  margin: 0 auto 36px;
}
.sidebar { min-width: 0; }
.role-picker, .quick { min-width: 0; }
.role-picker h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); margin-block: 0 15px; }
.role-grid { display: grid; gap: 8px; }
.role {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 10px; min-height: 60px; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--white);
  text-align: start; font-weight: 650; line-height: 1.25;
}
.role small { display: block; margin-top: 4px; font-size: .79rem; font-weight: 400; color: var(--muted); }
.role:hover, .role[aria-pressed="true"] { border-color: #708b74; }
.role[aria-pressed="true"] { background: var(--sage); }
.role-indicator, .module-arrow { font-size: 1.4rem; line-height: 1; color: var(--muted); }
.role[aria-pressed="true"] .role-indicator { font-size: 1rem; }
.icon { display: inline-flex; align-items: center; justify-content: center; color: #52705a; }
.quick { margin-top: 23px; padding: var(--card-padding); background: var(--sand); border-radius: 14px; }
.quick ul { list-style: none; padding: 0; margin: 8px 0 0; }
.quick li a { display: flex; align-items: center; gap: 9px; min-height: 44px; padding-block: 5px; font-size: .93rem; text-decoration-color: transparent; }
.quick li a:hover { text-decoration-color: currentColor; }
.quick li .icon svg { width: 17px; height: 17px; }
.dashboard-note { margin: 0; padding: 12px 14px; border-radius: 10px; color: #75412f; background: var(--soft-terra); }
.views { min-width: 0; }
.view { min-width: 0; scroll-margin-top: 18px; }
.view h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }

.dashboard, .views > .view:not(.dashboard) {
  padding: clamp(16px, 3.5vw, 30px);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  background: var(--white);
}
.welcome-copy { margin-block: 8px 18px; color: var(--muted); }
.next-card {
  display: grid; gap: 5px; border: 1px solid #cfddce; border-radius: 15px;
  padding: clamp(14px, 2.7vw, 23px); background: #dfe9df; color: var(--ink); text-decoration: none;
}
.next-card:hover { border-color: #718e77; }
.next-card strong { font-size: clamp(1.28rem, 3vw, 1.75rem); line-height: 1.25; }
.next-label { font-size: .84rem; color: var(--muted); }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0; margin-block: 14px; }
.module-card {
  min-width: 0; min-height: 84px; border: 1px solid #e2e8de; border-radius: 12px; background: var(--white);
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px;
  padding: clamp(9px, 1.8vw, 14px); color: var(--ink); text-decoration: none;
}
.module-card:hover { border-color: #788f7b; background: #f4f7f1; }
.module-copy { min-width: 0; line-height: 1.28; overflow-wrap: break-word; }
.module-copy small { display: block; margin-top: 4px; font-size: .77rem; color: var(--muted); }
.module-card .icon { flex: none; width: 32px; height: 34px; border-radius: 8px; background: var(--sage); }
.module-card .icon svg { width: 20px; height: 20px; }
.dashboard > .dashboard-note { max-inline-size: none; font-size: .93rem; }
.return-link { display: inline-flex; align-items: center; min-height: 44px; margin-block: 0 10px; }
.checklist-row label { display: flex; align-items: center; gap: 8px; }
.checklist-row input[type="checkbox"] { min-height: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--active); }
.checklist-row { border-bottom: 1px solid var(--line); padding-block: 12px; }
.checklist-row p { margin: .25em 0 0 26px; }
.resource-list { padding-inline-start: 1.15rem; }
.resource-list li + li { margin-top: .5em; }
#recovery-list { display: grid; gap: 8px; margin-block: 14px; }
.recovery-item p { margin-bottom: 0; }
@media (max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sidebar { display: contents; }
  .role-picker { grid-row: 1; }
  .views { grid-row: 2; }
  .quick { grid-row: 3; margin-top: 0; }
  .role-grid { grid-template-columns: 1fr; }
}
.role-guide { margin: 18px 0; background: var(--sage-soft); }
.role-guide h3 { margin-top: 0; }
.role-guide p { margin-bottom: 0; }

.role-guide a { display: inline-block; margin-top: 10px; }
.conversation-choices select, .agreement-card textarea {
  display: block;
  width: 100%;
  margin: 8px 0 16px;
  padding: 10px;
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid #6f8274;
  border-radius: 8px;
}
.conversation-card { margin-bottom: 16px; background: var(--sage-soft); }

#more-title { margin: 22px 0 0; font-size: 1.05rem; }
#startscherm { scroll-margin-block-start: 12px; }

.template-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.pdf-actions { margin-top: 16px; }
.pdf-actions p { margin: 6px 0 0; }

.return-link { font-weight: 650; }
#startscherm [href="#rolvraag"] { display: inline-flex; align-items: center; min-height: 44px; }

.timeline .step { display: flex; flex-direction: column; }
.phase-facts { margin: 14px 0; }
.phase-facts > div { padding: 9px 10px; border-top: 1px solid var(--line); }
.phase-facts > div:last-child { border-radius: 8px; background: var(--sage); }
.phase-facts dt { font-weight: 700; }
.phase-facts dd { margin: 3px 0 0; }
.phase-links { margin-top: auto; display: grid; gap: 4px; }
.phase-links a { display: flex; align-items: center; min-height: 44px; }
.phase-links .source { color: var(--muted); }

.role-guide-links { display: flex; flex-wrap: wrap; column-gap: 16px; }

.role-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; margin-block: 10px 18px; }
.role-actions a {
  display: flex; align-items: center; min-height: 48px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); font-weight: 650;
}
.timeline .step { scroll-margin-block-start: 16px; }


.controls > * { min-inline-size: 0; }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.wordmark, .site-link { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark { gap: 8px; color: var(--ink); font-size: clamp(1rem, 3.8vw, 1.17rem); font-weight: 720; text-decoration: none; }
.wordmark img { flex: none; }
.site-link { font-size: .86rem; text-align: end; }
.hero {
  margin-block: clamp(18px, 4vw, 40px) clamp(28px, 6vw, 64px);
  padding: clamp(24px, 6vw, 70px);
  background: var(--sage);
  border-radius: 16px;
}
.hero h1 { font-size: clamp(2.15rem, 6.3vw, 4.65rem); line-height: 1.04; letter-spacing: -.05em; }
.hero p { margin: 18px 0 0; max-width: 42ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-break { display: none; }
@media (min-width: 600px) { .hero-break { display: initial; } }
#module-menu .module-card, #module-more .module-card {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-content: center;
  align-items: center;
  text-align: start;
  min-height: 76px;
  padding: 12px;
}
#module-menu .module-arrow, #module-more .module-arrow { display: none; }
#module-menu .icon, #module-more .icon { width: 31px; height: 32px; }
.next-card { position: relative; padding-inline-end: 46px; }
.next-arrow { position: absolute; top: 16px; right: 16px; color: #854431; font-size: 1.35rem; }
a.button-terra, button.button-terra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid var(--terra);
  border-radius: 10px;
  background: var(--terra);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
a.button-terra:hover, button.button-terra:hover { background: var(--terra-hover); border-color: var(--terra-hover); }
.role-actions a.button-terra { justify-content: flex-start; text-align: start; }
#more-title { padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  #module-menu, #module-more { grid-template-columns: minmax(0, 1fr); }
  #module-menu .module-card, #module-more .module-card { min-height: 58px; }
}

.callout { background: var(--sand); border-color: #e2d9cb; margin-block: 16px; }
.callout > :last-child { margin-bottom: 0; }
#module-menu .module-card { background: var(--sage-soft); }
#module-menu .module-card:hover { background: var(--sage); }
#template-list details[open], #rights-list details[open], #scenario-list details[open] {
  background: var(--sage-soft);
  border-color: #a9bda9;
}
.checklist-row { padding-inline: 10px; }
.checklist-row:nth-child(odd) { background: var(--sage-soft); }
@media (max-width: 520px) {
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.7rem); }
  .role-guide { margin-bottom: 0; }
  .pdf-actions .button-terra { min-width: 120px; }
}

.view h2, #rolvraag, #gesprek-moment { scroll-margin-block-start: 16px; }

.conversation-choices label, .agreement-card label {
  display: block;
  font-weight: 700;
}
.conversation-choices select, .agreement-card textarea {
  min-height: 44px;
  min-width: 0;
  box-sizing: border-box;
}
.agreement-card textarea { resize: vertical; }
.agreement-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agreement-actions button { min-height: 44px; cursor: pointer; font: inherit; }
#afspraak-status:empty { margin: 0; }
#afspraak-afdruk { display: none; }
body.print-agreement { background: white; padding: 16px; }
.afdruk-acties { max-width: 180mm; margin: 0 auto 16px; }
.afdruk-acties button { font: inherit; cursor: pointer; }
body.print-agreement #afspraak-afdruk {
  display: block;
  margin: 0 auto;
  max-width: 180mm;
  color: var(--ink);
  font: 10.5pt/1.35 system-ui, sans-serif;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
  overflow-wrap: anywhere;
}
#afspraak-afdruk header {
  border-top: 3pt solid var(--terra);
  background: var(--sage);
  padding: 3mm 5mm;
  break-inside: avoid;
}
#afspraak-afdruk h1 { margin: 0; font-size: 24pt; }
#afspraak-afdruk header p { margin: 2mm 0 0; }
#afspraak-afdruk h2 { margin: 3.5mm 0 1.5mm; font-size: 14pt; color: var(--terra); }
#afspraak-afdruk h3 { margin: 0 0 1mm; font-size: 11pt; }
#afspraak-afdruk p { margin: 0; }
#afspraak-afdruk ol { margin: 2mm 0 0; padding-inline-start: 5mm; }
#afspraak-afdruk li { margin-bottom: 1mm; }
.afdruk-voorbereiding { break-inside: avoid; }
.afdruk-antwoord {
  margin-bottom: 2mm;
  padding: 2mm 3mm;
  border: 0.6pt solid #aebfb0;
  border-left: 2pt solid var(--terra);
  background: var(--sage-soft);
}
.afdruk-antwoord h3 { break-after: avoid; }
.afdruk-antwoord p { white-space: pre-wrap; }
.afdruk-invulregel { min-height: 5mm; border-bottom: 0.6pt solid #aebfb0; }
@media print {
  @page { margin: 12mm; }
  body.print-agreement { margin: 0; padding: 0; }
  .afdruk-acties { display: none !important; }
}

.route-guide-link {
  display: grid;
  gap: 1px;
  margin-block-start: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--sage-soft);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
.route-guide-link strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin-block: 4px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--terra);
  color: var(--white);
}
.route-guide-link:hover strong,
.route-guide-link:active strong { background: var(--terra-hover); }
.route-guide-link > span { font-size: .84rem; }
.route-guide-new { color: var(--muted); }

.return-link {
  position: sticky;
  inset-block-start: 8px;
  z-index: 2;
  padding-inline: 12px;
  border: 1px solid var(--surface-border);
  border-radius: 9px;
  background: var(--white);
}
.views > .view:not(.dashboard) h2,
.views > .view details,
.views .timeline .step,
#gesprek-partner {
  scroll-margin-block-start: 66px;
}

@media (min-width: 760px) {
  .conversation-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }
  .conversation-choices label:last-child { grid-column: 1 / -1; }
}

#werkgever-gesprek-hint { margin-block-start: 12px; }
#werkgever-gesprek-hint a { display: inline; margin: 0; }

.share-whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block-start: 14px;
  padding-inline: 12px;
  border: 1px solid var(--surface-border);
  border-radius: 9px;
  background: var(--white);
  font-weight: 650;
}
.share-whatsapp:hover { background: var(--sage-soft); }

.next-detail { display: grid; gap: 5px; margin-block-start: 10px; font-size: .9rem; }
.next-link-text { margin-block-start: 8px; text-decoration: underline; font-weight: 650; }

.first-contact-choice { margin-block: 14px; padding: 8px 12px; background: var(--sage-soft); border-radius: 8px; }
.first-contact-choice p { margin-block: 4px; font-weight: 650; }
.first-contact-choice a { display: flex; align-items: center; min-height: 44px; }

/* Visual hierarchy for the interactive views. */
.hero {
  margin-block: clamp(14px, 3vw, 32px) clamp(20px, 4vw, 38px);
  padding: clamp(20px, 4vw, 44px);
}
.hero h1 { font-size: clamp(1.95rem, 5vw, 3.65rem); }
.hero p { margin-block-start: 10px; }
.view > h2 { letter-spacing: -.025em; }
.view > h2 + p { color: var(--muted); }
.role[aria-pressed="true"] { border-inline-start: 4px solid var(--active); }
.module-heading { margin-block: 22px 0; }
#module-menu, #module-more { margin-block-start: 9px; }
.next-card { border-inline-start: 4px solid var(--terra); background: var(--sage-soft); }
.next-label { font-weight: 650; }
.next-card .next-link-text {
  justify-self: start;
  border-radius: 9px;
  padding: 8px 13px;
  min-height: 44px;
  align-content: center;
  background: var(--terra);
  color: var(--white);
  text-decoration: none;
}
.next-card:hover .next-link-text { background: var(--terra-hover); }
#next-conversation.button-terra {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
  text-decoration: underline;
}
#next-conversation.button-terra:hover { background: var(--sage-soft); border-color: var(--active); }

.step .tag.milestone-status, .step .tag.milestone-date {
  width: fit-content;
  max-width: 100%;
  border-radius: 7px;
  padding: 2px 8px;
  font-weight: 700;
}
.step .tag.milestone-status { background: var(--soft-terra); color: var(--terra); }
.step .tag.milestone-date { background: var(--sage-soft); color: var(--ink); margin-block-start: 8px; }
.step label, .checklist-row label {
  min-height: 44px;
  padding-inline: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.step label:has(input:checked), .checklist-row label:has(input:checked) { background: var(--sage); }
.first-contact-choice > summary.button-terra {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--terra);
  color: var(--white);
}
.first-contact-choice > summary.button-terra:hover { background: var(--terra-hover); }
.first-contact-choice details { margin-block-start: 6px; padding: 3px 9px; }
.first-contact-choice > p { margin-block-start: 10px; }

.conversation-choices, #kennis input[type="search"] {
  border-radius: 12px;
  background: var(--sage-soft);
}
.conversation-choices { padding: 14px; margin-block: 16px 10px; }
.conversation-choices select, .agreement-card textarea { font-size: 1rem; }
.conversation-choices label:last-child select { margin-block-end: 0; }
.conversation-card { border-inline-start: 4px solid var(--active); }
#articles details[open], #law-list details[open],
#practice-list details[open] { background: var(--sage-soft); }
#rechten details, #documenten details, #kennis details, #wetgeving details, #wat-als details {
  padding-block: 6px;
}
#checklist-progress {
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--sage-soft);
  font-weight: 650;
}
.recovery-item { border-inline-start: 3px solid var(--line); }
@media (max-width: 520px) {
  .hero { padding: 20px 17px; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.45rem); }
  .agreement-actions > button { flex: 1 1 130px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.phase-facts .phase-required,
.phase-facts .phase-tip {
  padding: 8px 10px;
  border-radius: 8px;
}
.phase-facts .phase-required { background: var(--soft-terra); }
.phase-facts .phase-required dt { color: var(--terra); }
.phase-facts .phase-tip { background: var(--sage-soft); }

.situation-picker { margin-block: 22px; }
.situation-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-block-start: 9px;
}
.situation-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--surface-border);
  border-radius: 9px;
  background: var(--white);
  font-weight: 650;
}
.situation-links a:hover { background: var(--sage-soft); border-color: var(--active); }
@media (max-width: 520px) {
  .situation-links { grid-template-columns: minmax(0, 1fr); }
}

.dashboard-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; margin-block-end: 14px; }
.dashboard-status-item { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--surface-border); border-radius: 9px; }
.dashboard-status-item span { color: var(--muted); font-size: .9rem; }
.dashboard-status-item a { display: flex; align-items: center; min-height: 44px; width: fit-content; }

#eerste-ziektedag { scroll-margin-block-start: 66px; }
#date-purpose { margin-block: 4px 8px; color: var(--muted); }

/* Keep the keyboard sequence aligned with the mobile reading order. */
@media (min-width: 761px) {
  .workspace { grid-template-rows: auto 1fr; row-gap: 16px; }
  .workspace > .sidebar { grid-column: 1; grid-row: 1; }
  .workspace > .views { grid-column: 2; grid-row: 1 / span 2; }
  .workspace > .quick { grid-column: 1; grid-row: 2; margin-top: 0; }
}
.skip { z-index: 4; }
.views :is(a, button, input, select, textarea, summary):focus-visible {
  scroll-margin-block-start: 68px;
  scroll-margin-block-end: 8px;
}
.conversation-choices select, .agreement-card textarea, .controls > * {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.agreement-actions button, .controls button { white-space: normal; overflow-wrap: anywhere; }

.first-contact-privacy { margin-block: 12px; background: var(--sage-soft); }
.first-contact-privacy a { display: inline-flex; align-items: center; min-height: 44px; }

.timeline { grid-template-columns: minmax(0, 1fr); }
.timeline .step { display: block; padding: 0; }
.timeline .phase-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px var(--card-padding);
  border-radius: 12px;
  list-style: none;
}
.phase-summary::-webkit-details-marker { display: none; }
.timeline .step[open] > .phase-summary { border-radius: 12px 12px 0 0; background: var(--sage-soft); }
.phase-summary:hover { background: var(--sage-soft); }
.phase-summary-text { display: grid; gap: 2px; min-width: 0; }
.phase-summary-text .tag { margin: 0; }
.phase-title { font-size: 1.08rem; line-height: 1.3; }
.phase-chevron { flex: 0 0 .62rem; height: .62rem; border: solid var(--terra); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.step[open] > .phase-summary .phase-chevron { transform: rotate(225deg); }
.phase-body { padding: 0 var(--card-padding) var(--card-padding); }

.view-disclosure { margin-block: 12px; padding: 4px 12px; background: var(--sage-soft); }
.view-disclosure > summary, .role-guide > summary, .agreement-card > summary { color: var(--ink); }
.view-disclosure #more-title { padding: 0; border-top: 0; }
.view-disclosure .dashboard-status { margin-block: 10px; }
.view-disclosure .dashboard-status-item { background: var(--white); }
.role-guide:not([open]) { padding-block: 2px; margin-block: 8px; }
.agreement-card { padding-block: 4px; }
.agreement-card[open] { padding-block-end: var(--card-padding); }
.view > h2 + p { max-inline-size: 58ch; }
#documenten > h3 { margin-block-start: 18px; }
#herstel .recovery-item, #checklist .checklist-row { border-radius: 10px; }
#checklist .checklist-row + .checklist-row { margin-block-start: 4px; }
#kennis #search { min-height: 48px; }
.timeline-extra { margin-block-end: 16px; }
@media (max-width: 520px) {
  .role { min-height: 48px; }
  .role-grid .role-label small { display: none; }
  .route-guide-link { gap: 2px; padding: 8px 10px; }
  .route-guide-link > span:first-child { display: none; }
}
.dashboard .role-actions { grid-template-columns: minmax(0, 1fr); gap: 0; }
.dashboard .role-actions a {
  justify-content: flex-start;
  padding-inline: 5px;
  min-height: 44px;
  background: transparent;
  border-color: transparent;
  font-weight: 650;
}

/* Beumer Coaching surfaces and visual hierarchy. */
:root {
  --ink: #273c31;
  --terra: #874733;
  --paper: #faf8f3;
  --sand: #f4ede3;
  --sage: #e5ede4;
  --sage-soft: #eff4ed;
  --card-padding: clamp(15px, 2.8vw, 23px);
}
.site-header { border-top: 3px solid var(--terra); }
.hero {
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  border-inline-start: 4px solid var(--terra);
  background: var(--sage);
}
.hero h1 { max-inline-size: 19ch; text-wrap: initial; letter-spacing: -.042em; }
.hero p { max-inline-size: 50ch; }
@media (min-width: 761px) {
  .hero { padding-inline: clamp(28px, 5vw, 58px); }
  .workspace { column-gap: clamp(20px, 3vw, 36px); }
}
.role-grid { gap: 7px; }
.role[aria-pressed="true"] { border-color: var(--active); }
.role .icon { width: 31px; height: 31px; border-radius: 8px; background: var(--sage-soft); }
.role[aria-pressed="true"] .icon { color: var(--white); background: var(--active); }
.dashboard, .views > .view:not(.dashboard) {
  box-shadow: 0 3px 12px rgb(39 60 49 / 5%);
}
.welcome-copy { margin-block: 6px 16px; }
.next-card { border: 1px solid var(--line); border-inline-start: 4px solid var(--terra); }
.next-card .next-label { color: var(--terra); }
.next-detail { border-top: 1px solid var(--line); padding-block-start: 9px; }
.next-card .next-link-text { margin-block-start: 10px; }
.next-card .next-arrow { display: none; }
.next-card { padding-inline-end: var(--card-padding); }
.situation-links a { text-decoration: none; }
.situation-links a:hover { text-decoration: underline; }
.situation-links a span { color: var(--terra); }
#module-menu .module-card, #module-more .module-card {
  grid-template-columns: auto minmax(0,1fr) auto;
}
#module-menu .module-arrow, #module-more .module-arrow { display: inline; }
.module-copy small { font-size: .83rem; }
.view-disclosure { background: var(--white); }
.view-disclosure[open], .agreement-card[open] { background: var(--sage-soft); }
.phase-summary-text .phase-title { font-weight: 750; }
.timeline .step.next > .phase-summary { background: var(--sage-soft); }
.conversation-card { margin-block-start: 12px; }
.prompts li::marker { color: var(--terra); }
#kennis input[type="search"] { background: var(--white); }
#herstel .recovery-item { border-inline-start-color: var(--active); }
.quick { border: 1px solid var(--surface-border); }
@media (max-width: 520px) {
  .site-header-inner { min-height: 60px; }
  .hero { border-radius: 15px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.45rem); }
  .role .icon { width: 28px; height: 28px; }
  .role .icon svg { width: 19px; height: 19px; }
  .next-card .next-link-text { width: 100%; text-align: center; }
}

@font-face {
  font-family: Inter;
  src: url('./inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
body { font-family: Inter, system-ui, sans-serif; font-size: 1rem; line-height: 1.6; }
.hero h1 { line-height: 1.12; }
.role small, .module-copy small, .route-guide-link > span, .next-label,
.site-link, .source, .quick li a, .muted, .step .tag, footer { font-size: .875rem; }
.next-detail, .dashboard-status-item span, .step label { font-size: .9375rem; }
.view a, .site-header a, .return-link { overflow-wrap: anywhere; }
.site-header-inner { flex-wrap: wrap; }
.role-label, .phase-summary-text, .module-copy { overflow-wrap: anywhere; }
.role-guide-links a, .resource-list a, footer a,
.view > p > a, .view-disclosure > a, .conversation-card > p > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.conversation-choices select { min-height: 44px; }
#start { width: min(100%, 13rem); }
.view .callout a.button-terra { max-inline-size: 100%; }


.small-employer-start { display: grid; gap: .2rem; min-height: 44px; padding: .75rem .85rem; margin-bottom: .65rem; border: 1px solid #ddc9bb; border-left: 4px solid #874733; border-radius: .65rem; background: #f1e7df; color: #273c31; text-decoration: none; line-height: 1.35 }
.small-employer-start span { font-size: .92rem; color: #435749 }
.small-employer-start:hover { background: #ecdcd0 }


/* Vandaag gives the current task its own quiet screen. */
.today-nav {
  display: flex;
  justify-content: center;
  gap: .35rem;
  padding: .5rem;
  border-bottom: 1px solid #d5ded2;
  background: #fffdf8;
}
.today-nav[hidden] { display: none; }
.today-nav a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: .4rem .8rem;
  border-radius: .65rem;
  color: #273c31;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.today-nav a[aria-current] { background: #e5ede4; }
.today-nav a:hover { background: #eef2ea; }
body:is([data-view="vandaag"], [data-first-conversation]) main > :is(.hero, .notice, footer),
body:is([data-view="vandaag"], [data-first-conversation]) .workspace > :is(.sidebar, .quick) { display: none; }
body:is([data-view="vandaag"], [data-first-conversation]) .workspace {
  display: block;
  max-width: 39rem;
  margin: clamp(24px, 6vw, 56px) auto 0;
}
.views > #vandaag {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.today-view .today-context {
  margin: 0 0 .6rem;
  color: #435749;
  font-size: .95rem;
}
.today-view h2 {
  max-width: 17ch;
  margin: 0 0 1.2rem;
  color: #273c31;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.09;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.today-task {
  padding: clamp(1.05rem, 4vw, 1.6rem);
  border: 1px solid #cbd9c9;
  border-radius: 1rem;
  background: #e5ede4;
  color: #273c31;
}
.today-task h3 { margin: 0 0 .5rem; font-size: clamp(1.3rem, 5vw, 1.85rem); line-height: 1.2; }
.today-task p { margin: 0 0 1rem; text-wrap: pretty; }
.today-task .today-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  min-height: 48px;
  padding: .65rem .85rem;
  border-radius: .65rem;
  background: #874733;
  color: #fffdf8;
  text-decoration: none;
}
.today-task .today-primary:hover { background: #733b2b; }
.today-switch { display: inline-flex; align-items: center; min-height: 44px; margin-top: .75rem; }
@media (max-width: 760px) {
  .today-nav {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #d5ded2;
    border-bottom: 0;
    padding: .45rem max(.5rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left));
  }
  .today-nav a { padding-inline: .25rem; font-size: .9rem; }
  body:has(.today-nav:not([hidden])) > main { padding-bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(5.2rem + env(safe-area-inset-bottom)); }
}
@media print {
  .today-nav { display: none !important; }
}

#route-context { margin-block: 0 0.75rem; }
.route-next {
  background: var(--sage-soft);
  border-inline-start: 4px solid var(--terra);
}
.route-next h3 { margin-block: 0; }
.route-next p { margin-block: 0.5rem 1rem; }
.route-next .button-terra { min-block-size: 44px; }
.route-progress { display: grid; gap: 0.3rem; margin-block: 1rem; }
.route-progress p { margin: 0; font-weight: 700; }
.route-progress progress {
  inline-size: 100%;
  max-inline-size: 24rem;
  block-size: 0.65rem;
  accent-color: var(--terra);
}
.route-progress a { display: flex; align-items: center; min-block-size: 44px; justify-self: start; }
#eerste-ziektedag > summary { cursor: pointer; font-weight: 700; padding-block: 0.25rem; }
#eerste-ziektedag[open] > summary { margin-block-end: 0.75rem; }
.route-timeline-title { margin-block: 1.25rem 0.5rem; }
.phase-completion { font-weight: 700; }
@media (max-width: 600px) {
  .route-next .button-terra { inline-size: 100%; }
}


.help-topics { display: grid; gap: .6rem; padding: 0; list-style: none; }
.help-topics a {
  display: grid;
  gap: .2rem;
  padding: .8rem 1rem;
  border: 1px solid var(--surface-border);
  border-radius: .75rem;
  background: var(--sage-soft);
  color: inherit;
  text-decoration: none;
}
.help-topics a:hover strong, .help-topics a:focus-visible strong { text-decoration: underline; }
.help-topics span { font-size: .9rem; }
.help-resources summary, .help-return { min-block-size: 44px; }
.help-return { display: inline-flex; align-items: center; }
#gesprek-instellingen { margin-block: .75rem; }
#gesprek-instellingen .conversation-choices { margin-block: .65rem 0; }


body[data-view="rolvraag"] main > :is(.notice, footer),
body[data-view="rolvraag"] .workspace > :is(.views, .quick),
body[data-view="rolvraag"] .role-guide { display: none; }
body[data-view="rolvraag"] .workspace {
  display: block;
  max-width: 39rem;
  margin-inline: auto;
}


.today-situation { margin-block: 0 1rem; }
.today-situation summary { min-block-size: 44px; }
.situation-options { display: grid; gap: .5rem; padding-block-start: .5rem; }
.situation-options button { min-block-size: 44px; text-align: start; white-space: normal; }
.situation-options button[aria-pressed="true"] { background: var(--sage); border-color: var(--active); }


@media (max-width: 760px) {
  body:not([data-view="startscherm"], [data-view="rolvraag"]) main > .hero,
  body:not([data-view="startscherm"], [data-view="rolvraag"]) .workspace > :is(.sidebar, .quick) { display: none; }
  body:not([data-view="startscherm"], [data-view="rolvraag"], [data-view="vandaag"], [data-first-conversation]) .workspace {
    display: block;
    margin-block-start: 1rem;
  }
}
