/* Shared calculator quality: result actions, source strip, embed, card soft-gate, print. */

.vm-result-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
}
.vm-tool-btn {
  appearance: none;
  border: 1px solid var(--hairline, #d7d1c7);
  background: #fff;
  color: var(--navy, #0e2a47);
  font: 600 14px/1.2 Inter, system-ui, sans-serif;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.vm-tool-btn:hover { background: #f7f3ea; }
.vm-tool-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #5c6570);
}

.vm-peer-gap {
  margin: 16px 0 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--honey, #e6a340);
  border-radius: 0 10px 10px 0;
  max-width: 760px;
}
.vm-peer-gap p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.vm-peer-gap ul {
  margin: 0;
  padding-left: 1.1rem;
}
.vm-peer-gap li { margin: 2px 0; }
.plan-verdict-key {
  list-style: none;
  margin: 8px 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.plan-verdict-key li {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f3ea;
  font-size: 0.92rem;
  line-height: 1.4;
}
.plan-verdict-key li.is-on { outline: 2px solid var(--navy, #0e2a47); }
.trk-table, .hub-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.trk-table th, .trk-table td, .hub-table th, .hub-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--hairline, #d7d1c7);
  font-size: 0.95rem;
}
.trk-table td, .hub-table td { text-align: right; }
.trk-table th:first-child, .hub-table th:first-child { text-align: left; }
.trk-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; align-items: end; margin-bottom: 8px; }
.trk-row label { font-size: 0.85rem; font-weight: 600; }
.vm-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}
.vm-hub-card {
  display: block;
  padding: 14px;
  border: 1px solid var(--hairline, #d7d1c7);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.vm-hub-card strong { display: block; color: var(--navy, #0e2a47); margin-bottom: 4px; }
.vm-hub-card span { font-size: 0.9rem; line-height: 1.4; }

.vm-source-strip {
  margin: 18px auto 8px;
  max-width: 1140px;
  padding: 0 24px;
}
.vm-source-strip p {
  margin: 0;
  padding: 12px 14px;
  background: #f7f3ea;
  border-left: 3px solid var(--honey, #e6a340);
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink, #1a1410);
}
.vm-source-strip a { color: var(--navy, #0e2a47); }

.vm-embed {
  margin: 28px auto 12px;
  max-width: 1140px;
  padding: 0 24px 8px;
}
.vm-embed h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: var(--navy, #0e2a47);
}
.vm-embed p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.vm-embed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.vm-embed textarea {
  flex: 1 1 280px;
  min-height: 74px;
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--hairline, #d7d1c7);
  resize: vertical;
}

.vm-card-gate {
  margin: 8px 0 20px;
  border: 1px solid var(--hairline, #d7d1c7);
  border-radius: 12px;
  background: #fff;
  padding: 0 14px 4px;
}
.vm-card-gate > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 4px;
  color: var(--navy, #0e2a47);
}
.vm-card-gate-note {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted, #5c6570);
}

.vm-sticky-result {
  display: none;
}
@media (max-width: 800px) {
  .vm-sticky-result {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--navy, #0e2a47);
    color: #fff;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
  }
  .vm-sticky-result[hidden] { display: none !important; }
  .vm-sticky-label {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
  }
  .vm-sticky-value {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    font-weight: 650;
  }
  body.vm-sticky-on { padding-bottom: 72px; }
}

@media print {
  .site-nav, .calc-hero, .calc-how-it-works, .calc-inputs, .post-results,
  #card-cta, #card-finder-mini, .vm-card-gate, .vm-embed, .vm-result-toolbar,
  .vm-sticky-result, .footer, .related-calcs, .related-articles, .capture,
  .running-total-bar, #vm-download-widget, #ai-live-pricing, #live-quote,
  #ai-pricing-section {
    display: none !important;
  }
  .calc-results, #results, #tf-results, #calc-results {
    display: block !important;
    visibility: visible !important;
  }
  body { background: #fff !important; }
  .calc-grid { display: block !important; }
  .fund-actions, .trk-samples, .fund-presets { display: none !important; }
}

.fund-glance {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: 12px;
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.45;
}
.fund-presets, .trk-samples { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.fund-preset, .trk-sample, .trk-day-remove {
  border: 1px solid var(--hairline, #d7d1c7);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.fund-preset.is-on, .trk-sample.is-on { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.fund-chart { width: 100%; height: auto; display: block; margin: 8px 0; }
.fund-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.fund-bridges { margin: 0 0 12px; padding-left: 1.1rem; }
.trk-day {
  display: grid;
  grid-template-columns: 72px 1.3fr 88px 1fr auto;
  gap: 6px;
  align-items: end;
  margin-bottom: 8px;
}
.trk-day label { font-size: 0.75rem; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.trk-chart-row {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
  font-size: 0.85rem;
}
.trk-bar { height: 8px; background: transparent; border-radius: 99px; margin: 2px 0; }
.trk-bar > span { display: block; height: 8px; border-radius: 99px; min-width: 0; }
.trk-bar > span.plan, .trk-swatch.plan { background: #c4b8a4; }
.trk-bar > span.act, .trk-swatch.act { background: #1e3a5f; }
.trk-swatch { display: inline-block; width: 12px; height: 8px; border-radius: 2px; vertical-align: middle; }
@media (max-width: 640px) {
  .trk-row { grid-template-columns: 1fr 1fr; }
  .trk-row > label { grid-column: 1 / -1; }
  .trk-day { grid-template-columns: 1fr 1fr; }
  .trk-day-remove { grid-column: 1 / -1; justify-self: start; }
  .trk-chart-row { grid-template-columns: 1fr; }
}
@media print {
  .fund-actions { display: none !important; }
}
