/* Shared print surface for every HavenScout page. Page styles keep layout rules;
   this file owns the printable palette, type contrast, links, and common chrome. */
:root {
  --hs-print-ink: #172235;
  --hs-print-muted: #526070;
  --hs-print-link: #174a7e;
  --hs-print-border: #d7dee8;
  --hs-print-panel: #fbfcff;
  --hs-print-navy: #101d2e;
  --hs-print-good: #167a48;
  --hs-print-warn: #9a5b00;
  --hs-print-bad: #b4232f;
}

@media print {
  html,
  body {
    background: #fff !important;
    color: var(--hs-print-ink) !important;
  }

  body {
    font-family: Arial, Helvetica, sans-serif !important;
  }

  body a,
  body a:visited {
    color: var(--hs-print-link) !important;
    text-decoration: underline !important;
    text-underline-offset: 1px;
  }

  body h1,
  body h2,
  body h3,
  body h4,
  body h5,
  body h6 {
    color: var(--hs-print-ink) !important;
  }

  .topbar,
  #a11y-btn,
  #site-theme-btn,
  .no-print,
  .report-actions,
  .report-print-btn,
  .report-close-btn {
    display: none !important;
  }

  /* Shared report surfaces. */
  #print-report,
  #havenscout-chrome-print-root,
  #print-report .report-inner,
  #havenscout-chrome-print-root .report-inner {
    color: var(--hs-print-ink) !important;
  }

  #print-report .report-header-left h1,
  #havenscout-chrome-print-root .report-header-left h1,
  #print-report .report-card-title,
  #havenscout-chrome-print-root .report-card-title,
  #print-report .report-section-title,
  #havenscout-chrome-print-root .report-section-title,
  #print-report .report-locations-title,
  #havenscout-chrome-print-root .report-locations-title,
  #print-report .report-budget-card-title,
  #havenscout-chrome-print-root .report-budget-card-title {
    color: var(--hs-print-ink) !important;
  }

  #print-report .report-card-meta,
  #havenscout-chrome-print-root .report-card-meta,
  #print-report .report-note,
  #havenscout-chrome-print-root .report-note,
  #print-report .report-source-title,
  #havenscout-chrome-print-root .report-source-title,
  #print-report .report-source-grid,
  #havenscout-chrome-print-root .report-source-grid,
  #print-report .report-budget-card-note,
  #havenscout-chrome-print-root .report-budget-card-note,
  #print-report .quiz-report-note,
  #havenscout-chrome-print-root .quiz-report-note,
  #print-report .quiz-result-reason,
  #havenscout-chrome-print-root .quiz-result-reason {
    color: var(--hs-print-muted) !important;
  }

  #print-report .report-inline-link,
  #havenscout-chrome-print-root .report-inline-link,
  #print-report .report-link-list a,
  #havenscout-chrome-print-root .report-link-list a {
    color: var(--hs-print-link) !important;
  }

  #print-report .report-compare-table th,
  #print-report .report-compare-table td,
  #havenscout-chrome-print-root .report-compare-table th,
  #havenscout-chrome-print-root .report-compare-table td {
    color: var(--hs-print-ink) !important;
  }

  #print-report .report-compare-table thead th,
  #havenscout-chrome-print-root .report-compare-table thead th,
  #print-report .report-dest-head strong,
  #havenscout-chrome-print-root .report-dest-head strong,
  #print-report .report-dest-head em,
  #havenscout-chrome-print-root .report-dest-head em,
  #print-report .report-card-score,
  #havenscout-chrome-print-root .report-card-score,
  #print-report .report-card-score *,
  #havenscout-chrome-print-root .report-card-score * {
    color: #fff !important;
  }

  #print-report .report-group-row th,
  #havenscout-chrome-print-root .report-group-row th {
    color: #694a0c !important;
  }

  #print-report .report-good,
  #havenscout-chrome-print-root .report-good {
    color: var(--hs-print-good) !important;
  }

  #print-report .report-warn,
  #havenscout-chrome-print-root .report-warn {
    color: var(--hs-print-warn) !important;
  }

  #print-report .report-bad,
  #havenscout-chrome-print-root .report-bad {
    color: var(--hs-print-bad) !important;
  }

  /* Destination-guide print surfaces. */
  body.destination-page .destination-hero h1,
  body.destination-page .destination-summary-head strong,
  body.destination-page .destination-fact b,
  body.destination-page .destination-section h2,
  body.destination-page .destination-section-stat b,
  body.destination-page .destination-table td:first-child,
  body.destination-page .destination-location b,
  body.destination-page .destination-faq-item h3,
  body.destination-page .destination-list b {
    color: var(--hs-print-ink) !important;
  }

  body.destination-page .destination-dek,
  body.destination-page .destination-section p,
  body.destination-page .destination-location span,
  body.destination-page .destination-list span,
  body.destination-page .destination-table td,
  body.destination-page .destination-fact small,
  body.destination-page .destination-section-stat small,
  body.destination-page .destination-faq-item p,
  body.destination-page .destination-disclaimer p {
    color: var(--hs-print-muted) !important;
  }

  body.destination-page .destination-kicker,
  body.destination-page .destination-section-kicker,
  body.destination-page .destination-disclaimer strong {
    color: var(--hs-print-muted) !important;
  }

}

