/* Additions for /resources/bending-spoons-buys-mailchimp/ on top of miro-acquisition.css. */
.bar-label small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: var(--mv-text-sec); }
.bar-row.group-start { margin-top: 14px; }
.bar-fill.profit { background: var(--mv-blue); }
.bar-legend { display: flex; gap: 22px; margin-top: 14px; font-size: 14px; color: var(--mv-text-sec); }
.bar-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; background: var(--mv-dark-grey); }
.bar-legend i.profit { background: var(--mv-blue); }
.price-label small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--mv-text-sec); }
/* Price line since founding (#price). Plot box is percent-positioned so the
   labels track the SVG at any width. */
.mc-line { padding: 46px 0 6px; }
.mc-plot { position: relative; height: 300px; margin: 0 150px 0 18px; }
.mc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mc-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--mv-dark-grey); border: 2px solid var(--mv-card); }
.mc-dot.hero { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--mv-blue); }
.mc-dot.founded { background: var(--mv-text-muted); }
.mc-founded { position: absolute; bottom: 14px; transform: translateX(-4px); font-size: 11.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--mv-text-muted); white-space: nowrap; }
.mc-gap { position: absolute; transform: translate(-50%, -50%); font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--mv-text-muted); }
.mc-val { position: absolute; transform: translate(-50%, calc(-100% - 12px)); font-size: 24px; font-weight: 800; color: var(--mv-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-val.hero { color: var(--mv-blue); }
.mc-detail { position: absolute; transform: translate(16px, -50%); line-height: 1.35; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: var(--mv-text-muted); }
.mc-detail b { display: block; font-size: 13.5px; font-weight: 800; color: var(--mv-text); }
.mc-axis { position: relative; height: 22px; margin: 0 150px 0 18px; border-top: 1px solid var(--mv-border); }
.mc-axis span { position: absolute; top: 7px; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--mv-text-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .mc-plot, .mc-axis { margin: 0 112px 0 10px; }
  .mc-plot { height: 230px; }
  .mc-val { font-size: 19px; }
  .mc-detail { font-size: 11px; }
  .mc-detail b { font-size: 12px; }
  .mc-gap { font-size: 11.5px; }
}
/* Hero point: value and detail sit right of the node, clear of the falling line. */
.mc-val.hero { transform: translate(16px, calc(-100% + 2px)); }
.mc-detail.hero { transform: translate(16px, 6px); }
.mc-founded { bottom: auto; top: 100%; transform: translate(calc(-100% - 12px), -50%); }
@media (max-width: 640px) {
  .mc-founded { display: none; }
  .mc-detail { white-space: normal; width: 96px; }
  .mc-detail:not(.hero) { transform: translate(calc(-100% - 10px), calc(-100% + 6px)); text-align: right; }
  .mc-val:not(.hero) { transform: translate(6px, calc(-100% - 8px)); }
  .mc-val.hero { transform: translate(12px, calc(-100% + 2px)); }
  .mc-detail.hero { transform: translate(12px, 6px); }
}
/* Two-line revenue / segment income chart (#segment). */
.mc-two .mc-plot, .mc-two .mc-axis { margin: 0 18px; }
.mc-two .mc-plot { height: 280px; }
.mc-dot.rev { background: var(--mv-dark-grey); }
.mc-dot.inc { background: var(--mv-blue); }
.mc-pt { position: absolute; transform: translate(-50%, calc(-100% - 10px)); font-size: 18px; font-weight: 800; color: var(--mv-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-pt.inc { color: var(--mv-blue); }
.mc-end { position: absolute; transform: translate(20px, -50%); line-height: 1.3; font-size: 13px; font-weight: 600; color: var(--mv-text-muted); max-width: 200px; }
.mc-end b { display: block; font-size: 22px; font-weight: 800; color: var(--mv-text); font-variant-numeric: tabular-nums; }
.mc-end i { display: block; font-style: normal; font-size: 14px; font-weight: 800; }
.mc-end.rev i { color: var(--mv-dark-grey); }
.mc-end.inc b, .mc-end.inc i { color: var(--mv-blue); }
@media (max-width: 640px) {
  .mc-two .mc-plot, .mc-two .mc-axis { margin: 0 10px; }
  .mc-two .mc-plot { height: 230px; }
  .mc-pt { font-size: 14px; }
  .mc-end { transform: translate(12px, -50%); max-width: 96px; font-size: 11px; }
  .mc-end b { font-size: 16px; }
  .mc-end i { font-size: 11.5px; }
}
/* Preview/OG crop cuts the right edge: give the hero label room. */
.cx-preview .mc-line:not(.mc-two) .mc-plot, .cx-preview .mc-line:not(.mc-two) .mc-axis { margin-right: 260px; }
/* Logo rows in the comparison bars; details on hover / focus (tap). */
.bar-logo { display: block; }
.bar-row.has-tip { position: relative; cursor: default; outline: none; }
.bar-tip { display: none; position: absolute; z-index: 5; left: 260px; top: 50%; transform: translateY(-50%); padding: 8px 11px; border-radius: 8px; background: var(--mv-text); color: var(--mv-bg); font-size: 13px; font-weight: 500; line-height: 1.45; white-space: nowrap; pointer-events: none; }
.bar-tip b { display: block; font-size: 14px; font-weight: 800; }
.bar-row.has-tip:hover .bar-tip, .bar-row.has-tip:focus .bar-tip { display: block; }
.bar-row.has-tip:hover .bar-track, .bar-row.has-tip:focus .bar-track { filter: brightness(0.96); }
.cx-exporting .bar-tip { display: none !important; }
@media (max-width: 640px) { .bar-tip { left: 0; top: calc(100% + 4px); transform: none; white-space: normal; } }
@media (max-width: 640px) { .mc-pt.minor { display: none; } }
@media (max-width: 640px) {
  .mc-two .mc-plot, .mc-two .mc-axis { margin-left: 30px; }
  .mc-two .mc-gap { display: none; }
  .bar-row.has-tip { grid-template-columns: 78px minmax(0, 1fr) 64px; gap: 8px; }
  .bar-row.has-tip .bar-label { grid-column: auto; }
  .bar-row.has-tip .bar-logo { max-width: 76px; height: auto; }
}
@media (max-width: 640px) { .mc-two .mc-pt.first { transform: translate(-40%, 10px); } }
@media (max-width: 640px) { .mc-two .mc-axis span.odd { display: none; } }
