/* Front page, after filter.baulab.info (Bootstrap 4 layout + a small set of overrides). */
body, td, th {
  font-family: 'Open Sans', sans-serif;
  color: #1f1e1c;
}

/* in-text links: the site's dark matte blue instead of Bootstrap's default #007bff
   (header / footer / nav / buttons keep their own, more specific link colours) */
a { color: #002E4D; }
a:hover, a:focus { color: #00466E; }

h2 {
  margin-top: 3ex;
  font-weight: 400;
}

.nd-pageheader {
  padding: 2rem 15px;
  margin-bottom: 1.5rem;
  color: white;
  text-align: center;
  background-color: #002E4D;
}

.nd-pageheader a {
  color: #e4f1fe;
}

.nd-pageheader h1 {
  margin-bottom: 0.75rem;
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.3;
}

.nd-pageheader address {
  font-weight: 300;
  margin-bottom: 0;
}

.nd-pagefooter {
  color: white;
  margin-top: 2.5rem;
  padding: 1rem;
  text-align: center;
  background-color: #002E4D;
  font-size: 14px;
}

.nd-pagefooter a {
  color: #e4f1fe;
}

.link-thumbs a {
  display: inline-block;
  padding: 1rem;
  vertical-align: top;
  color: #002E4D;
}

.link-thumbs img {
  height: 100px;
  width: 78px;
  border: 1px solid #1f1e1c;
  margin: 0 38px 6px;
  background: #fff;
}

.link-thumbs .soon {
  color: #8f8b82;
}

.summary {
  max-width: 1020px;
  margin: 0 auto 1rem;
}

.summary p {
  text-align: justify;
}

figure.center_image {
  margin: 30px auto 10px;
  text-align: center;
}

figure.center_image img {
  width: 100%;
  max-width: 1100px;
}

figcaption {
  display: block;
  text-align: center;
  font-size: 13px;
  margin-top: 6px;
  color: #4a4a4a;
}

.placeholder {
  border: 1px dashed #c9c5bc;
  border-radius: 8px;
  background: #f7f6f3;
  padding: 1.25rem 1.5rem;
  color: #6f6b63;
}

.demo-cta {
  display: inline-block;
  padding: 0 8px;
  background-color: #002E4D;
  color: white;
  border-radius: 4px;
  white-space: nowrap;
}

.demo-cta:hover {
  color: white;
  background-color: #00466E;
  text-decoration: none;
}

pre.citation {
  background: #f7f6f3;
  border-radius: 6px;
  padding: 1rem;
  font-size: 13px;
  white-space: pre-wrap;
}

@media (max-width: 600px) {
  .link-thumbs img {
    margin: 0 12px 6px;
  }
  .nd-pageheader h1 {
    font-size: 1.75rem;
  }
}

/* ---- 2026-10-29: take-away layout ---- */
.nd-pageheader .authors {
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.7;
}

.nd-pageheader .authors a {
  white-space: nowrap;
}

/* two rows of five authors; on narrow screens the names simply wrap */
.nd-pageheader .authors .author-row {
  display: block;
}

.nd-pageheader .authors .row-comma {
  display: none;
}

@media (max-width: 760px) {
  .nd-pageheader .authors .author-row { display: inline; }
  .nd-pageheader .authors .row-comma { display: inline; }
}

ul.tldr {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

ul.tldr li {
  margin-bottom: 0.5rem;
  text-align: left;
}

section.takeaway {
  position: relative;
  max-width: 1020px;
  margin: 3.5rem auto 0;
}

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

.criteria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 1rem 0 1.25rem;
}

.crit {
  border-radius: 8px;
  padding: 0.9rem 1rem 0.6rem;
  border-top: 4px solid;
  background: #f7f6f3;
}

.crit h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.crit p {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.crit-pre { border-color: #4a6fa5; }
.crit-pla { border-color: #3f8f5a; }
.crit-per { border-color: #b86a1f; }

ul.findings {
  padding-left: 1.2rem;
}

ul.findings li {
  margin-bottom: 0.55rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 4px;
  vertical-align: 1px;
}

.tag-pre { background: #4a6fa5; }
.tag-pla { background: #3f8f5a; }
.tag-per { background: #b86a1f; }

.predictions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 1rem 0 0.5rem;
}

.pred {
  border: 1px solid #e3e0d8;
  border-left: 4px solid #002E4D;
  border-radius: 6px;
  padding: 0.8rem 1rem;
}

.pred-q {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.pred-a {
  font-size: 0.95rem;
  color: #3a3935;
}

.pred-open {
  border-left-color: #b9b5ad;
  background: #f7f6f3;
}

p.limits {
  font-size: 0.95rem;
  color: #4a4a4a;
  border-top: 1px solid #e3e0d8;
  padding-top: 0.8rem;
}

@media (max-width: 760px) {
  .criteria, .predictions {
    grid-template-columns: 1fr;
  }
}

figure.nrgs-fig {
  position: relative;
}

.anim-btn {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 3px 12px;
  font-size: 13px;
  color: #002E4D;
  background: #fff;
  border: 1px solid #002E4D;
  border-radius: 14px;
  cursor: pointer;
}

.anim-btn:hover,
.anim-btn[aria-pressed="true"] {
  color: #fff;
  background: #002E4D;
}

/* ---- 2026-10-29: structure ideas from gaze.baulab.info and agentsofchaos.baulab.info ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

nav.secnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 46, 77, 0.97);
  font-size: 14px;
}

nav.secnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
}

nav.secnav a {
  color: #e4f1fe;
  margin-left: 18px;
}

nav.secnav a.brand {
  margin-left: 0;
  font-weight: 600;
  color: #fff;
}

nav.secnav a.nav-demo {
  padding: 2px 10px;
  border: 1px solid #e4f1fe;
  border-radius: 12px;
}

nav.secnav a:hover {
  color: #fff;
  text-decoration: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1020px;
  margin: 1.5rem auto 0;
}

.stat {
  text-align: center;
  padding: 0.9rem 0.6rem;
  border-radius: 8px;
  background: #f7f6f3;
}

.stat .num {
  font-size: 1.9rem;
  font-weight: 700;
  color: #002E4D;
  line-height: 1.2;
}

.stat .num .vs {
  font-size: 1rem;
  font-weight: 400;
  color: #77736b;
}

.stat .lbl {
  font-size: 0.88rem;
  color: #4a4a4a;
  margin-top: 0.25rem;
}

.card.tryit {
  max-width: 1020px;
  margin: 1.5rem auto 0;
  border-color: #002E4D;
}

.card.tryit .card-body {
  display: flex;
  gap: 28px;
  align-items: center;
}

.tryit-text {
  flex: 1 1 55%;
}

.tryit-example {
  flex: 1 1 45%;
  position: relative;
  background: #fbfaf7;
  border: 1px solid #e3e0d8;
  border-radius: 8px;
  padding: 14px 16px 12px;
}

.tryit-example pre {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #1f2328;
}

.tryit-example .dim {
  color: #9aa1ab;
}

.tryit-example .pin {
  background: #ffe08a;
  box-shadow: 0 0 0 1.5px #f2708a;
  border-radius: 3px;
  padding: 0 2px;
}

.tryit-example .bubble {
  display: inline-block;
  font-style: italic;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
}

table.models {
  max-width: 720px;
  font-size: 0.92rem;
}

table.models td:not(:first-child),
table.models th:not(:first-child) {
  text-align: right;
}

p.note {
  font-size: 0.85rem;
  color: #77736b;
}

.cite-card {
  margin-bottom: 1rem;
}

.cite-card .card-header {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy-btn {
  font-size: 12px;
  padding: 2px 10px;
  border: 1px solid #002E4D;
  border-radius: 12px;
  background: #fff;
  color: #002E4D;
  cursor: pointer;
}

.copy-btn:hover {
  background: #002E4D;
  color: #fff;
}

.cite-card pre.citation {
  margin: 0;
}

@media (max-width: 760px) {
  nav.secnav .links a:not(.nav-demo) {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .card.tryit .card-body {
    flex-direction: column;
    align-items: stretch;
  }
}

table.models code {
  color: #1f1e1c;
}

.link-thumbs img.landscape {
  width: 134px;
  height: 76px;
  margin: 12px 10px 18px;
  object-fit: cover;
}

/* NRGS insights: one expandable card per row */
.insights {
  max-width: 1020px;
  margin: 18px auto 10px;
}

.insight {
  border: 1px solid #d6d3cc;
  border-left: 4px solid #002E4D;
  border-radius: 4px;
  background: #fff;
  margin-bottom: 12px;
}

.insight > summary {
  display: block;
  cursor: pointer;
  padding: 14px 44px 14px 18px;
  position: relative;
  list-style: none;
}

.insight > summary::-webkit-details-marker { display: none; }

.insight > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 22px;
  line-height: 1;
  color: #002E4D;
}

.insight[open] > summary::after { content: "\2212"; }

.insight .ins-title {
  display: block;
  font-weight: 700;
  font-size: 1.08rem;
  color: #002E4D;
}

.insight .ins-brief {
  display: block;
  margin-top: 4px;
}

.insight .ins-refs, li.finding-more .ins-refs {
  display: inline-block;
  margin-top: 6px;
  padding: 0 8px;
  font-size: 12px;
  color: #5b5850;
  background: #f1efe9;
  border-radius: 10px;
}

.insight ul {
  margin: 0 18px 14px 18px;
  padding: 12px 0 0 20px;
  border-top: 1px solid #ece9e2;
}

.insight li { margin-bottom: 8px; }

/* nested, expandable experiment set-ups inside an insight card */
.sub-insights {
  margin: 0 18px 14px;
  padding-top: 12px;
  border-top: 1px solid #ece9e2;
}

.sub-insight {
  border: 1px solid #ece9e2;
  border-radius: 4px;
  background: #fbfaf7;
  margin-bottom: 8px;
}

.sub-insight summary {
  cursor: pointer;
  padding: 10px 40px 10px 14px;
  position: relative;
  list-style: none;
}

.sub-insight summary::-webkit-details-marker { display: none; }

.sub-insight summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 8px;
  font-size: 20px;
  color: #002E4D;
}

.sub-insight[open] > summary::after { content: "\2212"; }

.sub-insight figure {
  margin: 4px 14px 14px;
  background: #fff;
  padding: 10px;
  border-radius: 4px;
}

.sub-insight figure img { max-width: 100%; }

.level-tabs {
  display: flex;
  gap: 6px;
  margin: 2px 14px 0;
}

.level-tabs button {
  border: 1px solid #d6d3cc;
  background: #fff;
  color: #002E4D;
  border-radius: 14px;
  padding: 2px 14px;
  font-size: 14px;
}

.level-tabs button[aria-selected="true"] {
  background: #002E4D;
  border-color: #002E4D;
  color: #fff;
}

.insight .ins-body {
  margin: 0 18px 14px;
  padding-top: 8px;
  border-top: 1px solid #ece9e2;
}

.insight .ins-body figure img { max-width: 100%; }

/* the talk's stick-figure cartoons inside the criteria cards */
.crit .crit-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.2rem 0 0.5rem;
}

/* a finding bullet that expands to its figure, caption on the right */
ul.findings li.finding-more { list-style: none; margin-left: -1.2rem; }

li.finding-more summary {
  cursor: pointer;
  padding-left: 1.2rem;
  position: relative;
  list-style: none;
}

li.finding-more summary::-webkit-details-marker { display: none; }

li.finding-more summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: -1px;
  font-weight: 700;
  color: #002E4D;
}

li.finding-more details[open] > summary::before { content: "\2212"; }

/* a pill after the persistence bullet, so it reads as clickable */
li.finding-more summary::after {
  content: "Show figure \25BE";
  display: inline-block;
  margin-left: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  color: #fff;
  background: #b86a1f;
  border-radius: 10px;
  vertical-align: 1px;
  white-space: nowrap;
}

li.finding-more summary:hover::after { background: #9a5716; }

li.finding-more details[open] > summary::after { content: "Hide figure \25B4"; }

figure.fig-side {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 12px 0 8px 1.2rem;
  padding: 14px;
  background: #fff;
  border: 1px solid #ece9e2;
  border-radius: 4px;
}

figure.fig-side img { flex: 0 0 60%; max-width: 60%; height: auto; }

figure.fig-side figcaption {
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
  color: #4a4a4a;
}

figure.fig-side .c-same { color: #0f8a7e; font-weight: 600; }
figure.fig-side .c-diff { color: #c4501c; font-weight: 600; }

@media (max-width: 760px) {
  figure.fig-side { flex-direction: column; }
  figure.fig-side img { max-width: 100%; }
}
