/* ============================================================================
   Blog posts: a white reading panel on the dark site, and the Synthesis boxes.
   Loaded after site-dark.css, so it can put dark ink back inside the panel.
   The site stays dark around it. The text column stays 740px wide: the panel is
   836px with 48px of padding each side.
   ========================================================================== */

/* ---------- trust line ---------- */
.bp-trust{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;}
.bp-trust li{font-size:13px;line-height:1;padding:8px 12px;border-radius:999px;color:#D6D1EE;
  border:1px solid rgba(244,242,252,.18);background:rgba(244,242,252,.05);}

/* ---------- the panel ---------- */
body.site-dark .bp-paper{background:#fff;color:#2D2850;border-radius:22px;padding:44px 48px 40px;
  box-shadow:0 24px 70px rgba(0,0,0,.4);}
body.site-dark .bp-paper .bp-body{color:#2D2850;}
body.site-dark .bp-paper h2,body.site-dark .bp-paper h3{color:#161232;}
body.site-dark .bp-paper .bp-body a{color:#2B2AE0;}
body.site-dark .bp-paper .bp-body a:hover{color:#1D1CBA;}
body.site-dark .bp-paper .bp-body strong{color:#161232;}
body.site-dark .bp-paper .bp-body li::marker{color:#8A84A8;}
body.site-dark .bp-paper .bp-body ol > li::marker{color:#2B2AE0;}
body.site-dark .bp-paper .bp-body blockquote{color:#453F63;border-left-color:#A07FE0;}
body.site-dark .bp-paper .bp-body code{background:#F1F0FF;color:#1D1CBA;overflow-wrap:anywhere;}
body.site-dark .bp-paper .bp-body hr{background:#EFEDF7;}

body.site-dark .bp-paper .bp-answer{background:#F4F3FF;border-color:#DEDCF8;}
body.site-dark .bp-paper .bp-answer-lab{color:#2B2AE0;}
body.site-dark .bp-paper .bp-answer p{color:#161232;}

body.site-dark .bp-paper .bp-tbl{background:#fff;border-color:#E8E6F2;}
body.site-dark .bp-paper .bp-tbl th,body.site-dark .bp-paper .bp-tbl td{color:#2D2850;border-bottom-color:#F1F0F8;}
body.site-dark .bp-paper .bp-tbl thead th{color:#5F5980;background:#F7F6FC;border-bottom-color:#E8E6F2;}
body.site-dark .bp-paper .bp-tbl tbody tr:hover td{background:#FBFAFF;}

body.site-dark .bp-paper .bp-faq-item{background:#fff;border-color:#E8E6F2;}
body.site-dark .bp-paper .bp-faq-item[open]{border-color:#D6D3F7;}
body.site-dark .bp-paper .bp-faq-item summary{color:#161232;}
body.site-dark .bp-paper .bp-faq-item summary::after{border-color:#2B2AE0;}
body.site-dark .bp-paper .bp-faq-a,body.site-dark .bp-paper .bp-faq-a p{color:#453F63;}

body.site-dark .bp-paper .bp-author{background:#FBFAFE;border-color:#E8E6F2;}
body.site-dark .bp-paper .bp-author-lab,body.site-dark .bp-paper .bp-author-role{color:#5F5980;}
body.site-dark .bp-paper .bp-author b{color:#161232;}
body.site-dark .bp-paper .bp-author p{color:#453F63;}

/* charts inside the panel: the light look they were drawn for */
body.site-dark .bp-paper .sfig{background:#fff;border-color:#E8E6F2;}
body.site-dark .bp-paper .sfig .t-lab,body.site-dark .bp-paper .sfig .t-small{fill:#6E688C;}
body.site-dark .bp-paper .sfig .t-val{fill:#161232;}
body.site-dark .bp-paper .sfig text.t-val,body.site-dark .bp-paper .sfig text.t-small{stroke:#fff;}
body.site-dark .bp-paper .sfig-cap{border-top-color:#EFEDF7;}
body.site-dark .bp-paper .sfig-key,body.site-dark .bp-paper .sfig-note{color:#5F5980;}
body.site-dark .bp-paper .sfig-note b{color:#161232;}
body.site-dark .bp-paper .sfig-mail{background:#fff;border-color:#E8E6F2;}
body.site-dark .bp-paper .sfig-mail .m-top{color:#6E688C;}
body.site-dark .bp-paper .sfig-mail .m-sub{color:#161232;}
body.site-dark .bp-paper .sfig-mail .m-rows,body.site-dark .bp-paper .sfig-mail .m-row{background:#FBFAFE;}
body.site-dark .bp-paper .sfig-mail .m-row .k{color:#5F5980;}
body.site-dark .bp-paper .sfig-mail .m-row .v{color:#161232;}
body.site-dark .bp-paper .sfig-mail .m-note{background:#F4F3FF;color:#2D2850;}
body.site-dark .bp-paper .sfig-mail .m-note b{color:#161232;}

/* calculators inside the panel */
body.site-dark .bp-paper .bp-calc{background:#F7F6FF;border-color:#DEDCF8;color:#2D2850;}
body.site-dark .bp-paper .bp-calc *{color:#2D2850;}
body.site-dark .bp-paper .bp-calc b,body.site-dark .bp-paper .bp-calc strong{color:#161232;}
body.site-dark .bp-paper .bp-calc-field{background:#fff;border-color:#D6D3E8;color:#161232;}
body.site-dark .bp-paper .bp-calc-out div{background:#fff;}
body.site-dark .bp-paper .bp-calc-out .em{background:#ECEBFF;}

/* ---------- shared pieces of the Synthesis boxes ---------- */
.bs-q{display:inline-block;background:#2B2AE0;color:#fff;font-size:14px;line-height:1.35;font-weight:500;
  padding:8px 12px;border-radius:12px 12px 3px 12px;}
.bs-a{font-size:14.5px;line-height:1.5;margin-top:9px;}
.bs-a b{font-weight:700;}
.bs-src{font:500 11px/1.4 'JetBrains Mono',ui-monospace,monospace;margin-top:8px;transition:opacity .3s;}
a.bs-btn{display:block;text-align:center;background:#2B2AE0;color:#fff;font-weight:650;font-size:14.5px;line-height:1;
  padding:12px 14px;border-radius:999px;text-decoration:none;transition:background .2s,transform .2s;}
a.bs-btn:hover{background:#1D1CBA;color:#fff;transform:translateY(-1px);}

/* ---------- side card ---------- */
.bs-side-lab{padding-right:52px;}
.bs-side{position:relative;flex:none;border-radius:16px;padding:14px;color:#ECEAFB;
  border:1px solid rgba(160,127,224,.4);
  background:radial-gradient(220px 130px at 100% 0%,rgba(160,127,224,.34),transparent 70%),#151137;}
.bs-tag{position:absolute;top:13px;right:13px;font:500 9.5px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.1em;
  text-transform:uppercase;color:#C9C8FF;}
.bs-side-lab{display:block;font-weight:700;font-size:13.5px;color:#fff;margin-bottom:10px;}
.bs-slides{display:grid;margin-bottom:12px;}
.bs-slide{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .5s;}
.bs-slide.is-on{opacity:1;visibility:visible;}
.bs-side .bs-q{font-size:13px;}
.bs-side .bs-a{font-size:13.5px;}
.bs-side .bs-a b{color:#fff;}
.bs-side .bs-src{color:#9A93C4;}
.bs-fine{display:block;text-align:center;font-size:12px;color:#B5AEDA;margin-top:8px;}
/* A short screen keeps the buy card and lets the contents list scroll. */
@media (max-height:700px){.bs-side .bs-src{display:none;}}

/* ---------- mid-post box ---------- */
.bs-mid{display:flex;align-items:center;gap:22px;margin:34px 0;padding:20px 22px;border-radius:18px;
  background:#F4F3FF;border:1px solid #DEDCF8;}
.bs-mid-ask{flex:1;min-width:0;}
.bs-mid-lab{display:block;font:500 11px/1.3 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.06em;
  text-transform:uppercase;color:#5F5980;margin-bottom:10px;}
body.site-dark .bp-paper .bs-mid .bs-a{color:#2D2850;font-size:15.5px;}
body.site-dark .bp-paper .bs-mid .bs-a b{color:#161232;}
body.site-dark .bp-paper .bs-mid .bs-src{color:#6E688C;}
body.site-dark .bp-paper .bs-mid a.bs-btn{flex:none;color:#fff;text-decoration:none;padding:13px 20px;}
@media (max-width:640px){.bs-mid{display:block}.bs-mid a.bs-btn{margin-top:14px}}

/* ---------- end box ---------- */
.bs-end{padding:38px 40px 30px;}
.bs-end .bp-cta-lab{color:#C9C8FF;}
.bs-end h2{font-size:38px;line-height:1.08;letter-spacing:-.035em;margin:0 0 12px;max-width:640px;}
.bs-end p{max-width:620px;margin:0 0 24px;}
.bs-chat{position:relative;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);border-radius:18px;
  padding:18px;box-shadow:0 18px 40px rgba(0,0,0,.25);}
.bs-chat-lab{display:block;font:500 11px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;color:#B9B5DA;margin-bottom:12px;}
.bs-chips{display:flex;flex-wrap:wrap;gap:8px;}
.bs-chip{font:500 14px/1.3 'Instrument Sans',system-ui,sans-serif;color:#fff;background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:9px 14px;cursor:pointer;transition:background .2s,border-color .2s;}
.bs-chip:hover{background:rgba(255,255,255,.16);}
.bs-chip.is-on{background:#2B2AE0;border-color:#6A69F5;}
.bs-chip:focus-visible{outline:2px solid #fff;outline-offset:2px;}
.bs-reply{min-height:104px;margin-top:14px;padding:14px 16px;border-radius:12px;background:rgba(11,9,32,.55);}
.bs-reply .bs-a{margin:0;font-size:18px;line-height:1.45;color:#ECEAFB;}
.bs-reply .bs-a b{color:#fff;}
.bs-reply .bs-src{color:#9A93C4;}
.bs-proof{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0 22px;}
.bs-proof div{padding:12px 4px 0;border-top:1px solid rgba(255,255,255,.16);}
.bs-proof b{display:block;font:800 24px/1.1 'Bricolage Grotesque',system-ui,sans-serif;color:#fff;letter-spacing:-.02em;}
.bs-proof span{display:block;font-size:13px;line-height:1.35;color:#B9B5DA;margin-top:5px;}
.bs-end-act{display:flex;flex-wrap:wrap;align-items:center;gap:10px;}
.bs-end-act .bp-cta-fine{flex-basis:100%;margin-top:6px;}
.bs-ways{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.12);}
.bs-ways>span{font:500 11px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:#B9B5DA;}
.bs-ways ul{display:flex;flex-wrap:wrap;gap:6px 14px;list-style:none;margin:0;padding:0;}
.bs-ways li{font-size:13.5px;color:#ECEAFB;}

/* ---------- phone bar ---------- */
.bs-bar{position:fixed;left:10px;right:10px;bottom:10px;z-index:110;display:flex;align-items:center;gap:10px;justify-content:space-between;
  padding:9px 9px 9px 14px;border-radius:14px;background:#161232;border:1px solid rgba(160,127,224,.5);box-shadow:0 12px 34px rgba(0,0,0,.45);}
.bs-bar[hidden]{display:none;}
.bs-bar span{font-size:13px;line-height:1.3;color:#ECEAFB;}
.bs-bar a{flex:none;min-height:40px;line-height:20px;background:#fff;color:#161232;font-weight:650;font-size:13.5px;padding:10px 13px;border-radius:10px;text-decoration:none;}
@media (min-width:1101px){.bs-bar{display:none;}}

/* ---------- charts on phones and tablets ----------
   A drawing 1000 units wide shrinks its words below reading size on a narrow
   screen, so charts from the chart maker carry a second version built from plain
   rows that fits any width. Older hand-drawn charts keep their swipe. */
.sfig-narrow{display:none;}
@media (max-width:900px){
  .sfig-made .sfig-scroll{display:none;}
  .sfig-made .sfig-narrow{display:block;}
}
.sr-title{font:500 12px/1.4 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;color:#6E688C;margin-bottom:14px;}
.sr{margin-bottom:13px;}
.sr-top{display:flex;justify-content:space-between;gap:12px;font-size:14.5px;line-height:1.3;color:#2D2850;margin-bottom:5px;}
.sr-top b{flex:none;font-weight:700;color:#161232;}
.sr-track{height:14px;border-radius:4px;background:#F1F0F8;overflow:hidden;}
.sr-track i{display:block;height:100%;border-radius:3px;}
.sr-line{display:block;width:100%;height:170px;overflow:visible;}
.sr-x{display:flex;justify-content:space-between;gap:6px;margin-top:8px;font-size:12.5px;line-height:1.25;color:#6E688C;}
.sr-keys{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px;font-size:14px;color:#2D2850;}
.sr-keys i{display:inline-block;width:12px;height:4px;border-radius:2px;margin-right:6px;vertical-align:middle;}
.sr-keys b{color:#161232;}
/* Older hand-drawn charts: on narrow screens the whole drawing keeps a fixed size
   and swipes inside its card, so its words stay readable and never collide. */
@media (max-width:900px){
  .bp-body .sfig-scroll svg{min-width:820px;}
  .bp-body .sfig .t-lab,.bp-body .sfig .t-small{font-size:14px;letter-spacing:.04em;}
  .bp-body .sfig .t-val{font-size:16px;}
  .bp-body .sfig-scroll::after{content:"swipe to see the whole chart";display:block;
    font:400 12px 'JetBrains Mono',ui-monospace,monospace;color:#6E688C;padding-top:6px;}
}
/* Wider screens: small chart words stay at reading size. */
@media (min-width:901px){
  .bp-body .sfig .t-lab,.bp-body .sfig .t-small{font-size:15px;letter-spacing:.05em;}
  .bp-body .sfig .t-val{font-size:16px;}
}

/* ---------- phones ---------- */
@media (max-width:720px){
  .bp-layout{padding-left:10px;padding-right:10px;}
  body.site-dark .bp-paper{padding:26px 18px 24px;border-radius:16px;}
  .bs-end{padding:28px 20px 24px;}
  .bs-end h2{font-size:29px;}
  .bs-proof{grid-template-columns:1fr 1fr;}
  .bs-reply .bs-a{font-size:16.5px;}
}
