/* Benny P2 panel (benny_panel.js). PB palette: navy #044474, lime #a2dc2e, light-blue accents.
   Desktop: panel to the right of the avatar, as tall as the video. <=768px: bottom sheet under the avatar. */
.call.with-panel { max-width: 1280px; }
.call.with-panel .stage { flex-direction: row; gap: 14px; align-items: stretch; min-height: min(620px, 74vh); }
body.embed .call.with-panel .stage { min-height: 0; }
.call.with-panel .frame { flex: 1 1 60%; min-width: 0; }

.bp-panel { flex: 0 0 38%; max-width: 480px; min-width: 300px; position: relative; background: #fff; border-radius: 10px;
            border-top: 4px solid #a2dc2e; box-shadow: 0 2px 10px rgba(4, 68, 116, .10); color: #14354c; }
.bp-panel[hidden] { display: none; }
/* The inner box is absolutely positioned so the panel never makes the row taller than the video. */
.bp-inner { position: absolute; inset: 0; display: flex; flex-direction: column; min-height: 0; }
.bp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; }
.bp-eyebrow { color: #4d6a80; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bp-toggle { display: none; background: none; border: 0; color: #044474; font-weight: 700; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.bp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 12px; }
.bp-title { color: #044474; font-size: 20px; margin: 2px 0 10px; padding-bottom: 6px; border-bottom: 3px solid #a2dc2e; display: inline-block; }
.bp-sub { color: #044474; font-size: 15px; margin: 14px 0 6px; }
.bp-empty p { color: #4d6a80; }
.bp-meta { color: #4d6a80; font-size: 13px; margin: 4px 0; }
.bp-note { color: #4d6a80; font-size: 12.5px; margin: 6px 0 0; }

.bp-table-wrap { overflow-x: auto; border: 1px solid #cfe0f1; border-radius: 8px; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bp-table thead th { background: #044474; color: #fff; text-align: left; padding: 8px 10px; font-weight: 700; vertical-align: bottom; }
.bp-table thead th.bp-corner { background: #044474; }
.bp-table tbody th { background: #e8f1fa; color: #044474; text-align: left; font-weight: 700; padding: 7px 10px; width: 34%; }
.bp-table td { padding: 7px 10px; border-top: 1px solid #e1ebf5; vertical-align: top; }
.bp-table tbody tr:nth-child(even) td { background: #f6faff; }

.bp-sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 12.5px; }
.bp-sources-label { color: #4d6a80; font-weight: 700; }
.bp-source { background: #e8f1fa; color: #044474; border: 0; border-radius: 999px; padding: 3px 10px; font: inherit; cursor: pointer; text-decoration: underline; }
.bp-source-plain { cursor: default; text-decoration: none; }

.bp-pill { display: inline-block; background: #a2dc2e; color: #044474; font-weight: 700; border-radius: 999px; padding: 5px 14px; margin: 0 0 6px; }
.bp-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 8px 0; font-size: 14px; }
.bp-facts dt { color: #044474; font-weight: 700; }
.bp-facts dd { margin: 0; }
.bp-list { margin: 0; padding-left: 20px; line-height: 1.45; font-size: 14px; }
.bp-list li { margin: 3px 0; }
.bp-list li::marker { color: #6fa8dc; font-weight: 700; }

.bp-button { display: inline-block; margin-top: 12px; border-radius: 999px; padding: 10px 22px; font-weight: 700; text-decoration: none;
             border: 2px solid #044474; color: #044474; background: #fff; }
.bp-primary { background: #a2dc2e; border-color: #a2dc2e; color: #044474; }
.bp-primary:hover { background: #b5e655; }
.bp-link { display: inline-block; margin-top: 8px; background: none; border: 0; padding: 0; font: inherit; font-weight: 700;
           color: #044474; text-decoration: underline; cursor: pointer; }
.bp-card { background: #f3f8fd; border: 1px solid #cfe0f1; border-left: 4px solid #6fa8dc; border-radius: 8px; padding: 12px 14px; }
.bp-card-text { margin: 0; font-size: 17px; font-weight: 700; color: #044474; }

.bp-doc { width: 100%; height: calc(100% - 78px); min-height: 360px; margin-top: 8px; border: 1px solid #cfe0f1; border-radius: 8px; background: #f6faff; }
.bp-video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #0b2238; }

.bp-choices { list-style: none; margin: 0; padding: 0; }
.bp-choices li { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #e1ebf5; }
.bp-choice { background: none; border: 0; padding: 0; text-align: left; font: inherit; font-weight: 700; color: #044474; cursor: pointer; text-decoration: underline; }

.bp-recent { border-top: 1px solid #e1ebf5; padding: 8px 14px 10px; }
.bp-recent:empty { display: none; }
.bp-recent-title { color: #4d6a80; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.bp-recent-list { list-style: none; display: flex; gap: 6px; overflow-x: auto; margin: 0; padding: 0 0 2px; }
.bp-chip { white-space: nowrap; border: 1px solid #cfe0f1; background: #fff; color: #044474; border-radius: 999px; padding: 5px 12px;
           font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bp-chip-current { background: #044474; border-color: #044474; color: #fff; }

@media (max-width: 768px) {
  .call.with-panel .stage { flex-direction: column; gap: 10px; min-height: 0; }
  .call.with-panel .frame { flex: none; }
  body.embed .call.with-panel .frame { flex: 1 1 auto; min-height: 220px; }
  .bp-panel { flex: none; width: 100%; max-width: none; min-width: 0; border-radius: 16px 16px 10px 10px; }
  .bp-inner { position: static; max-height: 52vh; }
  .bp-panel.bp-collapsed .bp-body, .bp-panel.bp-collapsed .bp-recent { display: none; }
  .bp-toggle { display: inline-block; }
  /* Phone browsers don't render PDFs inside an iframe: open the page in the browser's own viewer instead. */
  .bp-doc { display: none; }
  .bp-doc-open { display: inline-block; margin-top: 10px; border-radius: 999px; padding: 10px 22px; text-decoration: none;
                 background: #a2dc2e; color: #044474; }
  .bp-title { font-size: 18px; }
}
