/* Weekly progress on a project's Overview (app.js renderWeeklyProgressSections).
   One quiet column: bold week titles, small capital section labels, sage
   sources marked with an arrow, soft cards for changes, numbered next steps.
   Hairlines only between weeks and between next steps. */
.wp-page {
  --wp-ink: #202824; --wp-muted: #636b66; --wp-label: #636d66; --wp-faint: #646b64; --wp-count: #636b67;
  --wp-line: #e6e9e5; --wp-rule: #eef0ed; --wp-soft: #f6f8f4; --wp-soft-line: #e7ece2; --wp-badge: #f1f4ee;
  --wp-source: #616d57; --wp-accent: #557147; --wp-green: #3b6b44; --wp-amber: #89652d; --wp-red: #a14d37; --wp-teal: #3f6a6c;
}
.wp-page > .card-title-row, .wp-page #projectWeeklyTimeline { max-width: 780px; margin-left: auto; margin-right: auto; }
.project-activity-card.wp-page > .card-title-row { padding: 4px 0 6px; border-bottom: 0; }
/* The app sizes every pane title with !important; this page's title is larger. */
body.project-detail-view .project-shell .project-detail-pane .wp-page > .card-title-row h3 { font-size: 24px !important; font-weight: 600 !important; letter-spacing: -.035em; color: var(--wp-ink) !important; }
.wp-page #projectWeeklyTimeline { color: var(--wp-ink); font-size: 15px; line-height: 1.65; display: flex; flex-direction: column; }

/* A week: a bold title with a disclosure triangle; a hairline under each. */
.wp-week { padding: 22px 0; border-bottom: 1px solid var(--wp-line); }
.wp-week:last-child { border-bottom: 0; }
.wp-week > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; cursor: pointer; list-style: none; }
.wp-week > summary::-webkit-details-marker { display: none; }
.wp-week > summary::before { content: ''; align-self: center; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #56664f; transition: transform .15s ease; }
.wp-week[open] > summary::before { transform: rotate(90deg); }
.wp-week-title { font-size: 20px; font-weight: 600; letter-spacing: -.035em; color: var(--wp-ink); }
.wp-week-meta { margin-left: auto; font-size: 12px; color: var(--wp-count); font-variant-numeric: tabular-nums; }
.wp-week-body { padding: 4px 0 0 20px; }

/* Progress, What changed, What's next: small capital labels with a count. */
.wp-section { padding-top: 22px; }
.wp-section h4 { display: flex; align-items: baseline; gap: 6px; margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--wp-label); }
.wp-count { font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--wp-count); font-variant-numeric: tabular-nums; }

/* Progress points: tag, text, then the meeting it came from. */
.wp-list { list-style: none; margin: 0; padding: 0; }
.wp-point { margin: 0; padding: 4px 0; color: var(--wp-ink); line-height: 1.65; overflow-wrap: anywhere; }
.wp-list.is-collapsed .wp-extra { display: none; }
.wp-text { color: var(--wp-ink); }
.wp-point .wp-tag { font-size: 13px; }
.wp-refs { display: inline; margin-left: 6px; }
.wp-tail { white-space: nowrap; }
.wp-quiet { margin: 4px 0 0; font-size: 14px; color: var(--wp-faint); }
.wp-muted { color: var(--wp-faint); }

/* Tags: the kind of point, in its color. */
.wp-tag { display: inline; margin-right: 8px; color: var(--wp-label); font-size: 12px; font-weight: 600; letter-spacing: .025em; white-space: nowrap; }
.wp-tag.is-completed, .wp-tag.is-resolved, .wp-tag.is-established, .wp-tag.is-explore,
.wp-tag.is-refined, .wp-tag.is-expanded, .wp-tag.is-added { color: var(--wp-green); }
.wp-tag.is-finding { color: var(--wp-teal); }
.wp-tag.is-blocker { color: var(--wp-red); }
.wp-tag.is-unresolved, .wp-tag.is-redirected, .wp-tag.is-replaced { color: var(--wp-amber); }

