body {
  font-family: 'Noto Sans', sans-serif;
}


/* ===== Reusable "soft card" section system ===== */
/* A section whose content sits in a white rounded card on the tinted page bg. */
.section-card {
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(20, 35, 80, 0.06);
  padding: 2rem 2.25rem;
  margin: 0 auto 2rem;
  max-width: 860px;
}
/* Wider card for sections with large results figures. */
.section-card--wide { max-width: 1080px; }

/* A centered figure inside a section card. */
.section-fig {
  margin: 0 auto 1.5rem;
  text-align: center;
  max-width: 720px;
}
.section-fig img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.section-fig figcaption {
  margin-top: 0.6rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Section heading with a small navy accent bar to its left. */
.section-heading {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f3b73;
  margin-bottom: 1.1rem;
  padding-left: 0.85rem;
  border-left: 5px solid #1f3b73;
  line-height: 1.2;
}
.section-heading.is-centered {
  text-align: center;
  padding-left: 0;
  border-left: none;
}
.section-heading .accent { color: #a02020; }
/* Centered heading: use an underline accent instead of the left bar. */
.section-heading.is-centered::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: #1f3b73;
  margin: 0.55rem auto 0;
}

@media screen and (max-width: 600px) {
  .section-card { padding: 1.4rem 1.2rem; border-radius: 12px; }
  .section-heading { font-size: 1.4rem; }
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

/* Tighten the gap between the title/authors/buttons hero and the figure
   teaser directly below it. */
.hero:not(.teaser) .hero-body {
  padding-bottom: 0.75rem;
}
/* Tighten the gap below the figure group (before the Abstract). */
.teaser--figs .hero-body {
  padding-bottom: 0.75rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

.center-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
}

.simulation-image {
  height:  500px;
  width:  auto;
}


/* Teaser hero: left column (concept diagram + unfolded figure) and the
   landscape on the right. Columns are top-aligned and tightly spaced. */
.teaser-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
}
.teaser-duo__item {
  min-width: 0;
}
/* Left column stacks the concept diagram (top) over the unfolded figure. */
.teaser-duo__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}
/* The left column holds two wide figures, so give it the larger share. */
.teaser-duo .teaser-duo__col { flex: 1.35 1 0; }
.teaser-duo > .teaser-figure  { flex: 1.25 1 0; }
.teaser-figure--unfolded { margin: 0; }

.teaser-figure {
  text-align: center;
}
/* Both left-column figures fill the column width so they align edge-to-edge. */
.teaser-duo__col .concept-fig,
.teaser-duo__col .teaser-figure { width: 100%; margin: 0; }
.teaser-figure img,
.concept-fig svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .teaser-duo { flex-direction: column; gap: 1rem; }
  .teaser-duo__item { width: 100%; max-width: 560px; }
}


/* ===== Conceptual overview "poster" section ===== */

.poster {
  font-family: 'Google Sans', sans-serif;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 0 0 1.75rem;
  background: #fff;
}

/* When the poster lives inside a .section-card, drop its own frame. */
.poster--bare {
  border: none;
  box-shadow: none;
  padding-top: 0;
  max-width: 100%;
}
.poster--bare .poster-header { margin-top: 0; }

.poster-header {
  background: #faf3d3;
  border: 2px solid #1f3b73;
  border-radius: 8px;
  margin: 0.9rem 0.9rem 1.4rem;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f3b73;
}
.poster-header .accent {
  color: #a02020;
}

.poster-inner {
  padding: 0 1.4rem;
}

/* Full-width boxes (Goal / Key Idea) */
.poster-box {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 560px;
}
.poster-box .box-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f3b73;
  margin-bottom: 0.35rem;
}
.poster-box p {
  margin: 0;
  color: #1f3b73;
  line-height: 1.5;
}
.poster-box--goal {
  background: #eaf0fb;
  max-width: max-content;   /* just wide enough for the one-line goal text */
}
.poster-box--key  { background: #e8f3e0; }


/* ===== Core-iteration section: 6 concept boxes in a 3x2 grid ===== */
.core-grid {
  display: grid;
  /* minmax(0, 1fr) forces exactly-equal columns even when a box holds a
     wide, non-wrapping equation (plain 1fr would let it stretch its column). */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.core-box {
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  overflow: hidden;   /* never let a wide equation bleed into the next box */
}
.core-box__title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f3b73;
  margin-bottom: 0.35rem;
}
.core-box p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
}
/* Push any equation to the bottom so the boxes align nicely. */
.core-box mjx-container,
.core-box .MathJax {
  margin-top: auto;
  padding-top: 0.6rem;
  max-width: 100%;
}
/* Scale equations down slightly so even the widest ones fit their box. */
.core-box mjx-container[display="true"] {
  font-size: 84%;
}