@media print {
  /* Give destination-guide footers the same deliberate color hierarchy as
     the approved reports while keeping the legal links compact. */
  body.destination-page .destination-disclaimer {
    margin-top: 0.16in !important;
    padding: 0.12in 0.14in !important;
    border: 1px solid #e0c98c !important;
    border-left: 4px solid #b17d00 !important;
    border-radius: 6px !important;
    background: #fbf7ea !important;
  }

  body.destination-page .destination-disclaimer strong {
    color: #694a0c !important;
  }

  body.destination-page .destination-disclaimer p {
    color: #526070 !important;
  }

  body.destination-page .destination-source-links.destination-legal-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px 12px !important;
    margin-top: 0.09in !important;
    padding-top: 0.07in !important;
    border-top: 1px solid #e0c98c !important;
  }

  body.destination-page .destination-source-links.destination-legal-links a {
    display: inline !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #174a7e !important;
    font-size: 7.8pt !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }

  body.destination-page .destination-wrap::after {
    margin-top: 0.14in !important;
    padding: 0.07in 0.1in !important;
    border-top: 3px solid #b17d00 !important;
    border-bottom: 1px solid #e0c98c !important;
    background: #101d2e !important;
    color: #ffffff !important;
  }

  body.destination-page .destination-security-warning {
    border: 1px solid #e2b3b8 !important;
    border-left: 4px solid #b4232f !important;
    background: #fff1f2 !important;
    box-shadow: inset 0 0 0 1px rgba(180,35,47,0.16) !important;
  }

  body.destination-page .destination-security-warning p {
    color: #6f1d2a !important;
  }

  body.destination-page .destination-security-warning strong {
    color: #a51d2c !important;
  }
}

/* Budget planner print surface. Layout, palette, and text treatment all live
   here so the page has one print stylesheet authority. */