/* The meeting a point came from: an arrow and its date; it opens the passage. */
.wp-ref { display: inline-flex; align-items: center; gap: 3px; min-height: 0; padding: 0 3px; border: 0; border-radius: 4px; background: none; color: var(--wp-source); font: inherit; font-size: 12px; font-weight: 400; line-height: 1.6; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; vertical-align: baseline; }
.wp-ref::before { content: '↗'; font-size: 11px; }
.wp-ref:hover, .wp-ref:focus-visible { color: var(--wp-green); text-decoration: underline; text-underline-offset: 2px; }

/* What changed: one soft card per change. */
.wp-changes { display: grid; gap: 12px; margin-top: 4px; }
.wp-change { position: relative; padding: 16px 20px 18px; border: 1px solid var(--wp-soft-line); border-radius: 10px; background: var(--wp-soft); overflow-wrap: anywhere; }
/* The meeting's quote icon sits in the corner; Before is the first line. */
.wp-change-top { position: absolute; top: 12px; right: 14px; display: flex; align-items: center; gap: 12px; }
.wp-change p:first-of-type { margin-top: 0; padding-right: 28px; }
.wp-change-top .wp-tag { margin-right: 0; }
.wp-change-top .wp-refs { margin-left: 0; }
.wp-change p { margin: 8px 0 0; }
.wp-field { margin-right: 6px; font-weight: 600; }
.wp-before, .wp-why { font-size: 13px; line-height: 1.6; color: var(--wp-muted); }
.wp-after { font-size: 15px; color: var(--wp-ink); }
.wp-after .wp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* What's next: numbered steps with hairlines between. */
.wp-steps { list-style: none; margin: 0; padding: 0; }
.wp-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--wp-rule); color: var(--wp-ink); line-height: 1.65; }
.wp-step:first-child { padding-top: 6px; }
.wp-step:last-child { border-bottom: 0; }
.wp-num { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; background: var(--wp-badge); color: #64715a; font-size: 11px; font-variant-numeric: tabular-nums; }
.wp-step-body { min-width: 0; overflow-wrap: anywhere; }
.wp-step-body > .wp-tag { display: block; margin: 0 0 2px; }
.wp-step .wp-text { margin: 0; }
.wp-step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; }
.wp-step-meta:empty { display: none; }
.wp-meta { font-size: 12px; color: var(--wp-faint); }

.wp-state { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--wp-soft); font-size: 13px; color: var(--wp-label); }
.wp-state.is-failed { background: #fff7e8; color: #806531; }
.wp-link { min-height: 0; padding: 0; border: 0; background: none; color: var(--wp-accent); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.wp-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.wp-section > .wp-link { margin: 6px 0 0; padding: 4px 0; }
.wp-button { min-height: 38px; padding: 8px 14px; border: 1px solid #dfe5dc; border-radius: 7px; background: #fff; color: var(--wp-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.wp-button:hover { background: var(--wp-soft); }
.wp-button.is-small { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.wp-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid var(--wp-soft-line); border-radius: 10px; background: var(--wp-soft); }
.wp-empty p { margin: 0; font-size: 14px; color: var(--wp-faint); }

/* The passage behind a point, in the project dialog. */
.wp-evidence { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.wp-evidence p { margin: 0; font-size: 14px; }
.wp-evidence blockquote { margin: 0; padding: 12px 14px; border-left: 2px solid #a4b595; background: #f7f9f3; color: #202824; font-size: 15px; line-height: 1.7; }

.wp-page button:focus-visible, .wp-page summary:focus-visible, .wp-evidence button:focus-visible { outline: 2px solid var(--wp-accent); outline-offset: 3px; }

/* Phones: the week's dates go under its title; cards and steps get tighter. */
@media (max-width: 640px) {
  .wp-week { padding: 20px 0; }
  .wp-week-meta { flex-basis: 100%; margin-left: 20px; }
  .wp-week-body { padding-left: 0; }
  .wp-change { padding: 14px; }
  .wp-step { grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
}
