.top .report-switch { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.top .report-switch a { min-height:44px; flex-direction:row; flex-wrap:wrap; gap:.3rem; font-size:.94rem; text-align:center; justify-content:center; }
.top .report-switch a strong { font-size:inherit; }
.report-workflow main,.report-workflow #advanced-page { display:none!important; }
#workflow-report { max-width:1180px; margin:auto; padding-inline:1.5rem; }
#workflow-report .section { padding-top:2rem; }
.workflow-grid,.workflow-branches { display:grid; gap:.8rem; grid-template-columns:repeat(2,minmax(0,1fr)); }
.workflow-branches { margin-top:1rem; padding-top:1rem; border-top:2px solid #bdd2cb; }
.workflow-branches a { display:block; padding:1rem; border:1px solid #bdd2cb; border-radius:10px; background:#edf6f2; color:#075e56; }
.workflow-stages { list-style:none; padding:0; margin:1.2rem 0; }
.workflow-stages li { padding:0 0 .8rem 1rem; border-left:2px solid #bdd2cb; }
.workflow-stages li:last-child { padding-bottom:0; }
.workflow-stages details,.research-reading { border:1px solid #d5e2de; border-radius:8px; padding:0 .9rem .15rem; margin:.8rem 0; min-width:0; }
.workflow-stages li details { margin:0; }
.workflow-stages summary,.research-reading summary { cursor:pointer; color:#075e56; font-weight:650; padding:.65rem 0; min-height:44px; align-content:center; }
.workflow-stages summary small { display:block; font-weight:400; color:#415d5f; padding-left:1rem; font-size:.875rem; }
.workflow-fields { display:grid; grid-template-columns:minmax(5rem,auto) 1fr; gap:.45rem .9rem; }
.workflow-fields dt { font-weight:650; color:#145951; }
.workflow-fields dd { margin:0; overflow-wrap:anywhere; }
.workflow-code { background:#edf6f2; border-radius:7px; padding:.65rem .85rem; overflow:auto; max-height:24rem; font-size:.875rem; tab-size:4; }
.workflow-stages figure { margin:1rem 0; }
.workflow-stages figure img { display:block; width:100%; height:auto; border:1px solid #d5e2de; border-radius:8px; }
.workflow-stages figcaption { font-size:.9rem; margin:.5rem 0; color:#415d5f; }
.workflow-card { margin:1rem 0; min-width:0; }
.workflow-card .table-wrap { max-height:28rem; }
.workflow-card .table-wrap th { position:sticky; top:0; background:#eaf3ef; z-index:1; }
.workflow-card code { overflow-wrap:anywhere; }
.workflow-table-meta { overflow-wrap:anywhere; }
.curve-readout { color:#075e56; font-variant-numeric:tabular-nums; min-height:1.65em; margin:.6rem 0; display:block; }
.curve-probe { touch-action:pan-y; cursor:crosshair; }
.curve-probe:focus-visible { outline:2px solid #075e56; outline-offset:-2px; }
@media(max-width:700px) {
  #workflow-report { padding-inline:.75rem; }
  .top .report-switch { gap:.3rem; padding-inline:0; }
  .top .report-switch a { padding:.35rem .2rem; line-height:1.3; font-size:.875rem; }
  .workflow-grid,.workflow-branches { grid-template-columns:1fr; }
  .workflow-fields { grid-template-columns:minmax(4rem,auto) 1fr; gap:.4rem .55rem; }
}

.research-purpose {
  color: #274c49;
  max-width: 78ch;
  line-height: 1.6;
  margin: .45rem 0 1rem;
}
#anneal-local > article { margin-block: 1rem; min-width: 0; }
#anneal-local .toolbar { margin-block: .85rem; }
#anneal-local select { max-width: 100%; }
.chart-readout {
  display: block;
  min-height: 3.25rem;
  margin-block: .65rem;
  padding: .65rem .8rem;
  border: 1px solid #c0d9d3;
  border-radius: .5rem;
  background: #f1f8f6;
  color: #153c36;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
[data-chart-reading], .curve-probe { cursor: crosshair; touch-action: manipulation; }
.chart-reading-active > .chart-bar, rect.chart-reading-active {
  stroke: #102c31;
  stroke-width: 2;
  fill-opacity: 1;
}
.chart-reading-active > .chart-marker { stroke: #102c31; stroke-width: 2; }
.research-reading .table-wrap { max-width: 100%; }
@media (max-width: 600px) {
  #anneal-local .toolbar label { width: 100%; }
  #anneal-local select { width: 100%; }
  .chart-readout { min-height: 4.5rem; }
}

#anneal-local .study-xy, #study-curves .study-xy {
  width: 100%;
  min-width: 0;
}
#anneal-local .chart-readout, #study-curves .chart-readout { max-width: 100%; }
#dipole-rings { scroll-margin-top: calc(var(--report-header-height) + 16px); }

#workflow-overview { padding-block: clamp(1rem, 4vw, 2.4rem) 1.2rem; }
#workflow-overview h1 { font-size: clamp(1.85rem, 3.9vw, 3.1rem); line-height: 1.16; }
#workflow-overview .lead { max-width: 44rem; margin-block: .6rem 1rem; }
.workflow-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 38rem;
  border-block: 1px solid #c9ded6;
  padding-block: .65rem;
  margin: 0 0 1rem;
}
.workflow-facts div { padding-inline: .65rem; }
.workflow-facts div + div { border-inline-start: 1px solid #c9ded6; }
.workflow-facts dt { font-size: .875rem; color: #465e5b; }
.workflow-facts dd { margin: .1rem 0 0; font-size: clamp(.9rem, 2vw, 1.2rem); font-weight: 700; }
.workflow-overview-rows { gap: .7rem; max-width: 54rem; }
.workflow-overview-rows > div {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .3rem;
  padding: .75rem .9rem;
  border: 1px solid #c9ded6;
  border-radius: .65rem;
  background: #fff;
}
.local-model-selection {
  padding: .75rem .9rem;
  border: 1px solid #c9ded6;
  border-radius: .65rem;
  background: #f7fbf9;
}
#anneal-local .local-model-selection .toolbar { margin: 0; }
#anneal-local .local-model-selection .chart-note { margin-bottom: 0; }
.workflow-overview-rows h2 { font-size: 1.12rem; margin: 0 0 .35rem; }
.workflow-overview-rows p { margin: 0 0 .35rem; }
.workflow-overview-rows a { font-weight: 650; }
.discussion-copy { max-width: 74ch; margin: .25rem 0 .85rem; line-height: 1.7; }
.discussion-data { margin-block: .85rem; }
@media (max-width: 700px) {
  .workflow-overview-rows { row-gap: .35rem; }
  #anneal-local .local-model-selection .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.b2-section .b2-card { margin-block: 1rem; min-width: 0; }
.b2-section .b2-card .chart { max-width: 100%; }
.b2-section .b2-card .toolbar { margin-block: .8rem; }
.b2-section .study-xy { width: 100%; min-width: 0; }
.b2-section .table-wrap { max-height: 28rem; }

.research-overview{margin:2rem 0;padding:clamp(1rem,3vw,2rem);background:#fff;border:1px solid #d6e4df;border-radius:18px;min-width:0}
.overview-heading{max-width:70ch;margin-bottom:1.25rem}
.overview-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.overview-figure{min-width:0;border:1px solid #d6e4df;border-radius:14px;padding:1rem}
.overview-figure h3{margin:0 0 .75rem}
.overview-discussion{line-height:1.7}
.overview-flow{list-style:none;display:flex;flex-wrap:wrap;gap:.65rem;padding:0}
.overview-flow li{padding:.6rem .9rem;background:#e9f3ef;border:1px solid #c7ded6;border-radius:10px}
@media(max-width:768px){.overview-charts{grid-template-columns:1fr}.overview-flow{display:grid;grid-template-columns:1fr}}

.overview-findings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.25rem}
.overview-finding{min-width:0;padding:1rem;border-radius:12px;background:#f0f7f4;border:1px solid #d4e4dd}
.overview-finding h3{margin:0 0 .5rem}
@media(max-width:768px){.overview-findings{grid-template-columns:1fr}}

.hero > .research-overview{grid-column:1 / -1}

/* The overview RDF shares the study renderer without its scrollable detail wrapper. */
.overview-figure .study-xy {
  display: block;
  width: 100%;
  min-width: 0;
}
