* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background: #f7f8fa;
  color: #1f2937;
}


.site-header {
  background: #16324f;
  color: white;
  padding: 28px 0;
}


.header-inner {
  width: 92%;
  max-width: 1450px;
  margin: auto;
}

.account-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  font-size: 0.85rem;
}

.account-usage span { opacity: 0.9; }


.site-header h1 {
  margin: 0;
  font-size: 30px;
}


.site-header p {
  margin-top: 7px;
  color: #dbe7f1;
}


.main-container {
  width: 92%;
  max-width: 1450px;
  margin: 30px auto;
}


/* SEARCH */


.search-section {
  background: white;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid #dce3ea;
}


.search-section h2 {
  margin-top: 0;
}


.search-box {
  display: flex;
  gap: 10px;
}


.search-box input {
  flex: 1;
  padding: 15px 16px;
  font-size: 16px;
  border: 1px solid #9ca9b6;
  border-radius: 5px;
}


.search-box input:focus {
  outline: 2px solid #79a9d1;
  border-color: #326891;
}


button {
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}


#searchButton {
  padding: 13px 28px;
  background: #326891;
  color: white;
  font-weight: bold;
}


#searchButton:hover {
  background: #204f73;
}


.semantic-search-control {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  color: #34495e;
  cursor: pointer;
}


.semantic-search-control input {
  margin-top: 3px;
}


.semantic-search-control span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


.semantic-search-control small {
  color: #657789;
}


/* STATUS */


.status {
  background: #eaf3f9;
  border-left: 4px solid #326891;
  padding: 15px 18px;
  margin-top: 20px;
}


/* TOOLBAR */


.results-toolbar {
  margin-top: 28px;
  background: white;
  border: 1px solid #dce3ea;
  padding: 20px;

  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}


.results-toolbar h2 {
  margin: 0;
}


.results-toolbar p {
  margin-bottom: 0;
  color: #5f6b76;
}


.toolbar-controls {
  display: flex;
  gap: 15px;
  align-items: end;
  flex-wrap: wrap;
}


.toolbar-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #4b5563;
}


.toolbar-controls select {
  min-width: 130px;
  padding: 9px;
  border: 1px solid #aab4be;
  border-radius: 4px;
}


.analyse-button {
  background: #287a4b;
  color: white;
  padding: 11px 17px;
  font-weight: bold;
}


.analyse-button:hover {
  background: #1f623c;
}


/* MAIN RESULT LAYOUT */


.results-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 25px;
  margin-top: 22px;
}


/* FILTER PANEL */


.filter-panel {
  background: white;
  border: 1px solid #dce3ea;
  align-self: start;
}


.filter-header {
  padding: 18px;
  border-bottom: 1px solid #dce3ea;

  display: flex;
  justify-content: space-between;
  align-items: center;
}


.filter-header h3 {
  margin: 0;
  font-size: 18px;
}


.reset-link {
  background: none;
  color: #326891;
  padding: 0;
  text-decoration: underline;
}


.filter-group {
  border-bottom: 1px solid #e3e8ed;
}


.filter-heading {
  width: 100%;
  background: white;
  padding: 16px 18px;
  text-align: left;
  font-weight: bold;
  color: #25364a;
  font-size: 15px;
}


.filter-heading:hover {
  background: #f6f8fa;
}


.filter-content {
  padding: 0 18px 16px;
}


.filter-option {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 11px 0;
  font-size: 14px;
  line-height: 1.4;
}


.filter-option input {
  width: 16px;
  height: 16px;
}


.custom-date-range {
  margin-top: 12px;
  background: #f6f8fa;
  padding: 12px;
}


.custom-date-range label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}


.custom-date-range input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #adb7c1;
}


.apply-filters-button {
  width: calc(100% - 36px);
  margin: 18px;
  padding: 11px;
  background: #326891;
  color: white;
  font-weight: bold;
}


/* ACTIVE FILTER TAGS */


