/* Casvia · report.css — on-page report CTA + summary styles.
   Deep teal design system, low-key, mobile-friendly. */

.report-cta-section {
  margin: 24px 0;
  padding: 22px 24px;
  background: var(--surface, #15212a);
  border: 1px solid var(--line, #2b3a42);
  border-radius: 10px;
}

.report-cta-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink, #dfece6);
}

.report-cta-desc {
  margin: 0 0 14px;
  font-size: .85rem;
  color: var(--ink-soft, #8fa49e);
}

.report-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.report-cta-buttons .btn {
  font-size: .85rem;
  padding: 9px 18px;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid var(--line, #2b3a42);
  background: var(--surface-2, #1b2a33);
  color: var(--ink, #dfece6);
  transition: background .15s, border-color .15s;
}

.report-cta-buttons .btn:hover {
  border-color: var(--brand, #22b3a4);
}

.report-cta-buttons .btn-primary {
  background: var(--brand, #22b3a4);
  color: #061210;
  border-color: var(--brand, #22b3a4);
  font-weight: 600;
}

.report-cta-buttons .btn-primary:hover {
  background: #2cc5b5;
}

.report-cta-buttons .btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.report-share-status {
  font-size: .8rem;
  color: var(--brand, #22b3a4);
  min-height: 1.2em;
  margin-top: 4px;
}

/* ---- Report summary (on-page + print) ---- */
.report-summary {
  margin-top: 18px;
  padding: 20px;
  background: var(--bg, #0c1417);
  border: 1px solid var(--line, #2b3a42);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--ink, #dfece6);
}

.rpt-header { margin-bottom: 10px; }
.rpt-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--brand, #22b3a4);
}
.rpt-subtitle {
  font-size: .75rem;
  color: var(--ink-soft, #8fa49e);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.rpt-calc-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 8px 0 2px;
}
.rpt-date, .rpt-taxyear {
  font-size: .78rem;
  color: var(--ink-soft, #8fa49e);
}
.rpt-taxyear { color: var(--brand, #22b3a4); margin-bottom: 12px; }

.rpt-section { margin: 14px 0; }
.rpt-section h3 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft, #8fa49e);
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line, #2b3a42);
  padding-bottom: 4px;
}

.rpt-table { width: 100%; border-collapse: collapse; }
.rpt-table td {
  padding: 5px 0;
  font-size: .88rem;
  border-bottom: 1px solid rgba(43, 58, 66, .4);
}
.rpt-table .rpt-val {
  text-align: right;
  font-weight: 600;
  color: var(--ink, #dfece6);
}

.rpt-primary {
  background: rgba(34, 179, 164, .07);
  border: 1px solid rgba(34, 179, 164, .2);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.rpt-primary-label {
  font-size: .8rem;
  color: var(--ink-soft, #8fa49e);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.rpt-primary-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand, #22b3a4);
  line-height: 1.2;
}
.rpt-primary-suffix {
  font-size: .9rem;
  font-weight: 400;
  color: var(--ink-soft, #8fa49e);
  margin-left: 4px;
}

.rpt-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.rpt-metric {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: var(--surface, #15212a);
  border-radius: 6px;
}
.rpt-metric-label {
  font-size: .72rem;
  color: var(--ink-soft, #8fa49e);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rpt-metric-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink, #dfece6);
  margin-top: 2px;
}

.rpt-insight {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink, #dfece6);
  margin: 0;
}

.rpt-disclaimer p {
  font-size: .75rem;
  line-height: 1.5;
  color: var(--ink-soft, #8fa49e);
  margin: 0;
}

.rpt-footer {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #2b3a42);
  font-size: .72rem;
  color: var(--ink-soft, #8fa49e);
  text-align: center;
}

@media (max-width: 600px) {
  .report-cta-section { padding: 16px; }
  .report-cta-buttons .btn { flex: 1; min-width: 100px; }
  .rpt-primary-value { font-size: 1.6rem; }
}

/* Print-only summary container: hidden on screen, restored in print.css */
.report-summary-container.print-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Mobile: 3 secondary buttons equal-width on top, PDF full-width below */
@media (max-width: 600px) {
  .actions {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .actions .btn {
    width: 100%;
    justify-content: center;
    margin: 0;
    font-size: 0.82rem;
    padding: 10px 6px;
    white-space: nowrap;
  }
  .actions .report-pdf-btn {
    grid-column: 1 / -1;
    font-size: 1rem;
    padding: 12px;
    font-weight: 600;
  }
  .actions .share-flash {
    grid-column: 1 / -1;
  }
}