@media print {
  body.budget-planner-page > *:not(#print-report) {
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.budget-planner-page > #main-content {
    display: block !important;
    visibility: visible !important;
  }

  @page {
    margin: 0.42in 0.45in 0.45in;
  }

  body.budget-planner-page {
    background: #fff !important;
    overflow: visible !important;
  }

  body.budget-planner-page .topbar,
  body.budget-planner-page #a11y-btn,
  body.budget-planner-page #site-theme-btn,
  body.budget-planner-page .budget-planner-hero-actions,
  body.budget-planner-page .budget-planner-toolbar-actions {
    display: none !important;
  }

  body.budget-planner-page .budget-planner-main {
    width: 100%;
    padding: 0;
  }

  body.budget-planner-page .budget-planner-hero,
  body.budget-planner-page .budget-planner-toolbar,
  body.budget-planner-page .budget-planner-card,
  body.budget-planner-page .budget-section,
  body.budget-planner-page .budget-planner-disclaimer,
  body.budget-planner-page .legal-disclaimer-footer {
    break-inside: avoid;
  }

  body.budget-planner-page .budget-section {
    break-before: page;
  }

  body.budget-planner-page .budget-table-wrap {
    overflow: visible;
  }

  body.budget-planner-page .budget-table {
    min-width: 0;
    font-size: 9pt;
  }

  body.budget-planner-page .budget-table thead {
    display: table-header-group;
  }

  body.budget-planner-page .budget-table thead th {
    background: var(--hs-print-navy) !important;
    border-bottom-color: var(--hs-print-navy) !important;
    color: #fff !important;
  }

  body.budget-planner-page .budget-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.budget-planner-page .budget-planner-hero h1 {
    font-size: 25pt !important;
  }

  body.budget-planner-page .budget-planner-hero {
    display: block !important;
    text-align: center;
  }

  body.budget-planner-page .budget-planner-hero-copy {
    max-width: 100%;
  }

  body.budget-planner-page .budget-planner-print-logo {
    display: block !important;
    width: 1.35in;
    height: auto;
    margin: 0 auto 10pt;
  }

  body.budget-planner-page .budget-section h2 {
    font-size: 17pt !important;
  }

  body.budget-planner-page .budget-planner-summary-grid strong,
  body.budget-planner-page .budget-data-item strong {
    font-size: 10pt !important;
  }

  body.budget-planner-page .budget-line-label {
    font-size: 9.5pt !important;
  }

  body.budget-planner-page .budget-note,
  body.budget-planner-page .budget-line-subnote,
  body.budget-planner-page .budget-data-item small,
  body.budget-planner-page .budget-section-head p,
  body.budget-planner-page .budget-planner-hero p {
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
  }

  body.budget-planner-page .budget-amount-input,
  body.budget-planner-page .budget-planner-field input,
  body.budget-planner-page .budget-planner-field select {
    display: none !important;
  }

  body.budget-planner-page .budget-planner-print-field-value,
  body.budget-planner-page .budget-print-value,
  body.budget-planner-page .budget-print-check {
    display: inline !important;
    font-size: 9pt !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  body.budget-planner-page .budget-planner-print-field-value {
    display: block !important;
    margin-top: 7px;
  }

  body.budget-planner-page .budget-check-wrap {
    display: none !important;
  }

  body.budget-planner-page .budget-amount-wrap .budget-print-value {
    grid-column: 2;
  }

  body.budget-planner-page .budget-amount-wrap-with-check .budget-print-check {
    grid-column: 1;
  }

  body.budget-planner-page .budget-amount-wrap-with-check .budget-print-value {
    grid-column: 3;
  }

  body.budget-planner-page .budget-planner-household-refresh-note {
    display: none !important;
  }

  body.budget-planner-page,
  body.budget-planner-page #main-content {
    color: var(--hs-print-ink) !important;
  }

  body.budget-planner-page .budget-planner-hero,
  body.budget-planner-page .budget-planner-toolbar,
  body.budget-planner-page .budget-planner-card,
  body.budget-planner-page .budget-section,
  body.budget-planner-page .budget-planner-disclaimer {
    background: #fff !important;
    border-color: var(--hs-print-border) !important;
    box-shadow: none !important;
  }

  body.budget-planner-page .budget-planner-browser-note,
  body.budget-planner-page .budget-planner-summary-grid div,
  body.budget-planner-page .budget-data-item,
  body.budget-planner-page .budget-table-section-row th,
  body.budget-planner-page .budget-total-row {
    background: var(--hs-print-panel) !important;
    border-color: var(--hs-print-border) !important;
  }

  body.budget-planner-page .budget-planner-browser-note {
    border-left-color: #2f6f9f !important;
  }

  body.budget-planner-page .budget-table-section-row th {
    border-bottom-color: var(--hs-print-border) !important;
  }

  body.budget-planner-page .budget-planner-hero h1,
  body.budget-planner-page .budget-section h2,
  body.budget-planner-page .budget-planner-card-head strong,
  body.budget-planner-page .budget-planner-card-head p,
  body.budget-planner-page .budget-planner-kicker,
  body.budget-planner-page .budget-table-section-title,
  body.budget-planner-page .budget-amount-symbol,
  body.budget-planner-page .budget-note strong,
  body.budget-planner-page .budget-line-label,
  body.budget-planner-page .budget-planner-summary-grid strong,
  body.budget-planner-page .budget-data-item strong,
  body.budget-planner-page .budget-print-value,
  body.budget-planner-page .budget-print-check {
    color: var(--hs-print-ink) !important;
  }

  body.budget-planner-page .budget-planner-hero h1 {
    color: var(--hs-print-warn) !important;
  }

  body.budget-planner-page .budget-table-section-note,
  body.budget-planner-page .budget-planner-field span,
  body.budget-planner-page .budget-planner-summary-grid span,
  body.budget-planner-page .budget-data-item span,
  body.budget-planner-page .budget-table thead th,
  body.budget-planner-page .budget-table td,
  body.budget-planner-page .budget-table-section-note,
  body.budget-planner-page .budget-planner-hero p,
  body.budget-planner-page .budget-section-head p,
  body.budget-planner-page .budget-note,
  body.budget-planner-page .budget-planner-card-note,
  body.budget-planner-page .budget-planner-browser-note,
  body.budget-planner-page .budget-line-subnote,
  body.budget-planner-page .budget-data-item small,
  body.budget-planner-page .budget-planner-disclaimer p,
  body.budget-planner-page .legal-disclaimer-footer p {
    color: var(--hs-print-muted) !important;
  }

  body.budget-planner-page a {
    color: var(--hs-print-link) !important;
  }

  body.budget-planner-page .budget-planner-disclaimer {
    border-color: #e0c98c !important;
    border-left: 4px solid #b17d00 !important;
    background: #fbf7ea !important;
  }

  body.budget-planner-page .budget-planner-disclaimer strong {
    color: #694a0c !important;
  }

  /* Match the approved report's compact, high-contrast planning bands. */
  body.budget-planner-page .budget-trip-bands {
    background: var(--hs-print-panel) !important;
    border-color: var(--hs-print-border) !important;
  }

  body.budget-planner-page .budget-trip-bands-head h3,
  body.budget-planner-page .budget-trip-bands-head .budget-planner-kicker {
    color: var(--hs-print-ink) !important;
  }

  body.budget-planner-page .budget-trip-bands-head p:last-child,
  body.budget-planner-page .budget-trip-band span,
  body.budget-planner-page .budget-trip-band small,
  body.budget-planner-page .budget-trip-bands-foot {
    color: var(--hs-print-muted) !important;
  }

  body.budget-planner-page .budget-trip-band {
    background: #fff !important;
    border-color: var(--hs-print-border) !important;
  }

  body.budget-planner-page .budget-trip-band strong {
    color: var(--hs-print-warn) !important;
  }

  body.budget-planner-page .budget-trip-band small,
  body.budget-planner-page .budget-amount-mode {
    color: var(--hs-print-warn) !important;
    font-weight: 900 !important;
  }

  body.budget-planner-page .budget-total-row > th .budget-line-label,
  body.budget-planner-page .budget-total-row > td:nth-child(2) .budget-note {
    color: var(--hs-print-warn) !important;
    font-weight: 900 !important;
  }

  body.budget-planner-page .budget-people-field input {
    display: none !important;
  }

  body.budget-planner-page .budget-people-field .budget-planner-print-field-value {
    display: block !important;
    margin-top: 5px;
    color: var(--hs-print-ink) !important;
    font-size: 10pt !important;
    font-weight: 700 !important;
  }

  body.budget-planner-page .budget-table-section-row {
    break-after: avoid-page;
    page-break-after: avoid;
  }

  body.budget-planner-page .budget-table-section-row th {
    background: #f0e8d1 !important;
    border-bottom-color: var(--hs-print-border) !important;
  }

  body.budget-planner-page .budget-table-section-title {
    color: #694a0c !important;
  }

  body.budget-planner-page .budget-table-section-note {
    color: var(--hs-print-muted) !important;
  }

  body.budget-planner-page .budget-planner-summary-grid strong.budget-positive {
    color: var(--hs-print-good) !important;
  }

  body.budget-planner-page .budget-planner-summary-grid strong.budget-warning {
    color: var(--hs-print-warn) !important;
  }

  body.budget-planner-page .budget-planner-summary-grid strong.budget-negative {
    color: var(--hs-print-bad) !important;
  }

  body.budget-planner-page .budget-planner-hero {
    background: var(--hs-print-navy) !important;
    border-color: var(--hs-print-navy) !important;
    color: #fff !important;
  }

  body.budget-planner-page .budget-planner-hero h1,
  body.budget-planner-page .budget-planner-hero .budget-planner-kicker,
  body.budget-planner-page .budget-planner-hero p {
    color: #fff !important;
  }

  body.budget-planner-page .budget-section-head {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
    margin: -20px -18px 16pt;
    padding: 12pt 18px;
    border-radius: 6px 6px 0 0;
    background: var(--hs-print-navy) !important;
    color: #fff !important;
  }

  body.budget-planner-page .budget-planner-print-section-logo {
    display: block !important;
    grid-column: 1 / -1;
    width: .95in;
    height: auto;
    margin: 0 0 5pt;
  }

  body.budget-planner-page .budget-section-head h2,
  body.budget-planner-page .budget-section-head .budget-planner-kicker,
  body.budget-planner-page .budget-section-head > p,
  body.budget-planner-page .budget-section-head .budget-section-intro p,
  body.budget-planner-page .budget-section-head .budget-people-field span {
    color: #fff !important;
  }

  body.budget-planner-page .budget-planner-card-head {
    position: relative;
    margin: -18px -18px 14pt;
    padding: 10pt 14pt;
    border-bottom-color: var(--hs-print-navy) !important;
    background: var(--hs-print-navy) !important;
  }

  body.budget-planner-page .budget-planner-card-head p,
  body.budget-planner-page .budget-planner-card-head strong {
    color: #fff !important;
  }

  body.budget-planner-page .budget-planner-card-data .budget-planner-card-head {
    padding-left: 1.15in;
  }

  body.budget-planner-page .budget-planner-print-card-logo {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 14pt;
    width: .95in;
    height: auto;
    transform: translateY(-50%);
  }

  body.budget-planner-page .budget-table thead th {
    background: var(--hs-print-navy) !important;
    color: #fff !important;
  }

  body.budget-planner-page .legal-footer-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
    justify-content: center;
    align-items: center;
  }
}