.active-filters {
  background: white;
  border: 1px solid #dce3ea;
  padding: 12px 15px;
  margin-bottom: 15px;
}


.filter-chip {
  display: inline-block;
  background: #e8f0f6;
  color: #23445e;
  margin: 4px;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
}


/* PAPER RESULTS */


.paper-list {
  display: grid;
  gap: 13px;
}


.paper-card {
  background: white;
  border: 1px solid #dce3ea;
  padding: 20px;

  display: flex;
  gap: 14px;
}


.paper-card:hover {
  border-color: #9eb6c8;
}

.paper-card-selected {
  border-color: #287a4b;
  box-shadow: 0 0 0 2px rgba(40, 122, 75, 0.14);
}


.paper-card > input {
  margin-top: 6px;
  width: 17px;
  height: 17px;
}


.paper-content {
  min-width: 0;
  flex: 1;
}


.paper-content h3 {
  margin: 0 0 10px;
  color: #1d4f78;
  font-size: 19px;
  line-height: 1.35;
}

.status[aria-busy="true"]::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 9px;
  border: 2px solid #9db8ca;
  border-top-color: #326891;
  border-radius: 50%;
  animation: search-spin 0.8s linear infinite;
}

@keyframes search-spin { to { transform: rotate(360deg); } }

.provider-notice {
  margin-top: 12px;
  padding: 13px 16px;
  border-left: 4px solid #b7791f;
  background: #fff8e8;
  color: #694b16;
}

