:root {
  --gold: #d4a047;
  --navy: #071425;
  --cream: #f3f6fa;
  --border: #dbe4ee;
  --text: #4e5968;
}

.summary-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  font-family: "Montserrat", sans-serif;
}

.summary-page main {
  flex: 1;
}

.summary-hero {
  background: #0b3a6e;
  color: #fff;
  text-align: center;
  padding: 22px 20px 14px;
  border-bottom: 3px solid #d4a047;
}
.summary-hero h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.summary-hero p {
  margin: 0;
  color: #e6eef9;
  font-weight: 600;
}

.summary-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 20px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-report-header {
  margin-bottom: 2px;
}

.summary-report-shell {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #d7e0ec;
  border-top: 4px solid var(--firm-primary, #0b3a6e);
  border-radius: 12px;
  background: #fff;
}

.summary-report-logo {
  max-height: 68px;
  max-width: 180px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.summary-report-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.summary-report-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f7287;
}

.summary-report-name {
  margin: 0 0 3px;
  font-size: 1.35rem;
  color: #0f2746;
}

.summary-report-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.summary-report-generated {
  margin: 0;
  text-align: right;
  font-size: 0.9rem;
  color: #5a6d82;
  flex: 0 0 auto;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px 20px;
  color: var(--navy);
  line-height: 1.5;
}

.summary-card h2 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
  padding-bottom: 8px;
  border-bottom: 1px solid #e6edf5;
}

.summary-card h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #153151;
}

.summary-card h4 {
  margin: 12px 0 5px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #23405f;
}

.summary-card p {
  margin: 4px 0 9px;
  color: #31465d;
}

.summary-card ul {
  margin: 6px 0 10px 18px;
  padding: 0;
  color: #1b2f46;
  line-height: 1.5;
}

.summary-detail-list {
  list-style: none;
  margin: 8px 0 14px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.summary-detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid #edf2f7;
}

.summary-detail-list li:last-child {
  border-bottom: 0;
}

.summary-detail-list .summary-detail-empty {
  display: block;
  padding: 3px 0 0;
  border-bottom: 0;
  color: #4e5968;
  font-style: italic;
}

.summary-detail-label {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
  color: #0f2746;
}

.summary-detail-value {
  flex: 0 1 45%;
  min-width: 0;
  text-align: right;
  color: #1b2f46;
  overflow-wrap: anywhere;
}

.summary-oic-payment-explainer {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fbff;
}

.summary-oic-payment-explainer h5 {
  margin: 0 0 8px;
  color: #0f2746;
  font-size: 0.95rem;
  font-weight: 800;
}

.summary-oic-payment-explainer p {
  margin: 0 0 8px;
  color: #31465d;
  font-size: 0.92rem;
}

.summary-oic-payment-explainer p:last-child {
  margin-bottom: 0;
}

.empty-state {
  margin: 6px 0 10px;
  color: #4e5968;
  font-style: italic;
}

.section-intro {
  margin-bottom: 12px;
}

.disclaimer {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #4e5968;
  font-style: italic;
  text-align: center;
}

.disclaimer.fine {
  margin-top: 4px;
}

.summary-accent-card {
  background: #fff;
  border: 1px solid var(--border);
}

.hardship-action {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 6px;
  flex-wrap: wrap;
}

.hardship-action button {
  border: 2px solid #0f2f66;
  background: #1f4b99;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.hardship-action .hardship-note {
  font-size: 0.95rem;
  color: #1b2f46;
}

.hardship-card {
  border: 1px solid #c8d8eb;
}

.gold-outline {
  border: 1px solid rgba(212, 160, 71, 0.45);
}

.options-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0;
}

.options-list article {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe4ee;
}

.options-list h4 {
  margin: 0 0 8px;
}

.options-list p {
  margin: 6px 0;
}

.option-status {
  display: none;
}

.option-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.option-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid #edf2f7;
}

.option-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.option-label {
  font-weight: 700;
  color: #0f2746;
}

.option-value {
  text-align: right;
  color: #1b2f46;
  overflow-wrap: anywhere;
}

.option-note {
  margin-top: 8px;
  color: #2b4060;
  font-size: 0.92rem;
}

.option-note-list {
  margin: 8px 0 0 18px;
  color: #2b4060;
  font-size: 0.88rem;
}

.option-note-list li {
  margin-bottom: 4px;
}

.summary-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.summary-actions .btn {
  min-width: 140px;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.summary-actions .btn-outline {
  background: #f0f0f0;
  color: #111;
  border: 2px solid #c9c9c9;
}

.btn.btn-blue {
  background: #2a63bf;
  color: #fff;
  border: 2px solid #2456a8;
}

.btn.btn-blue-dark {
  background: #013d85;
  color: #fff;
  border: 2px solid #013d85;
}

.summary-disclaimer {
  text-align: center;
  margin-top: 6px;
}


@media (max-width: 720px) {
  .summary-hero h1 {
    font-size: 28px;
  }
  .summary-card {
    padding: 18px;
  }
  .summary-detail-list li {
    flex-direction: column;
    gap: 4px;
  }
  .summary-detail-value {
    text-align: left;
  }
  .option-list li {
    flex-direction: column;
    gap: 4px;
  }
  .option-value {
    text-align: left;
  }

  .summary-report-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-report-generated {
    text-align: left;
  }
}

@media print {
  @page {
    size: Letter;
    margin: 0.52in 0.48in;
  }

  body.print-client-summary .tt-header {
    display: none !important;
  }

  body.print-client-summary {
    background: #fff !important;
  }

  body.print-client-summary .summary-wrapper {
    max-width: none;
    padding: 0;
    gap: 8px;
  }

  body.print-client-summary .summary-report-shell {
    background: transparent !important;
    border-radius: 0;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-top: 3px solid #000 !important;
    padding: 0 0 8px;
    gap: 10px;
    break-inside: auto;
    page-break-inside: auto;
  }

  body.print-client-summary .summary-report-name,
  body.print-client-summary .summary-report-title,
  body.print-client-summary .summary-report-generated,
  body.print-client-summary .summary-report-kicker {
    color: #000 !important;
  }

  body.print-client-summary .summary-card {
    padding: 9px 10px 10px;
    border-radius: 6px;
    box-shadow: none;
    border-color: #d5dce6;
    break-inside: auto;
    page-break-inside: auto;
  }

  body.print-client-summary .summary-card h2 {
    margin-bottom: 6px;
    font-size: 1rem;
    padding-bottom: 5px;
    break-after: avoid;
    page-break-after: avoid;
  }

  body.print-client-summary .summary-card h3,
  body.print-client-summary .summary-card h4 {
    break-after: avoid;
    page-break-after: avoid;
  }

  body.print-client-summary .summary-detail-list li,
  body.print-client-summary .option-list li,
  body.print-client-summary .options-list article {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.print-client-summary .summary-detail-list li {
    padding: 4px 0;
    gap: 10px;
  }

  body.print-client-summary .summary-card p,
  body.print-client-summary .summary-detail-list,
  body.print-client-summary .option-list,
  body.print-client-summary .summary-report-generated,
  body.print-client-summary .summary-report-title {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  body.print-client-summary .options-list article {
    padding: 8px 10px;
    border-radius: 6px;
  }

  body.print-client-summary .summary-actions,
  body.print-client-summary .tt-hero,
  body.print-client-summary .tt-footer {
    display: none !important;
  }
}
