/* Bellaris Engine 1.3 · common Wetpet-family chart presentation. No inline CSS / JS. */
.bec-chart,.bec-sources,.bec-page-scroll{width:100%;min-width:0;color:#253143;font:inherit}
.bec-readout{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px 18px;padding:0 2px 12px;font-size:15px;color:#647188}
.bec-readout strong{color:#253143;font-size:16px;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
.bec-canvas{min-width:0;overflow:hidden}
.bec-time-svg{display:block;width:100%;height:auto;outline-offset:2px;touch-action:pan-y}
.bec-grid{stroke:#e8ecf2;stroke-dasharray:3 5}
.bec-axis{font:11px system-ui,sans-serif;fill:#7d899c}
.bec-line{fill:none;stroke:#ed9657;stroke-width:3;stroke-linecap:round}
.bec-data-point{fill:#fff;stroke:#ed9657;stroke-width:2.2}
.bec-point{fill:white;stroke:#ed9657;stroke-width:3}
.bec-crosshair{stroke:#e8a87e;stroke-dasharray:4 4}
.bec-values{border-top:1px solid #edf0f4;font-size:13px;color:#647188;padding-top:13px;margin-top:8px}
.bec-values summary{cursor:pointer;font-weight:600}
.bec-table-wrap{max-height:240px;overflow:auto;margin-top:12px}
.bec-table-wrap table{width:100%;border-collapse:collapse}
.bec-table-wrap th,.bec-table-wrap td{text-align:left;padding:9px 7px;line-height:1.4}
.bec-table-wrap th{font-weight:700;color:#253143}
.bec-sources{display:grid;gap:18px}
.bec-donut-layout{display:grid;grid-template-columns:minmax(170px,.8fr) minmax(0,1fr);align-items:center;gap:clamp(16px,3vw,36px)}
.bec-donut-svg{display:block;width:min(100%,250px);height:auto;aspect-ratio:1;margin:auto}
.bec-donut-svg circle{transition:opacity .15s,stroke-width .15s}
.bec-total{font:750 26px system-ui,sans-serif;fill:#253143;letter-spacing:-.7px}
.bec-legend{list-style:none!important;padding:0!important;margin:0!important;min-width:0}
.bec-legend li{margin:0;padding:0;border-bottom:1px solid #f0f2f6}
.bec-legend li:last-child{border-bottom:0}
.bec-legend button{display:grid;width:100%;grid-template-columns:12px minmax(0,1fr) auto auto;align-items:center;gap:10px;background:none;border:0;border-radius:8px;padding:10px 5px;font:13px system-ui,sans-serif;text-align:left;color:#253143;cursor:pointer}
.bec-legend button:hover,.bec-legend button[aria-pressed="true"]{background:#f6f7fa}
.bec-legend button:focus-visible{outline:2px solid #ed9657;outline-offset:1px}
.bec-legend svg{flex:none;width:12px;height:12px}
.bec-legend span{min-width:0;overflow-wrap:anywhere}
.bec-legend strong{font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
.bec-legend small{font-size:12px;color:#7d899c;min-width:57px;text-align:right;font-variant-numeric:tabular-nums}
.bec-source-guide{border-top:1px solid #eef0f4;padding-top:14px;min-width:0}
.bec-source-guide summary{cursor:pointer;display:list-item;font-size:14px;font-weight:650;color:#536377}
.bec-source-guide dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px;margin:15px 0 0}
.bec-source-guide dt{font-size:13px;font-weight:650}
.bec-source-guide dd,.bec-source-guide p,.bec-help,.bec-empty p{font-size:12px;line-height:1.6;color:#77859a;margin:5px 0 0}
.bec-empty{padding:28px 0;text-align:center}
.bec-empty strong{font-size:16px}
.bec-page-scroll{overflow-x:auto;overscroll-behavior-inline:contain;padding:3px 0 6px;scrollbar-width:thin}
.bec-page-scroll:focus-visible{outline:2px solid #ed9657;outline-offset:2px}
.bec-page-columns{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(74px,1fr);gap:12px;min-width:100%;align-items:end}
.bec-page-column{min-width:74px;display:grid;grid-template-rows:auto 148px minmax(40px,auto);gap:9px;justify-items:stretch;align-items:end;text-align:center}
.bec-page-column>strong{font-size:20px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
.bec-page-column svg{width:100%;height:148px;display:block}
.bec-page-column>span{color:#68758a;font-size:12px;line-height:1.35;overflow-wrap:anywhere;align-self:start}
.bec-transitions h3{font-size:20px;margin:0 0 16px}
.bec-transitions ul{list-style:none;padding:0;margin:0;display:grid;gap:13px}
.bec-transitions li{display:flex;justify-content:space-between;gap:15px;font-size:14px}
.bec-transitions li span{overflow-wrap:anywhere;min-width:0}
@media(max-width:650px){.bec-donut-layout{grid-template-columns:minmax(0,1fr);gap:16px}.bec-donut-svg{width:min(70%,230px)}.bec-legend button{font-size:13px;padding:11px 4px}.bec-source-guide dl{grid-template-columns:1fr}.bec-page-columns{gap:7px}.bec-page-column{min-width:67px;grid-template-rows:auto 130px minmax(45px,auto)}.bec-page-column svg{height:130px}.bec-page-column>strong{font-size:16px}.bec-page-column>span{font-size:11px}.bec-readout{font-size:14px}.bec-readout strong{font-size:15px}}


/* Shared Bellaris Engine interaction: source explanation opens directly below its item. */
.bec-legend .bec-source-detail{
  margin:0 5px 10px 22px;
  padding:8px 10px;
  color:#607762;
  background:#f4f7ef;
  border-left:3px solid #9bb66d;
  border-radius:0 7px 7px 0;
  font-size:11px;
  line-height:1.65;
  overflow-wrap:anywhere;
}
.bec-legend .bec-source-detail[hidden]{display:none}
.bec-legend button[aria-expanded="true"]{background:#f2f6eb}

/* Wetpet visual foundation for Bellaris charts: green tone, compact captions. */
.bae-engine .bec-chart,.bae-engine .bec-sources,.bae-engine .bec-page-scroll{color:#263d3b}
.bae-engine .bec-grid{stroke:#e7eddf}
.bae-engine .bec-axis{fill:#758567;font-size:10px}
.bae-engine .bec-line{stroke:#397b68;stroke-width:2.5}
.bae-engine .bec-data-point{fill:#fff;stroke:#397b68;stroke-width:2.2}
.bae-engine .bec-point{fill:#fff;stroke:#397b68;stroke-width:2}
.bae-engine .bec-crosshair{stroke:#b2c79e}
.bae-engine .bec-readout{color:#728363;font-size:12px}
.bae-engine .bec-readout strong{color:#54794e;font-size:13px;font-weight:600}
.bae-engine .bec-legend li{border-bottom:0}
.bae-engine .bec-legend button{display:flex;gap:8px;padding:10px 4px;color:#263d3b;border-radius:7px;font-size:11px}
.bae-engine .bec-legend button:hover,.bae-engine .bec-legend button[aria-pressed="true"]{background:#f2f6eb}
.bae-engine .bec-legend button:focus-visible{outline-color:#397b68}
.bae-engine .bec-legend svg{flex:0 0 10px;width:10px;height:10px}
.bae-engine .bec-legend span{flex:1}
.bae-engine .bec-legend strong{font-size:11px;font-weight:600}
.bae-engine .bec-legend small{font-size:9px;color:#758567;min-width:38px}
.bae-engine .bec-total{fill:#345743;font-weight:600;font-size:26px}
.bae-engine .bec-page-column>strong{font-size:13px;font-weight:650;color:#263d3b}
.bae-engine .bec-page-column>span{color:#425e4f;font-weight:700;font-size:10px}
.bae-engine .bec-help,.bae-engine .bec-empty p{color:#758567;font-size:11px}
.bae-engine .bec-source-detail{color:#607762}
@media(max-width:650px){.bae-engine .bec-legend button{font-size:11px}.bae-engine .bec-page-column>span{font-size:10px}}


/* Bellaris Engine: a dedicated Wetpet-style information icon and focused modal. */
.bec-legend li{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.bec-legend li>button[data-bec-source]{flex:1 1 0;min-width:0;width:auto}
.bec-legend .bec-source-info{
  flex:0 0 32px;display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;min-width:32px;min-height:32px;padding:0;
  color:#397b68;background:transparent;border:0;
  border-radius:50%;font:700 13px/1 system-ui,sans-serif;cursor:pointer;
}
.bec-source-question{
  display:grid;place-items:center;width:22px;height:22px;flex:none;
  color:#397b68;background:#f1f6ed;border:1px solid #aac6b2;
  border-radius:50%;font:700 13px/1 system-ui,sans-serif
}
.bec-legend .bec-source-info:hover .bec-source-question,.bec-legend .bec-source-info:focus-visible .bec-source-question{
 color:#153f38;background:#e4edb9;border-color:#6b9a87
}
.bec-legend .bec-source-info:focus-visible,.bec-source-modal-close:focus-visible{outline:3px solid #397b68;outline-offset:3px}
.bec-source-modal{
  position:fixed;inset:0;margin:auto;box-sizing:border-box;
  width:min(430px,calc(100vw - 32px));max-height:calc(100vh - 40px);
  padding:26px 27px 25px;overflow:auto;color:#193e34;
  background:#fff;border:1px solid #dce8d5;border-radius:18px;
  box-shadow:0 28px 70px rgba(15,49,39,.23);font:inherit;text-align:left;
}
.bec-source-modal:not([open]){display:none}
.bec-source-modal::backdrop{background:rgba(13,39,32,.45);backdrop-filter:blur(3px)}
.bec-source-modal-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}
.bec-source-modal-symbol{
  display:grid;place-items:center;width:32px;height:32px;border-radius:50%;
  background:#eaf1df;border:1px solid #d3e3c9;color:#28634e;font:700 17px/1 system-ui,sans-serif;
}
.bec-source-modal-close{
  display:grid;place-items:center;width:32px;height:32px;border:1px solid #e1eadc;
  border-radius:9px;background:#f6f8f2;color:#446958;cursor:pointer;
  font:400 24px/1 system-ui,sans-serif;
}
.bec-source-modal-close:hover{background:#eaf1df}
.bec-source-modal h3.bec-source-modal-title{
  display:block;margin:0 0 12px;font-size:19px;line-height:1.32;
  color:#193e34;font-weight:700;letter-spacing:-.025em;
}
.bec-source-modal .bec-source-modal-description{
  font-size:13px;line-height:1.7;color:#476454;margin:0;
}
.bec-source-modal .bec-source-modal-note{
  margin:20px 0 0;padding-top:15px;border-top:1px solid #e5ebdf;
  font-size:11px;line-height:1.6;color:#7d907a;
}
@media(max-width:450px){
 .bec-source-modal{padding:22px 19px 21px;border-radius:15px}
 .bec-source-modal h3.bec-source-modal-title{font-size:18px}
}


/* Bellaris-specific selector weight: the circular info control must not inherit row-button padding. */
.bae-engine .bec-legend .bec-source-info{
 display:inline-flex;flex:0 0 32px;align-items:center;justify-content:center;
 width:32px;height:32px;min-width:32px;min-height:32px;padding:0;gap:0;
 border:0;border-radius:50%;background:transparent;color:#397b68;
 font:700 13px/1 system-ui,sans-serif;
}
.bae-engine .bec-legend .bec-source-info:hover{background:transparent}
.bae-engine .bec-legend .bec-source-info:hover .bec-source-question{background:#e4edb9;color:#153f38}
