/* Solutions case studies: shared Insights typography, with dated article rows. */
.solutions-projects { padding-top: 24px; }
.solution-articles { display: grid; gap: 22px; }
.solution-story {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  padding: 34px;
}
.solution-story .post-date { color: var(--ink-soft); }
.solution-category {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
}
.solution-story h3 { font-size: 1.65rem; margin-bottom: 12px; }
.solution-story-body p { margin-bottom: 0; max-width: 65ch; }
.solutions-archive-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.solutions-archive-link p { margin: 0; }
.solutions-archive-link a { font-weight: 600; }
.solution-story:focus-visible,
.solutions-archive-link a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

/* Case-study visuals use schematic or explicitly invented values only. */
.pricing-visual {
  --chart-blue: #365ba1;
  --chart-teal: #447f84;
  --chart-amber: #ae732c;
  --chart-plum: #915579;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  text-align: left;
}
.article .pricing-visual .visual-title { margin: 0 0 10px; font-size: 1.3rem; }
.article .pricing-visual .visual-kicker {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article .pricing-visual .visual-note { font-size: 0.78rem; line-height: 1.55; margin-bottom: 24px; color: var(--ink-soft); }
.article .case-study-disclosure { color: var(--ink-soft); font-size: 0.86rem; }

/* Four phases, in reading order, with arrows between each phase. */
.article .foundation-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.article .foundation-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fafaf9;
}
.foundation-flow li:last-child { background: #f2f5fa; border-color: #c9d4e4; }
.foundation-flow li:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -22px;
  top: 50%;
  width: 21px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1;
  font-size: 18px;
}
.foundation-number { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-soft); }
.foundation-flow svg { width: 30px; height: 30px; fill: none; stroke: #365ba1; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.foundation-flow strong { font-size: 0.82rem; line-height: 1.45; font-weight: 600; color: var(--ink); }

/* Numeric axes remain HTML text so they stay legible on narrow screens. */
.article .chart-axis-heading { margin: 0 0 10px; font-size: 0.78rem; font-weight: 500; color: var(--ink); }
.elasticity-plot { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; }
.elasticity-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 256px;
  padding: 8px 0;
  text-align: right;
  font-size: 0.7rem;
  color: var(--ink-soft);
}
.elasticity-y-axis span { line-height: 0; }
.elasticity-chart { width: 100%; height: 256px; display: block; overflow: visible; }
.elasticity-chart path, .stepping-overlay-chart path { vector-effect: non-scaling-stroke; }
.chart-grid { fill: none; stroke: #e8ebef; stroke-width: 1; }
.elasticity-guide { fill: none; stroke: #9da9ba; stroke-width: 1; stroke-dasharray: 4 4; }
.event-a { --event-color: var(--chart-blue); }
.event-b { --event-color: var(--chart-teal); }
.event-c { --event-color: var(--chart-amber); }
.event-d { --event-color: var(--chart-plum); }
.elasticity-line { fill: none; stroke: var(--event-color); stroke-width: 2.5; stroke-linecap: round; }
.elasticity-point { fill: none; stroke: var(--event-color); stroke-width: 8; stroke-linecap: round; }
.elasticity-x-axis {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr) 0;
  margin: 0 1.25%;
  font-size: 0.7rem;
  color: var(--ink-soft);
}
.elasticity-x-axis span { white-space: nowrap; width: max-content; transform: translateX(-50%); }
.article .chart-x-heading { margin: 12px 0 24px 50px; text-align: center; font-size: 0.78rem; font-weight: 500; color: var(--ink); }
.article .elasticity-key-heading { margin-bottom: 12px; font-size: 0.78rem; }
.elasticity-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.elasticity-key > div { display: flex; flex-direction: column; gap: 5px; padding-top: 10px; border-top: 3px solid var(--event-color); }
.elasticity-key .event-label { color: var(--event-color); font-size: 0.78rem; font-weight: 600; }
.elasticity-key strong { font-size: 1.45rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.elasticity-key span:last-child { color: var(--ink-soft); font-size: 0.69rem; line-height: 1.4; }

/* Overlay: independent, qualitative vertical scales on a shared booking timeline. */
.overlay-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; font-size: 0.76rem; color: var(--ink-soft); }
.overlay-legend span { display: inline-flex; align-items: center; gap: 8px; }
.price-key::before { content: ""; width: 22px; border-top: 3px solid #365ba1; }
.demand-key::before { content: ""; width: 22px; border-top: 2px dashed #ae732c; }
.stepping-overlay-chart { width: 100%; height: 240px; display: block; }
.stepping-boundaries { fill: none; stroke: #e8ebef; stroke-width: 1; stroke-dasharray: 2 5; }
.stepping-price { fill: none; stroke: #365ba1; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.stepping-demand-area { fill: #f4ead8; opacity: 0.8; }
.stepping-demand { fill: none; stroke: #ae732c; stroke-width: 2; stroke-dasharray: 5 5; }
.stepping-time-axis { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--ink-soft); font-size: 0.74rem; }

@media (max-width: 700px) {
  .solution-story { grid-template-columns: 1fr; gap: 18px; padding: 26px; }
  .solution-story h3 { font-size: 1.4rem; }
  .solution-story .post-date { margin-bottom: 5px; }
}
@media (max-width: 560px) {
  .pricing-visual { padding: 20px; }
  .article .foundation-flow { grid-template-columns: 1fr; }
  .article .foundation-flow li { display: grid; grid-template-columns: 24px 30px minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 14px; }
  .foundation-flow li:not(:last-child)::after { content: "\2193"; top: auto; bottom: -22px; right: auto; left: 50%; transform: translateX(-50%); height: 21px; }
  .elasticity-key { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .elasticity-plot { grid-template-columns: 36px minmax(0, 1fr); }
  .article .chart-x-heading { margin-left: 44px; }
}