/* Poster palette (matches the section figure). */
.core-box--blue     { background: #eaf1fb; }
.core-box--pink     { background: #f7e9e6; }
.core-box--peach    { background: #fbeede; }
.core-box--purple   { background: #f1e6f5; }
.core-box--lavender { background: #efeaf7; }
.core-box--green    { background: #e8f3e5; }
.core-box--neutral  { background: #f4f2f4; }

@media screen and (max-width: 760px) {
  .core-grid { grid-template-columns: 1fr; }
}

/* Subtitle under the deep-unfolded diagram. */
.unfold-subtitle {
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  margin: 0.25rem 0 1.25rem;
  line-height: 1.5;
  color: #333;
}
.unfold-subtitle .accent {
  color: #a02020;
  font-size: 1.25rem;
  font-weight: 700;
}

/* Full-width "connections" box below the 3-box row. */
.connections-box {
  margin-top: 1rem;
  text-align: center;
}
.connections-box .core-box__title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.connections-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 0.98rem;
  line-height: 1.7;
}
.connections-list li b { color: #1f3b73; }


/* ===== Non-convex benchmarks section ===== */
/* Top row: two callout boxes (left) + surface illustrations (right). */
.nc-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.nc-callouts {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nc-callout {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  color: #1f3b73;
  line-height: 1.5;
}
.nc-callout--cream { background: #faf3d3; }
.nc-callout--green { background: #e8f3e5; }
.nc-surfaces {
  flex: 1.15 1 0;
  margin: 0;
}
.nc-surfaces img { display: block; width: 100%; height: auto; }

/* A results figure that spans the full card width. */
.section-fig--full {
  max-width: 100%;
}

@media screen and (max-width: 760px) {
  .nc-top { flex-direction: column; }
}


/* ===== Real-world results table ===== */
.rw-callout {
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
/* Let the (wide) table scroll horizontally on small screens. */
.rw-table-wrap {
  overflow-x: auto;
}
.rw-table {
  border-collapse: collapse;
  width: 100%;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.95rem;
  color: #333;
  text-align: center;
  white-space: nowrap;
}
.rw-table thead th {
  color: #1f3b73;
  font-weight: 700;
  padding: 0.6rem 0.7rem;
  border-top: 2px solid #1f3b73;
  border-bottom: 1.5px solid #1f3b73;
}
.rw-table td {
  padding: 0.5rem 0.7rem;
}
/* Horizontal rule between problem-class groups (every 2 data rows). */
.rw-table tbody tr:nth-child(2n) td {
  border-bottom: 1px solid #d9dde4;
}
.rw-table tbody tr:last-child td {
  border-bottom: 2px solid #1f3b73;
}
.rw-table .rw-left {
  text-align: left;
  font-weight: 700;
  color: #1f3b73;
}
/* Highlight the FlowOptimizer column. */
.rw-table .rw-ours {
  background: #e8f3e5;
  color: #1f3b73;
}
.rw-table thead .rw-ours { color: #1f6b28; }

/* Row heading ("Optimization point of view:", etc.) */
.poster-rowtitle {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f3b73;
  margin-bottom: 0.9rem;
}

/* Two-card rows */
.poster-row {
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.poster-card {
  flex: 1 1 0;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  line-height: 1.5;
  text-align: center;
}
.poster-card .card-title {
  display: block;
  text-align: center;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.poster-card--purple { background: #f3e8f7; }
.poster-card--purple .card-title { color: #6a2c8f; }
.poster-card--orange { background: #fbeee0; }
.poster-card--orange .card-title { color: #a04a1e; }

.poster-card .bullet { display: block; }
.poster-card .pro { color: #1f7a34; font-weight: 700; }
.poster-card .con { color: #c0392b; font-weight: 700; }
.poster-card .plain { color: #333; }

@media screen and (max-width: 600px) {
  .poster-row { flex-direction: column; gap: 0.9rem; }
  .poster-header { font-size: 1.1rem; }
  .poster-rowtitle { font-size: 1.15rem; }
}