.selection-count { color: #536170; font-size: 13px; }
.analyse-button:disabled { background: #aeb8b1; cursor: not-allowed; }
.abstract-details { margin-top: -5px; margin-bottom: 14px; }
.abstract-details summary { color: #1f638e; cursor: pointer; font-weight: 600; }
.why-matched { padding: 9px 11px; background: #f3f7fa; color: #41566a !important; font-size: 13px; }


.paper-title-link {
  color: inherit;
  text-decoration: none;
}


.paper-title-link:hover,
.paper-title-link:focus {
  color: #326891;
  text-decoration: underline;
}


.paper-meta {
  color: #536170;
  font-size: 14px;
  line-height: 1.5;
}


.paper-content p {
  line-height: 1.65;
  color: #303b46;
}


.paper-link {
  display: inline-block;
  margin-top: 5px;
  color: #1f638e;
  font-weight: bold;
  text-decoration: none;
}


.paper-link:hover {
  text-decoration: underline;
}


.paper-resource-panel {
  flex: 0 0 175px;
  border-left: 1px solid #dce3ea;
  padding-left: 18px;
}


.paper-resource-panel section + section {
  margin-top: 22px;
}


.paper-resource-panel h4 {
  margin: 0 0 9px;
  color: #657789;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.resource-action {
  display: block;
  margin-top: 7px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #285f91;
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}


.resource-action:hover,
.resource-action:focus {
  background: #19496f;
}


.resource-action-open {
  background: #eef5f9;
  border: 1px solid #9eb6c8;
  color: #1d4f78;
}


.resource-action-open:hover,
.resource-action-open:focus {
  background: #dfeef6;
}


/* PAGINATION */


.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 30px 0;
}


.pagination-controls button {
  background: #326891;
  color: white;
  padding: 11px 20px;
}


.pagination-controls button:disabled {
  background: #aeb8c1;
  cursor: not-allowed;
}


#pageIndicator {
  font-weight: bold;
}


/* ANALYSIS */


.analysis-section {
  margin-top: 35px;
  padding: 30px;
  background:
    linear-gradient(145deg, #f8fbff 0%, #eef4fa 100%);
  border: 1px solid #d7e2ed;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(22, 50, 79, 0.09);
}


.paper-identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 9px;
  font-size: 13px;
}


.paper-identifiers a {
  color: #326891;
  text-decoration: none;
  overflow-wrap: anywhere;
}


.paper-identifiers a:hover {
  text-decoration: underline;
}


.analysis-section > h2 {
  margin: 0 0 24px;
  color: #16324f;
  font-size: 28px;
  letter-spacing: -0.4px;
}


.analysis-section > h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 11px;
  background: linear-gradient(90deg, #326891, #5ba3c7);
  border-radius: 999px;
}


.analysis-card {
  background: white;
  padding: 26px;
  border: 1px solid rgba(198, 213, 227, 0.8);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(22, 50, 79, 0.07);
}


.analysis-card h3 {
  margin-top: 0;
  color: #16324f;
  font-size: 19px;
  letter-spacing: -0.15px;
}


.analysis-card p:last-child {
  margin-bottom: 0;
}


.evidence-stat-card,
.evidence-fact-card {
  border: 1px solid;
  box-shadow: 0 7px 18px rgba(38, 72, 94, 0.08);
}


.evidence-snapshot-title::after {
  content: " ✦";
  color: #59aee7;
}


.evidence-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 18px;
  border-radius: 12px;
}


.evidence-card-icon {
  display: inline-flex;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 25px;
  font-weight: bold;
  color: currentColor;
  background: rgba(255, 255, 255, 0.62);
}


.evidence-stat-number {
  color: #112c46;
  font-size: 27px;
  font-weight: bold;
}


.evidence-stat-label {
  margin-top: 3px;
  color: #405b73;
}


.evidence-stat-card:nth-child(1) { color: #287dcc; background: linear-gradient(145deg, #f8fbff, #edf5ff); border-color: #bddbf7; }
.evidence-stat-card:nth-child(2) { color: #3b9b55; background: linear-gradient(145deg, #fbfefb, #edf8ef); border-color: #c9e6d0; }
.evidence-stat-card:nth-child(3) { color: #7a55bf; background: linear-gradient(145deg, #fdfbff, #f4effc); border-color: #ddcff4; }
.evidence-stat-card:nth-child(4) { color: #df701e; background: linear-gradient(145deg, #fffdf9, #fff3e9); border-color: #f3d5bd; }
.evidence-stat-card:nth-child(5) { color: #1596a7; background: linear-gradient(145deg, #fbfeff, #eaf8fa); border-color: #bde4e9; }


.evidence-fact-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 20px;
  border-radius: 12px;
}


.evidence-fact-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}


.evidence-fact-heading small {
  color: #18354f;
  font-size: 13px;
  line-height: 1.4;
}


.evidence-fact-value {
  margin-top: 18px;
  color: #102a43;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.35;
}


.evidence-source-pill {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 11px;
  border-radius: 999px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.25;
}


.fact-theme-1 { color: #287dcc; background: linear-gradient(145deg, #fbfdff, #edf5ff); border-color: #bddbf7; }
.fact-theme-2 { color: #369451; background: linear-gradient(145deg, #fdfffd, #edf8ef); border-color: #c9e6d0; }
.fact-theme-3 { color: #7853b8; background: linear-gradient(145deg, #fefcff, #f4effc); border-color: #ddcff4; }
.fact-theme-4 { color: #d8731e; background: linear-gradient(145deg, #fffefa, #fff5e8); border-color: #f1d8ad; }
.fact-theme-5 { color: #138fa2; background: linear-gradient(145deg, #fbfeff, #eaf8fa); border-color: #bde4e9; }
.fact-theme-6 { color: #c54d78; background: linear-gradient(145deg, #fffafd, #fceef4); border-color: #f1cad9; }
.fact-theme-7 { color: #1293a3; background: linear-gradient(145deg, #fbfeff, #eaf8fa); border-color: #bde4e9; }
.fact-theme-8 { color: #397dcb; background: linear-gradient(145deg, #fbfdff, #edf4ff); border-color: #c5d9f3; }
.fact-theme-9 { color: #4b984d; background: linear-gradient(145deg, #fdfffc, #eff8e9); border-color: #cfe5c5; }
.fact-theme-10 { color: #cf661e; background: linear-gradient(145deg, #fffdf9, #fff3e9); border-color: #f1d5b9; }


.evidence-synthesis-card,
.evidence-relevance-card {
  padding: 30px 34px;
  overflow: hidden;
}


.evidence-synthesis-card {
  border-color: #b8d8f6;
  background: linear-gradient(140deg, #fafdff 0%, #eef7ff 100%);
}


.evidence-relevance-card {
  position: relative;
  border-color: #cbe1b1;
  background: linear-gradient(140deg, #fefff9 0%, #f4faed 100%);
}


.evidence-relevance-card::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 28px;
  width: 110px;
  height: 52px;
  opacity: 0.28;
  background-image: radial-gradient(#91be66 2px, transparent 2px);
  background-size: 14px 14px;
}


.themed-analysis-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 25px !important;
}


.themed-analysis-heading::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 70px;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}


.themed-heading-icon {
  display: inline-flex;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 29px;
}


.evidence-synthesis-card .themed-analysis-heading {
  color: #255fae;
}


.evidence-synthesis-card .themed-heading-icon {
  background: #dfedff;
}


.evidence-synthesis-text {
  margin: 12px 2% 0 70px;
  color: #18354f;
  font-size: 16px;
  line-height: 1.9;
}


.evidence-relevance-card .themed-analysis-heading {
  color: #16733c;
}


.evidence-relevance-card .themed-heading-icon {
  background: #e1f3df;
}


.relevance-item {
  position: relative;
  z-index: 1;
  margin: 22px 0 0 70px;
}


.relevance-paper-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid #cce1b6;
  border-radius: 10px;
  color: #275a36;
  background: rgba(244, 250, 237, 0.9);
}


.relevance-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 50%;
  background: #39b96b;
}


.relevance-detail {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  padding: 20px 24px;
  border: 1px solid #d8e8c6;
  border-left: 5px solid #35b86a;
  border-radius: 10px;
  color: #264638;
  background: rgba(250, 253, 246, 0.88);
}


.relevance-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #23894a;
  background: #e5f5e2;
  font-size: 24px;
  font-weight: bold;
}


.relevance-classification {
  color: #176f3b;
  font-size: 16px;
  letter-spacing: 0.5px;
}


.relevance-detail p {
  margin: 7px 0 0;
  line-height: 1.65;
}


.paper-extraction-card,
.insight-card,
.confidence-card,
.evidence-boundary-card {
  padding: 30px 34px;
}


.paper-extraction-card {
  border-color: #c7d9ee;
  background: linear-gradient(140deg, #fcfdff, #f0f5fb);
}


.paper-extraction-card .themed-analysis-heading {
  color: #356b9d;
}


.paper-extraction-card .themed-heading-icon {
  background: #e5eff9;
}


.paper-detail-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #cfdeec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(36, 74, 106, 0.06);
}


.paper-detail-title {
  margin: -24px -24px 20px !important;
  padding: 18px 24px;
  border-bottom: 1px solid #d5e2ee;
  border-radius: 12px 12px 0 0;
  color: #244f78 !important;
  background: #eaf2fa;
}


.paper-detail-card > p {
  display: inline-block;
  width: calc(50% - 12px);
  margin: 6px 8px 6px 0;
  padding: 12px 14px;
  vertical-align: top;
  border-radius: 8px;
  color: #324d65;
  background: #f4f8fc;
  line-height: 1.55;
}


.paper-list-section {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #dce7f0;
  border-radius: 9px;
  background: #fbfdff;
}


.analysis-insight-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  line-height: 1.7;
}


.analysis-insight-list li {
  position: relative;
  padding: 13px 16px 13px 42px;
  border: 1px solid rgba(94, 120, 143, 0.13);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
}


.analysis-insight-list li::before {
  content: "✓";
  position: absolute;
  top: 13px;
  left: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
}


.insight-interpretation {
  color: #68509a;
  border-color: #d9cef0;
  background: linear-gradient(140deg, #fefcff, #f5f0fc);
}


.insight-gaps {
  color: #b64d70;
  border-color: #efcada;
  background: linear-gradient(140deg, #fffafd, #fdf0f5);
}


.insight-methods {
  color: #147d83;
  border-color: #bfe2e2;
  background: linear-gradient(140deg, #fbffff, #eaf8f7);
}


.insight-variables {
  color: #366fad;
  border-color: #c5daf2;
  background: linear-gradient(140deg, #fbfdff, #edf5ff);
}


.insight-questions {
  color: #a66a27;
  border-color: #ead4b6;
  background: linear-gradient(140deg, #fffdf9, #faf2e7);
}


.insight-card .themed-analysis-heading {
  color: currentColor;
}


.insight-card .themed-heading-icon {
  background: rgba(255, 255, 255, 0.68);
}


.confidence-card {
  color: #26734e;
  border-color: #c6dfd0;
  background: linear-gradient(140deg, #fbfffc, #edf8f1);
}


.confidence-card .themed-analysis-heading {
  color: #26734e;
}


.confidence-card .themed-heading-icon {
  background: #def1e5;
}


.confidence-level {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 8px 18px;
  border: 1px solid #b9dbc6;
  border-radius: 999px;
  color: #17633e;
  background: #e2f3e8;
  font-size: 20px;
  font-weight: bold;
}


.confidence-card > p:last-child,
.evidence-boundary-card > p:last-child {
  color: #365648;
  line-height: 1.75;
}


.evidence-boundary-card {
  color: #ad6920;
  border-color: #efd1a8;
  border-left: 5px solid #dc8529;
  background: linear-gradient(140deg, #fffdf9, #fff3e5);
}


.evidence-boundary-card .themed-analysis-heading {
  color: #a95e17;
}


.evidence-boundary-card .themed-heading-icon {
  background: #fbe4c7;
}

/* Evidence Analyser 2.0 */
.evidence-report { display: grid; gap: 16px; }
.report-section { border: 1px solid #d9e4eb; border-radius: 14px; background: #fff; overflow: hidden; }
.report-section > summary { cursor: pointer; list-style: none; padding: 18px 22px; font-size: 1.08rem; font-weight: 750; color: #173b55; display: flex; align-items: center; gap: 10px; }
.report-section > summary::-webkit-details-marker { display: none; }
.report-section > summary > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e5f1f7; color: #176b85; font-size: .85rem; }
.report-section-body { border-top: 1px solid #e4ecef; padding: 22px; }
.research-question small { color: #617480; text-transform: uppercase; letter-spacing: .06em; }
.research-question h3 { margin: 5px 0 18px; }
.evidence-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; }
.evidence-overview-grid > div { background: #f3f8fa; border-radius: 10px; padding: 14px; display: grid; gap: 4px; }
.evidence-overview-grid strong { font-size: 1.45rem; color: #145d73; }
.evidence-overview-grid span { color: #536975; font-size: .86rem; }
.evidence-dimensions { margin-top: 16px; }
.bottom-line { font-size: 1.08rem; line-height: 1.7; }
.next-step, .suggestion-note, .availability-note { margin-top: 16px; padding: 14px 16px; border-radius: 9px; background: #fff5df; color: #664813; }
.next-step strong { display: block; margin-bottom: 4px; }
.citation-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.citation-badges span { border-radius: 999px; background: #e6f1f4; color: #155d70; font-weight: 700; padding: 3px 9px; font-size: .8rem; }
.study-table-wrap { overflow-x: auto; }
.study-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.study-table th, .study-table td { text-align: left; vertical-align: top; border-bottom: 1px solid #e2eaee; padding: 10px; }
.study-table th { color: #35515e; background: #f4f8fa; }
.report-list { display: grid; gap: 10px; padding-left: 22px; }
.quantitative-item, .conflict-item { border-left: 3px solid #78aebe; padding: 10px 14px; margin: 10px 0; }
.quantitative-item > span { display: block; margin-top: 4px; }
.suggestions li > span { display: inline-block; margin-right: 8px; color: #754f00; background: #fff0bd; border-radius: 999px; padding: 2px 7px; font-size: .76rem; font-weight: 700; }
.study-card { border: 1px solid #dce6ea; border-radius: 10px; margin: 10px 0; padding: 0 16px; }
.study-card > summary { cursor: pointer; padding: 16px 0; display: grid; gap: 5px; }
.study-card > summary span { color: #60727c; font-size: .88rem; }
.study-card > div { border-top: 1px solid #e5ecef; padding: 14px 0 18px; }
.study-field { display: grid; grid-template-columns: minmax(150px, .35fr) 1fr; gap: 14px; padding: 7px 0; }
.study-field strong { text-transform: capitalize; }

@media (max-width: 700px) {
  .report-section > summary, .report-section-body { padding: 16px; }
  .study-field { grid-template-columns: 1fr; gap: 3px; }
}


@media (max-width: 700px) {

  .evidence-fact-card {
    min-height: 0;
  }


  .evidence-synthesis-card,
  .evidence-relevance-card {
    padding: 24px 20px;
  }


  .evidence-synthesis-text,
  .relevance-item {
    margin-left: 0;
  }


  .paper-extraction-card,
  .insight-card,
  .confidence-card,
  .evidence-boundary-card {
    padding: 24px 20px;
  }


  .paper-detail-card > p {
    width: 100%;
  }
}


/* FOOTER */


footer {
  margin-top: 60px;
  background: #16324f;
  color: #d3dde6;
  text-align: center;
  padding: 24px;
}


.hidden {
  display: none !important;
}


/* RESPONSIVE */


@media (max-width: 1000px) {

  .results-layout {
    grid-template-columns: 1fr;
  }


  .filter-panel {
    width: 100%;
  }


  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

}


@media (max-width: 700px) {

  .main-container,
  .header-inner {
    width: 95%;
  }


  .search-box {
    flex-direction: column;
  }


  .toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }


  .toolbar-controls select {
    width: 100%;
  }

}

.upload-evidence { margin: 20px 0; padding: 20px; border: 1px solid #cad7e3; border-radius: 12px; background: #f6f9fc; }
#uploadDropZone { padding: 20px; margin-top: 12px; border: 2px dashed #8299ae; border-radius: 8px; }
#uploadStatuses { overflow-wrap: anywhere; }

/* Descriptive source-reported evidence; charts render entirely in this browser. */
.quantitative-evidence { margin-top: 1.5rem; }
.quantitative-evidence button { margin: .4rem 0 1rem; }
.quantitative-table { min-width: 760px; width: max-content; }
.quantitative-table th, .quantitative-table td { min-width: 105px; }
.quantitative-table td:first-child { min-width: 145px; }
.quantitative-table td:nth-child(2) { min-width: 180px; }
.quantitative-table td { vertical-align: top; max-width: 300px; overflow-wrap: anywhere; }
.quantitative-table blockquote { margin: .5rem 0; white-space: pre-wrap; }
.quantitative-table tr:focus { outline: 2px solid #256c87; outline-offset: -2px; }
.quantitative-group { margin: 1.2rem 0; padding-top: .7rem; border-top: 1px solid #d9e3e7; }
.quantitative-group h5 { font-size: 1rem; margin: .5rem 0; }
.source-data-label { color: #225769; font-weight: 600; }
.comparison-caution { border-left: 3px solid #ad7832; padding: .6rem .8rem; background: #fff9ed; }
.comparison-reasons { font-size: .85rem; overflow-wrap: anywhere; }
.evidence-chart { position: relative; height: 340px; margin: 1rem 0; }
.evidence-chart:has(.chart-fallback:not([hidden])) { min-height: 80px; }
.evidence-chart canvas { max-width: 100%; }
.chart-source-links { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .85rem; }
@media (max-width: 600px) { .evidence-chart { height: 300px; } }

.thesis-entry { display: inline-block; color: #d5f3ff; margin-left: .8rem; font-weight: 600; }
