/* V4: a connected research reader. Load after the presentation refinements. */
.workspace-enhanced .workspace-reader-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e0e7db;
}
.workspace-reader-views {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  gap: 3px;
  border: 1px solid #dce5d4;
  border-radius: 8px;
  background: #f3f6ee;
}
.workspace-reader-views button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #53644d;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  transition: color 180ms, background-color 180ms, box-shadow 180ms;
}
.workspace-reader-views button[aria-pressed="true"] {
  background: #fff;
  color: #193c29;
  border-color: #dce4d4;
  box-shadow: 0 2px 4px #1839240b;
}
.workspace-reader-views .ui-icon { width: 16px; height: 16px; }
.workspace-reader-edition { color: #62735a; font-size: 11px; }
.workspace-enhanced .research-document,
.workspace-enhanced .report-paper { scroll-margin-top: 112px; }
.workspace-enhanced .research-document:focus,
.workspace-enhanced .report-paper:focus { outline: none; }
.workspace-enhanced .research-document:focus-visible,
.workspace-enhanced .report-paper:focus-visible { outline: 2px solid #658b41; outline-offset: -5px; }
.workspace-enhanced .document-meta { font-size: 11px; }
.workspace-research-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: -5px 0 24px;
}
.workspace-research-facts > span,
.workspace-research-facts > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #e0e7d8;
  border-radius: 6px;
  color: #4b6340;
  background: #fafcf7;
  font-size: 11px;
  line-height: 1.3;
}
.workspace-research-facts strong { color: #25472d; font-weight: 650; }
.workspace-research-facts .ui-icon { width: 14px; height: 14px; margin-right: 2px; color: #6a8258; }
.workspace-research-facts > button { transition: background-color 180ms, border-color 180ms; }
.workspace-research-facts > button:hover { background: #eaf3df; border-color: #bccfac; }
.workspace-enhanced .finding-row {
  padding: 22px 13px;
  margin-inline: -13px;
  border-left: 2px solid transparent;
  transition: background-color 180ms, border-color 180ms;
}
.workspace-enhanced .finding-row:has(.is-current-source) {
  border-left-color: #72934b;
  background: linear-gradient(90deg, #f1f6e9, #fff 90%);
}
.workspace-enhanced .workspace-citations { max-width: 44px; padding-top: 0; gap: 7px; }
.workspace-enhanced .workspace-citation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 7px;
  border-color: #dce5d2;
  background: #f8faf4;
  color: #526d3b;
  font-size: 12px;
  font-weight: 650;
}
.workspace-enhanced .workspace-citation.is-current-source {
  background: #e3efcf;
  color: #244221;
  border-color: #adc486;
  box-shadow: inset 0 1px #fff8;
}
.workspace-market-row .workspace-citations { max-width: none; }
.workspace-enhanced .workspace-source-picker { gap: 7px; margin-bottom: 23px; }
.workspace-enhanced .workspace-source-button {
  min-width: 44px;
  height: 44px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  background: #f8fbf3;
}
.workspace-enhanced .workspace-source-button[aria-pressed="true"] {
  background: #274d32;
  color: #e5f7ce;
  border-color: #274d32;
  box-shadow: 0 3px 7px #173a2114;
}
.workspace-source-return {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 0;
  margin: -12px 0 12px;
  border: 0;
  background: transparent;
  color: #315532;
  font-size: 12px;
  font-weight: 650;
}
.workspace-source-return .ui-icon { width: 15px; height: 15px; transform: rotate(-135deg); }
.workspace-passage { overflow: hidden; margin: 0 0 23px; border: 1px solid #d7e2cc; border-radius: 7px; background: #fbfdf7; box-shadow: 0 5px 15px #21412805; }
.workspace-passage-label { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid #e1e8d8; color: #597144; font-size: 10px; font-weight: 650; letter-spacing: .15px; }
.workspace-passage-label .ui-icon { width: 14px; height: 14px; }
.workspace-enhanced .evidence-panel .workspace-passage blockquote { padding: 16px; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; color: #294729; font-size: 15px; line-height: 1.8; }
.workspace-enhanced .workspace-source-body { border-top: 0; padding-top: 0; }
.workspace-enhanced .source-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.workspace-enhanced .workspace-disclosure summary { min-height: 48px; }
.workspace-enhanced .report-paper .report-rule { height: 2px; background: linear-gradient(90deg, #3d6139 38%, #dfe6d7 38%); border: 0; }
.workspace-enhanced .workspace-download-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid #bcccaa;
  border-radius: 5px;
  background: #f7fbef;
  color: #2f5030;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms, border-color 180ms;
}
.workspace-download-button > span { display: inline-flex; align-items: center; gap: 5px; color: #617a4c; font-size: 11px; }
.workspace-download-button .ui-icon { width: 15px; height: 15px; }
.workspace-enhanced .workspace-download-button:hover { background: #e7f2d7; border-color: #98b676; }
#panel-updates .update-item { position: relative; gap: 22px; padding: 28px 0; border-top: 0; }
#panel-updates .update-item::before { content: ""; position: absolute; left: 25px; top: 84px; bottom: -22px; width: 1px; background: #d5e1c9; }
#panel-updates .update-item:last-child::before { bottom: 28px; }
#panel-updates .update-date { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; width: 52px; height: 55px; border: 1px solid #ceddbc; border-radius: 8px; background: #f0f6e7; font-size: 11px; color: #315132; text-align: center; box-shadow: 0 3px 6px #28472705; }
#panel-updates .update-date span { margin-top: 2px; color: #61764f; font-size: 10px; }
#panel-updates .update-type { display: inline-block; margin: 0 0 10px; padding: 5px 8px; border: 1px solid #dde7d3; border-radius: 4px; background: #f7faf2; color: #4c653b; font-size: 10px; }
#panel-updates .update-item h4 { font-size: 17px; line-height: 1.45; margin-top: 3px; }
#panel-updates .update-item p:not(.update-type) { font-size: 14px; line-height: 1.75; }
#panel-updates .source-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
@media (hover: hover) and (pointer: fine) {
  .workspace-reader-views button:hover { background: #e8f0dd; color: #294c2b; }
  .workspace-source-return:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 1199px) {
  .workspace-reader-edition { display: none; }
  .workspace-enhanced .workspace-research-facts { gap: 6px; }
}
@media (max-width: 760px) {
  .workspace-enhanced .workspace-reader-bar { margin-bottom: 23px; padding-bottom: 20px; }
  .workspace-reader-views { width: 100%; }
  .workspace-reader-views button { flex: 1; font-size: 13px; }
  .workspace-enhanced .document-meta { flex-wrap: wrap; }
  .workspace-enhanced .workspace-case-count { margin-left: 0; font-size: 10px; }
  .workspace-research-facts { margin-bottom: 23px; }
  .workspace-research-facts > span, .workspace-research-facts > button { padding: 8px; font-size: 10px; }
  .workspace-research-facts .ui-icon { display: none; }
  .workspace-enhanced .finding-row { padding: 20px 10px; margin-inline: -10px; gap: 12px; }
  .workspace-enhanced .finding-row h4 { font-size: 17px; }
  .workspace-enhanced .workspace-citations { max-width: 44px; }
  .workspace-enhanced .evidence-panel .workspace-passage blockquote { padding: 18px; font-size: 16px; }
  .workspace-passage-label { padding: 13px 18px; font-size: 11px; }
  .workspace-enhanced .workspace-download-button { min-height: 51px; font-size: 14px; }
  #panel-updates .update-item { gap: 16px; }
  #panel-updates .update-item h4 { font-size: 16px; }
  #panel-updates .update-item p:not(.update-type) { font-size: 14px; }
}
@media (max-width: 360px) {
  .workspace-research-facts { gap: 5px; }
  .workspace-research-facts > span, .workspace-research-facts > button { padding-inline: 6px; font-size: 9px; }
  .workspace-enhanced .finding-row { gap: 8px; }
  #panel-updates .update-item { gap: 12px; }
  #panel-updates .update-date { width: 44px; height: 50px; font-size: 10px; }
  #panel-updates .update-item::before { left: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-reader-views button, .workspace-research-facts > button, .workspace-enhanced .finding-row, .workspace-download-button { transition: none; }
}
