/* Pulse (docs/features/pulse.md): the page's own rules, beside team.css. */
.pulse-main { gap: 14px; }
.pulse-head h1 { font-family: var(--display); font-size: 26px; font-weight: 400; margin: 0; }
.pulse { display: grid; gap: 14px; }

/* Leads per week. One colour per source; "Not said" dashed so it never reads as one of them. */
.pulse-toggle { display: flex; gap: 6px; margin: 8px 0 4px; }
.pulse-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bone); background: transparent; color: var(--muted); font: inherit; font-size: 13px; }
.pulse-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.pulse-chip:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.pulse-chart { max-width: 560px; }
.pulse-svg { display: block; width: 100%; height: auto; }
.pulse-grid { stroke: var(--line); }
.pulse-axis { font-size: 10px; fill: var(--muted); }
.pulse-so-far { font-size: 10px; fill: var(--gold-deep); }
.pulse-path-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pulse-dot.so-far { fill: var(--paper); stroke-width: 2; }
.pulse-line-all { --c: var(--gold); }
.pulse-line-ad { --c: var(--blue); }
.pulse-line-google { --c: var(--green); }
.pulse-line-yard_signs { --c: #E0A458; }
.pulse-line-other { --c: #C38BE0; }
.pulse-line-reached_out { --c: #E07A9B; }
.pulse-line-not_said { --c: var(--muted); }
.pulse-path-line { stroke: var(--c); }
.pulse-path-line.pulse-line-not_said { stroke-dasharray: 5 4; }
.pulse-dot { fill: var(--c); stroke: var(--c); }
.pulse-legend { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 12px; color: var(--muted); }
.pulse-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pulse-key { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; background: var(--c); }
.pulse-line, .pulse-note { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pulse-note { font-size: 12px; }

/* This week's path: four boxes in a row, arrows between them. */
.pulse-path { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pulse-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; background: var(--cream); min-width: 0; }
.pulse-step + .pulse-step::before { content: '›'; position: absolute; left: -11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.pulse-step b { font-size: 22px; font-variant-numeric: tabular-nums; }
.pulse-step span { font-size: 12px; color: var(--muted); }
.pulse-step i { font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; }
.pulse-step .up { color: var(--green); }
.pulse-step .down { color: var(--danger); }
.pulse-step .same { color: var(--muted); }

/* Waiting on us, Lost. */
.pulse-red { color: var(--danger); font-weight: 600; }
.pulse-rows { list-style: none; margin: 6px 0 0; padding: 0; }
.pulse-rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--line); font-size: 15px; }
.pulse-rows li:first-child { border-top: 0; }
.pulse-rows li > :last-child { flex: none; font-variant-numeric: tabular-nums; }
.pulse-rows a { color: var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.pulse-rows a:hover { text-decoration: underline; }
.pulse-rows.grey, .pulse-rows .muted { color: var(--muted); }
.pulse-rows.grey a, .pulse-rows .muted a { color: var(--muted); }
.pulse-sub { margin: 12px 0 0; font-size: 12px; font-weight: 500; color: var(--muted); }
/* Quote form (docs/features/quote-form-steps.md): a week's three counts wrap under large text rather than run off the side. */
#pulse-form-weeks li > :last-child { flex: 0 1 auto; text-align: right; }
/* Each person who stopped: where they stopped on one line, the day, phone or computer and the page under it. */
.pulse-rows li.pulse-person { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 8px 0; }
.pulse-person-what { font-weight: 500; overflow-wrap: anywhere; }
.pulse-rows li.pulse-person > .pulse-person-who { flex: 0 1 auto; font-size: 13px; font-variant-numeric: normal; overflow-wrap: anywhere; }
