/* Recorded project traffic, shared by services and case studies. */
.visit-chart, .visit-plot {
  --visit-ink: #241b35;
  --visit-accent: #7042c1;
  --visit-muted: #665f70;
  --visit-line: #e7e2ec;
  color: var(--visit-ink);
  font-variant-numeric: tabular-nums;
}
.visit-chart {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.4vw, 34px);
  background: #fff;
  border: 1px solid var(--visit-line);
  border-radius: 18px;
  container-type: inline-size;
}
.visit-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
}
.visit-heading strong {
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.024em;
}
.visit-heading > span, .visit-note {
  color: var(--visit-muted);
  font-size: 14px;
  line-height: 1.45;
}
.visit-plot {
  padding: 37px 3px 32px 57px;
}
.visit-field {
  position: relative;
  height: clamp(145px, 16vw, 244px);
}
.visit-rule {
  position: absolute;
  top: var(--y);
  inset-inline: 0;
  border-top: 1px solid var(--visit-line);
}
.visit-rule > span {
  position: absolute;
  inset-inline-end: calc(100% + 9px);
  transform: translateY(-50%);
  white-space: nowrap;
}
.visit-month, .visit-rule > span {
  font-size: 13px;
  line-height: 1.2;
  color: var(--visit-muted);
}
.visit-field svg.visit-lines {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.visit-lines polyline {
  fill: none;
  stroke: var(--visit-accent);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.visit-dot, .visit-month {
  position: absolute;
  left: var(--x);
}
.visit-dot { top: var(--y); }
.visit-dot::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--visit-accent);
}
.visit-first::before, .visit-last::before { width: 8px; height: 8px; }
.visit-dot b {
  display: block;
  position: absolute;
  bottom: 9px;
  width: max-content;
  transform: translateX(-50%);
  color: var(--visit-accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}
.visit-month {
  top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
}
.visit-first b, .visit-month.visit-first { transform: none; }
.visit-last b, .visit-month.visit-last { transform: translateX(-100%); }
.visit-comparison {
  width: min(15%, 85px);
  height: calc(100% - var(--y));
  transform: translateX(-50%);
  border-radius: 5px 5px 0 0;
  background: var(--visit-accent);
}
.visit-comparison::before { content: none; }
.visit-comparison b { left: 50%; bottom: calc(100% + 9px); }
.visit-chart .visit-note { margin: 6px 0 16px; max-width: 74ch; }
.visit-data { border-top: 1px solid var(--visit-line); }
.visit-data summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 11px 0 3px;
  color: var(--visit-accent);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.visit-data summary::-webkit-details-marker { display: none; }
.visit-data summary span { font-size: 22px; line-height: 1; }
.visit-data[open] summary span { transform: rotate(45deg); }
.visit-data :is(summary, [tabindex]):focus-visible { outline: 2px solid var(--visit-accent); outline-offset: 2px; }
.visit-data > div { max-height: min(60vh, 420px); margin-top: 10px; overflow: auto; }
.visit-data table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}
.visit-data :is(th, td) { padding: 8px 6px; border-bottom: 1px solid var(--visit-line); text-align: left; }
.visit-data :is(td, th):last-child { text-align: right; }
.visit-data tbody th { font-weight: 400; }
.visit-data thead th { position: sticky; top: 0; background: #fff; font-weight: 600; }
.visit-spark { padding: 6px 4px 9px; }
.visit-spark .visit-field { height: clamp(54px, 6vw, 78px); }
.visit-spark .visit-lines polyline { stroke-width: 2px; }
.visit-spark .visit-dot::before { width: 4px; height: 4px; }
.visit-spark .visit-last::before { width: 6px; height: 6px; }
@container (max-width: 580px) {
  .visit-heading { flex-direction: column; gap: 4px; }
  .visit-plot { padding-left: 48px; }
  .visit-field { height: clamp(132px, 34cqi, 180px); }
  .visit-month, .visit-rule > span { font-size: 12px; }
}
@container (max-width: 335px) {
  .visit-chart .visit-plot { padding-left: 37px; }
  .visit-rule > span { inset-inline-end: calc(100% + 5px); font-size: 11px; }
  .visit-dot b { font-size: 13px; }
  .visit-month.visit-optional-month { display: none; }
}
@media print {
  .visit-chart { break-inside: avoid; }
  .visit-chart, .visit-plot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
