/* Purchase cost chat (calculator/chat-ui.js): entry (photo, teaser card, pill), dialog, chat, contact
   form and the print sheet #chat-print. Everything is under .bhc-… so nothing else on
   the page moves. Colours from css/styles.css. */

.bhc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- entry: Ron's photo with teaser card, later a pill button ---------- */
.bhc-entry {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  max-width: calc(100vw - 40px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: left;
}
.bhc-entry *,
.bhc-entry *::before,
.bhc-entry *::after { box-sizing: border-box; }
.bhc-entry[hidden],
.bhc-entry [hidden] { display: none; }
/* never cover the cookie banner: the entry waits until it is answered */
#cookie-banner:not([hidden]) ~ .bhc-entry { display: none; }
.bhc-entry :where(button) { font: inherit; color: inherit; cursor: pointer; }
.bhc-entry button:focus-visible { outline: 3px solid var(--teal, #1d4e64); outline-offset: 3px; }

/* round photo, 64 px */
.bhc-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--sage, #b8c4be);
  overflow: hidden;
  box-shadow: 0 10px 24px -8px rgba(38, 35, 34, 0.55);
  transition: transform 0.15s ease;
}
.bhc-avatar:hover { transform: scale(1.05); }
.bhc-avatar img,
.bhc-pill img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* speech bubble card left of the photo, pointing at it */
.bhc-teaser {
  position: relative;
  flex: 0 1 auto;
  width: 280px;
  min-width: 0;
  margin-bottom: 18px;
  background: #fff;
  color: var(--ink, #262322);
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 18px 40px -16px rgba(38, 35, 34, 0.45), 0 0 0 1px rgba(38, 35, 34, 0.06);
  animation: bhcTeaserIn 0.35s ease both;
}
.bhc-teaser-main {
  display: block;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  padding: 15px 40px 15px 18px;
  text-align: left;
}
.bhc-teaser-title {
  display: block;
  font-size: 16.5px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink, #262322);
}
.bhc-teaser-link {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--terracotta, #c96b47);
}
.bhc-teaser-main:hover .bhc-teaser-link { text-decoration: underline; }
.bhc-teaser-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--grey-blue, #6e7b85);
}
.bhc-teaser-x:hover { background: rgba(38, 35, 34, 0.07); color: var(--ink, #262322); }
@keyframes bhcTeaserIn { from { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* pill: photo left, text right */
.bhc-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 60px;
  padding: 6px 24px 6px 6px;
  border: 0;
  border-radius: 99px;
  background: var(--terracotta, #c96b47);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 12px 28px -10px rgba(38, 35, 34, 0.6);
  transition: transform 0.15s ease;
}
.bhc-pill:hover { transform: translateY(-2px); }
.bhc-pill img {
  flex: none;
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  background: var(--sage, #b8c4be);
}
.bhc-pill-short { display: none; }

@media (max-width: 639px) {
  .bhc-entry { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
  .bhc-teaser { width: 250px; }
  .bhc-teaser-title { font-size: 15.5px; }
}
@media (max-width: 399px) {
  .bhc-pill-long { display: none; }
  .bhc-pill-short { display: inline; }
  .bhc-avatar { width: 56px; height: 56px; }
  .bhc-entry { gap: 8px; }
  .bhc-teaser-main { padding: 13px 36px 13px 15px; }
}

/* ---------- dialog ---------- */
.bhc-dialog {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1500;
  width: 400px;
  height: 640px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--cream, #f7f1e7);
  color: var(--ink, #262322);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(38, 35, 34, 0.45), 0 0 0 1px rgba(38, 35, 34, 0.06);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}
.bhc-dialog[hidden] { display: none; }
.bhc-dialog:focus { outline: none; }
.bhc-dialog *,
.bhc-dialog *::before,
.bhc-dialog *::after { box-sizing: border-box; }
.bhc-dialog button:focus-visible,
.bhc-dialog a:focus-visible,
.bhc-dialog input:focus-visible,
.bhc-dialog textarea:focus-visible { outline: 2px solid var(--terracotta, #c96b47); outline-offset: 2px; }

/* desktop: light backdrop behind the panel, a click on it closes the chat */
.bhc-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1499;
  background: rgba(38, 35, 34, 0.28);
}
.bhc-backdrop[hidden] { display: none; }

@media (max-width: 639px) {
  /* mobile: the chat fills the screen, no backdrop */
  .bhc-backdrop { display: none; }
  .bhc-dialog {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  html.bhc-open,
  html.bhc-open body { overflow: hidden; }
}

/* calculator pages: the chat sits inline in the page (chat-ui.js, INLINE), no close button */
.bhc-dialog.bhc-inline {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  width: 100%;
  height: 640px;
  max-height: none;
  border-radius: 20px;
}
.bhc-inline .bhc-close { display: none; }
.bhc-inline .bhc-head { padding-bottom: 12px; }
@media (max-width: 639px) {
  .bhc-dialog.bhc-inline { height: 580px; border-radius: 16px; }
}

/* head */
.bhc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--teal, #1d4e64);
  color: #fff;
  padding: 12px 10px 8px 16px;
}
.bhc-photo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage, #b8c4be);
}
.bhc-who { flex: 1; min-width: 0; }
.bhc-name { display: block; font-size: 16px; }
.bhc-botline { display: block; font-size: 12px; opacity: 0.8; }
.bhc-close {
  flex: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.bhc-close:hover { background: rgba(255, 255, 255, 0.14); }
.bhc-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: var(--teal, #1d4e64);
  padding: 0 16px 10px;
}
.bhc-seg {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 99px;
  overflow: hidden;
}
.bhc-seg button {
  min-width: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  cursor: pointer;
}
.bhc-seg button[aria-pressed="true"] { background: #fff; color: var(--teal, #1d4e64); }
.bhc-dialog .bhc-seg button:focus-visible { outline-offset: -3px; }

/* ---------- chat log ---------- */
.bhc-log {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.bhc-msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: break-word;
  animation: bhcIn 0.25s ease;
}
.bhc-msg a { color: var(--teal, #1d4e64); text-decoration: underline; }
.bhc-bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.bhc-me { align-self: flex-end; background: var(--teal, #1d4e64); color: #fff; border-bottom-right-radius: 5px; }
.bhc-typing { display: flex; gap: 4px; padding: 14px; }
.bhc-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aaa;
  animation: bhcDot 1s infinite;
}
.bhc-typing i:nth-child(2) { animation-delay: 0.15s; }
.bhc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bhcIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes bhcDot { 50% { transform: translateY(-4px); opacity: 0.4; } }

/* question with ⓘ */
.bhc-q {
  align-self: flex-start;
  max-width: 86%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bhc-q .bhc-msg { max-width: 100%; }
.bhc-qmsg { display: flex; align-items: flex-start; gap: 10px; }
.bhc-qmsg > span { flex: 1; }
.bhc-i {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  border: 1.5px solid var(--grey-blue, #6e7b85);
  border-radius: 50%;
  background: transparent;
  color: var(--grey-blue, #6e7b85);
  font: italic 700 13px/1 Georgia, "Times New Roman", serif;
  cursor: pointer;
}
.bhc-i:hover,
.bhc-i[aria-expanded="true"] { background: var(--teal, #1d4e64); border-color: var(--teal, #1d4e64); color: #fff; }
.bhc-info {
  background: rgba(29, 78, 100, 0.08);
  border-left: 3px solid var(--teal, #1d4e64);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.45;
}
.bhc-info[hidden] { display: none; }

/* answer buttons, directly under the last bot message */
.bhc-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 2px 0 4px 12%;
}
.bhc-choice {
  background: #fff;
  border: 1.5px solid var(--teal, #1d4e64);
  border-radius: 18px;
  color: var(--teal, #1d4e64);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  padding: 8px 14px;
  cursor: pointer;
}
.bhc-choice:hover { background: var(--teal, #1d4e64); color: #fff; }
.bhc-choice.bhc-pri { background: var(--terracotta, #c96b47); border-color: var(--terracotta, #c96b47); color: #fff; }
.bhc-choice.bhc-pri:hover { filter: brightness(0.95); }
.bhc-presets .bhc-choice { min-width: 86px; text-align: center; }
.bhc-choice b { display: block; }
.bhc-choice small { display: block; font-size: 12px; font-weight: 400; opacity: 0.85; }

/* ---------- result card ---------- */
.bhc-card { width: 94%; max-width: 94%; }
.bhc-card p { margin: 0; }
.bhc-card-intro { margin-bottom: 8px !important; }
.bhc-card-title { font-weight: 700; font-size: 16px; color: var(--teal, #1d4e64); }
.bhc-sub { font-size: 13px; color: var(--grey-blue, #6e7b85); margin-top: 2px !important; }
.bhc-label { display: block; font-size: 12.5px; color: var(--grey-blue, #6e7b85); }
.bhc-ils { display: block; font-size: 11.5px; font-weight: 400; color: var(--grey-blue, #6e7b85); }
.bhc-total { margin: 2px 0 6px; }
.bhc-big { display: block; font-size: 28px; line-height: 1.15; letter-spacing: -0.5px; color: var(--teal, #1d4e64); }
.bhc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.bhc-kpis > div { background: var(--cream, #f7f1e7); border-radius: 10px; padding: 8px 10px; }
.bhc-kpis b { display: block; font-size: 19px; color: var(--teal, #1d4e64); }
.bhc-refund { font-size: 13.5px; }
.bhc-items { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0 4px; }
.bhc-items th {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--grey-blue, #6e7b85);
  text-align: right;
  padding: 0 0 4px 8px;
}
.bhc-items td {
  border-top: 1px solid #efe7da;
  padding: 5px 0 5px 8px;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}
.bhc-items th:first-child,
.bhc-items td:first-child { text-align: left; padding-left: 0; white-space: normal; }
.bhc-items td b { font-weight: 600; }
.bhc-facts { margin: 6px 0 0; }
.bhc-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #efe7da;
  padding: 6px 0;
  font-size: 13.5px;
}
.bhc-facts dt small { display: block; font-size: 11.5px; color: var(--grey-blue, #6e7b85); }
.bhc-facts dd { margin: 0; text-align: right; font-weight: 700; }
.bhc-facts dd b { white-space: nowrap; }
.bhc-facts dd .bhc-ils { text-align: right; }
.bhc-h { font-size: 13.5px; font-weight: 700; margin: 10px 0 4px !important; }
.bhc-notes { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.45; }
.bhc-notes li { list-style: disc; }
.bhc-notes li + li { margin-top: 4px; }
.bhc-foot { font-size: 12px; color: var(--grey-blue, #6e7b85); margin-top: 10px !important; }

/* ---------- contact form ---------- */
.bhc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bhc-row { margin-top: 10px; }
.bhc-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.bhc-opt { font-weight: 400; color: var(--grey-blue, #6e7b85); }
.bhc-form input[type="text"],
.bhc-form input[type="email"],
.bhc-form input[type="tel"],
.bhc-form textarea {
  display: block;
  width: 100%;
  border: 1.5px solid var(--sage, #b8c4be);
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #262322);
  font: inherit;
  font-size: 16px;
  padding: 9px 11px;
}
.bhc-form textarea { min-height: 150px; resize: vertical; font-size: 14px; line-height: 1.4; }
.bhc-form [aria-invalid="true"] { border-color: var(--terracotta, #c96b47); }
.bhc-form fieldset[disabled] { opacity: 0.7; }
.bhc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bhc-row .bhc-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.bhc-check input { margin-top: 2px; flex: none; }
.bhc-submit {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 99px;
  background: var(--terracotta, #c96b47);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 11px 16px;
  cursor: pointer;
}
.bhc-submit[disabled] { opacity: 0.6; cursor: default; }
.bhc-submit[hidden] { display: none; }
.bhc-status { font-size: 13px; margin-top: 8px !important; }
.bhc-status:empty { display: none; }
.bhc-status.bhc-error { color: #a3401c; }

/* ---------- price field (only for the price question) ---------- */
.bhc-comp {
  flex: none;
  background: #fff;
  border-top: 1px solid var(--sage, #b8c4be);
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.bhc-comp[hidden] { display: none; }
.bhc-err { margin: 0 0 8px; color: #a3401c; font-size: 13px; }
.bhc-err[hidden] { display: none; }
.bhc-comp-row { display: flex; align-items: center; gap: 8px; }
.bhc-cur { flex: none; width: 18px; text-align: center; font-weight: 700; color: var(--teal, #1d4e64); }
.bhc-comp input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--sage, #b8c4be);
  border-radius: 99px;
  background: var(--cream, #f7f1e7);
  color: var(--ink, #262322);
  font: inherit;
  font-size: 16px;
  padding: 10px 16px;
}
.bhc-comp input[aria-invalid="true"] { border-color: var(--terracotta, #c96b47); }
.bhc-send {
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--teal, #1d4e64);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .bhc-msg,
  .bhc-typing i { animation: none; }
  .bhc-log { scroll-behavior: auto; }
  .bhc-avatar,
  .bhc-pill { transition: none; }
  .bhc-teaser { animation: none; }
}

/* ---------- print sheet ---------- */
#chat-print { display: none; }

/* The page format (A4, no side margins, the first page without a top margin) is set by
   chat-ui.js only for the chat print, so a normal print of the page keeps its own format.
   Everything prints in colour (teal band, cream ground, tiles). */
@media print {
  .bhc-backdrop,
  .bhc-entry { display: none !important; }
  html.bhc-printing,
  body.bhc-printing {
    background: #f7f1e7 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.bhc-printing > *:not(#chat-print) { display: none !important; }
  body.bhc-printing #chat-print { display: block !important; }
  #chat-print,
  #chat-print * {
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #chat-print {
    background: #f7f1e7;
    color: #262322;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    text-align: left;
  }
  #chat-print p,
  #chat-print h2,
  #chat-print ul,
  #chat-print dl,
  #chat-print dd { margin: 0; padding: 0; }
  #chat-print small { display: block; font-size: 7.5pt; font-weight: 400; color: #6e7b85; }

  /* teal band with the light logo lockup (as in the site footer, scaled 1.3x) */
  .bhc-p-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10mm;
    background: #1d4e64;
    color: #fff;
    padding: 6.5mm 14mm 5.5mm;
  }
  .bhc-p-logo { position: relative; flex: none; width: 170.2px; height: 41.9px; }
  .bhc-p-logo img { position: absolute; height: auto; max-width: none; }
  .bhc-p-word { left: 0; top: 11.27px; width: 155.38px; }
  .bhc-p-heb { left: 108.94px; top: 0; width: 61.23px; }
  .bhc-p-titles { text-align: right; }
  .bhc-p-title { font-size: 16pt; font-weight: 700; line-height: 1.15; letter-spacing: -0.2px; }
  .bhc-p-date { margin-top: 3px !important; font-size: 8.5pt; color: rgba(255, 255, 255, 0.78); }

  .bhc-p-body { padding: 5mm 14mm 0; }
  .bhc-p-h {
    margin: 4mm 0 1.8mm !important;
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d4e64;
    break-after: avoid;
  }

  /* label / value pairs */
  .bhc-p-k { font-size: 7.5pt; letter-spacing: 0.02em; color: #6e7b85; }
  .bhc-p-v { font-size: 10.5pt; font-weight: 700; line-height: 1.25; margin-top: 1px !important; }
  .bhc-p-sub { font-size: 7.5pt; color: #6e7b85; margin-top: 1px !important; }

  /* key facts */
  .bhc-p-keys {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    border-top: 1.5px solid #1d4e64;
    border-bottom: 1px solid #d9d2c5;
    break-inside: avoid;
  }
  .bhc-p-keys .bhc-p-stat { padding: 2mm 4mm 2mm 0; }
  .bhc-p-keys .bhc-p-stat + .bhc-p-stat { padding-left: 4mm; border-left: 1px solid #d9d2c5; }

  /* total tiles */
  .bhc-p-tiles { display: grid; grid-template-columns: 1fr; gap: 3mm; }
  .bhc-p-three { grid-template-columns: 1fr 1fr 0.85fr; }
  .bhc-p-tile {
    border-radius: 3mm;
    padding: 2.4mm 4.5mm;
    background: #fff;
    border: 1px solid #e3dccf;
    break-inside: avoid;
  }
  .bhc-p-big { font-size: 20pt; font-weight: 700; line-height: 1.1; letter-spacing: -0.3px; margin-top: 1mm !important; color: #1d4e64; }
  .bhc-p-tile .bhc-p-sub { margin-top: 1mm !important; }
  .bhc-p-t-main { background: #1d4e64; border-color: #1d4e64; color: #fff; }
  .bhc-p-t-main .bhc-p-big { color: #fff; }
  .bhc-p-t-main .bhc-p-k,
  .bhc-p-t-main .bhc-p-sub { color: rgba(255, 255, 255, 0.8); }
  /* a single sum: label left, amount right */
  .bhc-p-tiles:not(.bhc-p-three) .bhc-p-tile {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 6mm;
  }
  .bhc-p-tiles:not(.bhc-p-three) .bhc-p-k { grid-row: 1 / span 2; font-size: 9pt; }
  .bhc-p-tiles:not(.bhc-p-three) .bhc-p-big { grid-column: 2; font-size: 22pt; margin: 0 !important; text-align: right; }
  .bhc-p-tiles:not(.bhc-p-three) .bhc-p-sub { grid-column: 2; text-align: right; }
  .bhc-p-t-refund { background: #f3e1d8; border-color: #f3e1d8; }
  .bhc-p-t-refund .bhc-p-big { font-size: 15pt; color: #a3502f; }

  /* cost table */
  .bhc-p-table { width: 100%; border-collapse: collapse; }
  .bhc-p-table th,
  .bhc-p-table td {
    padding: 1mm 0 1mm 4mm;
    border-bottom: 1px solid #e3dccf;
    text-align: right;
    vertical-align: top;
    white-space: nowrap;
  }
  .bhc-p-table th:first-child,
  .bhc-p-table td:first-child { padding-left: 0; text-align: left; white-space: normal; }
  .bhc-p-table thead th { font-size: 7.5pt; font-weight: 600; color: #6e7b85; border-bottom: 1px solid #1d4e64; }
  .bhc-p-table .bhc-p-ils { font-size: 8pt; color: #6e7b85; padding-left: 2.5mm; }
  .bhc-p-table tfoot td { font-weight: 700; color: #1d4e64; border-top: 1.5px solid #1d4e64; border-bottom: 0; }
  #chat-print tr { break-inside: avoid; }

  /* purchase tax regime */
  .bhc-p-regime > div {
    display: flex;
    justify-content: space-between;
    gap: 6mm;
    padding: 1mm 0;
    border-bottom: 1px solid #e3dccf;
    break-inside: avoid;
  }
  .bhc-p-regime > div:first-child { border-top: 1px solid #e3dccf; }
  .bhc-p-regime dt { color: #6e7b85; }
  .bhc-p-regime dd { text-align: right; font-weight: 700; }

  /* equity, loan, monthly payment */
  .bhc-p-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3mm; }
  .bhc-p-regime + .bhc-p-stats { margin-top: 3mm; }
  .bhc-p-stats .bhc-p-stat { background: #fff; border-radius: 2.5mm; padding: 2mm 3.5mm; break-inside: avoid; }
  .bhc-p-stat-text .bhc-p-v { font-size: 9pt; line-height: 1.3; }

  /* answers, two columns */
  .bhc-p-answers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8mm; }
  .bhc-p-answers > div { padding: 0.9mm 0; border-bottom: 1px solid #e3dccf; break-inside: avoid; }
  .bhc-p-answers dt { font-size: 7.5pt; color: #6e7b85; }
  .bhc-p-answers dd { font-weight: 600; }

  /* notes with a terracotta accent */
  .bhc-p-notes {
    margin-top: 5mm;
    padding: 3mm 4.5mm 3.5mm;
    background: #fff;
    border-left: 1.2mm solid #c96b47;
    border-radius: 0 2.5mm 2.5mm 0;
    break-inside: avoid;
  }
  .bhc-p-notes .bhc-p-h { margin: 0 0 1.5mm !important; color: #a3502f; }
  .bhc-p-notes ul { padding-left: 4mm !important; }
  .bhc-p-notes li { list-style: disc; margin: 0.8mm 0; }

  /* sources and disclaimer, small */
  .bhc-p-fine { font-size: 6.5pt; line-height: 1.25; color: #4a4644; }
  .bhc-p-fine .bhc-p-h { font-size: 7pt; margin-top: 4mm !important; margin-bottom: 1.5mm !important; }
  .bhc-p-src { columns: 2; column-gap: 8mm; }
  .bhc-p-src li { list-style: none; margin: 0 0 0.8mm; break-inside: avoid; }
  .bhc-p-src a { color: #1d4e64; text-decoration: none; font-weight: 600; }
  .bhc-p-url { display: block; color: #6e7b85; word-break: break-all; }
  .bhc-p-disc { margin-top: 1.5mm !important; }

  /* contact footer at the end of the sheet */
  .bhc-p-foot {
    margin: 4mm 14mm 0 !important;
    padding: 2mm 0 0 !important;
    border-top: 1.5px solid #1d4e64;
    font-size: 8pt;
    font-weight: 600;
    color: #1d4e64;
    text-align: center;
    break-inside: avoid;
  }
}
