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

.is-max-desktop {
  max-width: 1100px;
}

.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;
  padding-bottom: 3rem;
}

.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 a {
  color: brown;
  /* width: fit-content; */
  font-weight: bold;
}

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

.publication-authors {
}

.publication-authors a {
  color: #8a8b8c;
}

.publication-authors a:hover {
  color: #a31f34;
  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;
}

/* ========================================================================== */
/* BrickCraft project page styles                                            */
/* ========================================================================== */

/* ========== CSS Variables ========== */
:root {
  --cream:  #f7f0d3;
  --pink:   #f7e9e6;
  --green:  #eff2e7;
  --blue:   #ecf1f5;
  --bg:     #f9f9f8;
  --white:  #ffffff;
  --text:   #0a0a0a;
  --text-light: #333333;
  --accent: #5b7a6e;
  --accent-dark: #3d5a4e;
  --brick:  #C26756;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --chapter-gap: 3.75rem;
  --font-heading: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding: 42px clamp(16px, 4vw, 36px) 40px;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ========== Section Spacing ========== */
.section { padding: 56px 0; }
.takeaways-section.section { padding-top: 56px; padding-bottom: calc(var(--chapter-gap) / 2); }
.method-section.section    { padding-top: calc(var(--chapter-gap) / 2); padding-bottom: calc(var(--chapter-gap) / 2); }
.skills-section.section    { padding-top: calc(var(--chapter-gap) / 2); padding-bottom: calc(var(--chapter-gap) / 2); }
.results-section.section   { padding-top: calc(var(--chapter-gap) / 2); padding-bottom: calc(var(--chapter-gap) / 2); }
.bibtex-section.section    { padding-top: calc(var(--chapter-gap) / 2); padding-bottom: 56px; }

/* ========== Single page shell ========== */
.page-shell {
  max-width: 1144px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 52px);
  background: var(--white);
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 40px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* ========== Header / Hero ========== */
.hero-section {
  background: var(--white);
  padding: 72px 0 52px;
  text-align: center;
}

.brickcraft-wordmark {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 0 auto 22px;
  user-select: none;
  -webkit-user-drag: none;
}

.paper-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 20px;
}
.paper-title__line { display: block; }
.paper-title__sub {
  display: block;
  font-size: inherit;
  line-height: inherit;
  margin-top: 0.18em;
}
.hero-section .container { max-width: 940px; }

.bc { color: inherit; font-weight: 600; }
.paper-title .bc { color: var(--brick); font-weight: 700; }

.venue-badge {
  display: inline-block;
  background: #d8e4ce;
  color: #455e3a;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: bold;
  margin-bottom: 28px;
  text-decoration: none;
}
.venue-badge:hover { filter: brightness(0.95); text-decoration: none; }

.authors {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}
.authors a { color: var(--text); }
.authors a:hover, .authors a:focus-visible { color: #1f1f1f; text-decoration: underline; }
.authors a:active { color: #141414; }

.affiliations {
  font-size: 0.94rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.equal-contrib {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.publication-venue {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 22px;
}

/* ========== Link Buttons ========== */
.link-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  background: #e8e8e8;
  color: var(--text);
  border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.link-btn:hover {
  background: #dbdbdb;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  text-decoration: none;
}
.link-btn i { font-size: 1rem; color: #353535; }
.link-btn:hover i { color: #1a1a1a; }

/* ========== Teaser ========== */
.teaser-section { padding: 44px 0 30px; }
.teaser-container { text-align: center; }
.teaser-video-frame {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.teaser-media {
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-sm);
  border: none;
}
.teaser-video-frame .teaser-media {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: contain;
  border-radius: 0;
}
.teaser-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.97rem;
  color: var(--text-light);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ========== Section Titles ========== */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.52rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--brick);
  letter-spacing: -0.02em;
  display: block;
}
/* ========== Abstract ========== */
.abstract-section.section { padding-top: 44px; }
.abstract-section .section-title {
  text-align: center;
}
.abstract-text {
  text-align: justify;
  text-justify: inter-word;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.94rem;
  line-height: 1.68;
}

/* ========== Method ========== */
.method-figure {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  border: none;
}
.method-desc {
  margin-top: 14px;
  text-align: justify;
  font-size: 0.98rem;
  line-height: 1.68;
}

.figure-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.figure-row--triple { grid-template-columns: repeat(3, 1fr); }
.figure-row .method-figure {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
}
.figure-row figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
}
@media (max-width: 700px) {
  .figure-row, .figure-row--triple { grid-template-columns: 1fr 1fr; }
}

/* ========== Key Takeaways ========== */
.takeaways-list { margin: 0; padding: 0; }
.takeaway-item {
  background: #f4f4f5;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.takeaway-item:last-child { margin-bottom: 0; }
.takeaway-line {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  text-align: justify;
  color: var(--text-light);
}
.takeaway-label {
  font-weight: 600;
  color: var(--text);
}

/* ========== Assembly skill performance ========== */
.performance-intro {
  margin-bottom: 20px;
}
.performance-chart {
  margin-bottom: 30px;
  padding: 16px 16px 18px;
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  background: #fbfbfa;
}
.performance-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-bottom: 16px;
}
.performance-axis-title {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}
.performance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  color: var(--text-light);
  font-size: 0.78rem;
  font-weight: 600;
}
.performance-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-label sub {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: sub;
}
.legend-swatch {
  display: inline-block;
  width: 18px;
  height: 9px;
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 2px;
}
.legend-swatch--brickcraft,
.performance-bar--brickcraft { background: #749bcc; }
.legend-swatch--gidp,
.performance-bar--gidp { background: #e8a47d; }
.legend-swatch--gipi,
.performance-bar--gipi { background: #8dbcaa; }
.performance-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.performance-panel {
  min-width: 0;
  padding: 12px 10px 10px;
  border: 1px solid #e6e6e3;
  border-radius: var(--radius-sm);
  background: #fff;
}
.performance-skill {
  margin-bottom: 12px;
  font-family: "STIX Two Math", "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}
.performance-plot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.performance-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 190px;
  padding: 0 3px;
  border-bottom: 1px solid #777;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(20% - 1px),
    #e7e7e7 calc(20% - 1px),
    #e7e7e7 20%
  );
}
.performance-bar {
  position: relative;
  width: min(26px, 29%);
  height: var(--score);
  min-height: 2px;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}
.performance-chart--animated .performance-bar {
  height: 0;
  will-change: height;
}
.performance-chart--animated.is-visible .performance-bar {
  animation: performance-rise 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms) forwards;
}
.performance-bar:nth-child(1) { --delay: 0ms; }
.performance-bar:nth-child(2) { --delay: 90ms; }
.performance-bar:nth-child(3) { --delay: 180ms; }
.performance-bar span {
  position: absolute;
  top: -19px;
  left: 50%;
  color: #222;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}
.performance-chart--animated .performance-bar span {
  opacity: 0;
}
.performance-chart--animated.is-visible .performance-bar span {
  animation: performance-value-in 240ms ease calc(var(--delay, 0ms) + 650ms) forwards;
}
@keyframes performance-rise {
  from { height: 0; }
  to { height: var(--score); }
}
@keyframes performance-value-in {
  from { opacity: 0; transform: translate(-50%, 4px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.performance-group-label {
  padding-top: 6px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}
.skill-video-heading {
  margin: 4px 0 14px;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}
@media (max-width: 780px) {
  .performance-panels { grid-template-columns: 1fr; }
  .performance-bars { height: 170px; }
}
@media (max-width: 480px) {
  .performance-chart { padding: 14px 10px 16px; }
  .performance-chart-head { display: block; }
  .performance-axis-title { display: block; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .performance-chart--animated .performance-bar {
    height: var(--score);
    animation: none;
  }
  .performance-chart--animated .performance-bar span {
    opacity: 1;
    animation: none;
  }
}

/* ========== Skills showcase (marquee strip per skill) ========== */
.skill-block {
  border: 1px solid #ececec;
  border-radius: var(--radius-sm);
  background: #fafafa;
  padding: 16px 18px 14px;
  margin-bottom: 16px;
}
.skill-block:last-child { margin-bottom: 0; }

.skill-block-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 12px;
}
.skill-tau {
  font-family: "STIX Two Math", "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brick);
  letter-spacing: 0.02em;
}
.skill-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Marquee strip: a wide hstacked video that auto-scrolls left.
   The video is rendered twice side-by-side so the loop is seamless. */
.skill-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 8px;
}
.skill-row:last-child { margin-bottom: 0; }
.skill-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: #efe9d8;
  border-radius: 4px;
  padding: 4px;
}
.skill-row-label--unseen { background: #e0eaf3; color: #28466b; }

.skill-marquee {
  overflow: hidden;
  border-radius: 4px;
  background: #000;
  position: relative;
  height: 110px;
}
.skill-marquee-track {
  display: flex;
  width: max-content;
}
.skill-marquee--left  .skill-marquee-track { animation: skill-scroll-left  32s linear infinite; }
.skill-marquee--right .skill-marquee-track { animation: skill-scroll-right 32s linear infinite; }
.skill-marquee video {
  height: 110px;
  width: auto;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
@keyframes skill-scroll-left  { from { transform: translateX(0); }   to { transform: translateX(-50%); } }
@keyframes skill-scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .skill-marquee-track { animation: none; }
}
@media (max-width: 700px) {
  .skill-row { grid-template-columns: 1fr; gap: 6px; }
  .skill-row-label { padding: 3px 8px; }
  .skill-marquee, .skill-marquee video { height: 84px; }
}

.qual-hint {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-light);
  margin: 0 0 14px 0;
  max-width: 52rem;
  font-style: italic;
}

@media (max-width: 700px) {
  .skill-marquee, .skill-marquee video { height: 96px; }
}

/* ========== Long-horizon ========== */
.longhorizon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.lh-card {
  flex: 0 1 calc((100% - 48px) / 4);
  min-width: 180px;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #ececec;
}
.lh-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}
.lh-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.lh-speed-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.lh-card-label {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 6px 10px;
  color: var(--text);
  background: #fafafa;
}
.lh-card-label strong {
  display: block;
  color: var(--brick);
  font-size: 1rem;
}
.lh-card-label span {
  display: block;
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 600;
}
.perturbation-block {
  margin-top: var(--chapter-gap);
}
.perturbation-title {
  color: var(--brick);
}
.perturbation-copy {
  margin-bottom: 18px;
}
.perturbation-card .lh-card-label strong {
  font-size: 0.92rem;
}
@media (max-width: 700px) {
  .lh-card {
    flex-basis: calc((100% - 16px) / 2);
    min-width: 0;
  }
}
@media (max-width: 440px) {
  .lh-card { flex-basis: 100%; }
}

/* ========== Tables ========== */
.result-table-wrapper { overflow-x: auto; margin-top: 4px; }
.result-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  font-size: 0.96rem;
  background: #fff;
  font-family: "STIX Two Math", "Times New Roman", Times, serif;
  font-variant-numeric: lining-nums tabular-nums;
}
.result-table thead th {
  background: #f0f0f1;
  color: #1a1a1a;
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #d8d8d8;
}
.result-table thead tr:first-child th:first-child {
  text-align: left;
  font-weight: 700;
}
.result-table tbody td {
  padding: 9px 12px;
  text-align: center;
  border-bottom: 1px solid #ececec;
  background: #fff;
  color: var(--text);
}
.result-table tbody td:first-child {
  text-align: left;
  font-weight: 700;
}
.result-table tbody tr:last-child td { border-bottom: none; }
.result-table tbody tr.result-row--ours td { font-weight: 700; }
.result-table tbody tr.result-row--ours .bc { font-weight: 700; }
.result-table .best { color: var(--brick); }

.result-table--sm { font-size: 0.84rem; }
.result-table--sm thead th { padding: 7px 6px; font-size: 0.74rem; }
.result-table--sm tbody td { padding: 6px 8px; white-space: nowrap; }

.tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 28px;
  align-items: start;
}
.table-block { display: flex; flex-direction: column; min-height: 0; }
.table-caption {
  font-weight: bold;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: var(--text);
  text-align: center;
}
@media (max-width: 700px) {
  .tables-grid { grid-template-columns: 1fr; }
}

.section-subtext {
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-light);
  margin: 0 0 18px 0;
  text-align: justify;
}
.section-title--spaced { margin-top: var(--chapter-gap); }
.section-title--after-block {
  margin-top: var(--chapter-gap);
  padding-top: 0;
}

/* ========== BibTeX ========== */
.bibtex-block {
  background: #fafafa;
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  border: 1px solid #e8e8e8;
  overflow-x: auto;
  position: relative;
}
.bibtex-block pre {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text);
}
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}
.copy-btn:hover { background: var(--accent-dark); }

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 36px 0 32px;
  color: var(--text-light);
  font-size: 0.91rem;
}
.footer a { color: var(--text-light); }

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 3px 15px rgba(0,0,0,0.12);
  padding: 0 44px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logos {
  display: flex;
  align-items: center;
  gap: 18px;
}
.navbar-logos img {
  height: 56px;
  width: auto;
  display: block;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.navbar a {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.22px;
  line-height: 1.15;
}
.navbar a:hover { color: var(--text); text-decoration: none; }

/* ========== Responsive ========== */
@media (max-width: 700px) {
  .paper-title { font-size: 1.24rem; }
  .brickcraft-wordmark { max-width: 78%; }
  .page-shell { padding: 0 clamp(14px, 4vw, 22px); }
  .section { padding: 40px 0; }
  .abstract-section.section { padding-top: 34px; }
  .takeaways-section.section { padding-top: 40px; }
  .hero-section { padding: 48px 0 36px; }
  .teaser-section { padding: 32px 0 22px; }
}

/* ========== Related Works ========== */
.related-works-section .section-title { text-align: center; }
.related-works-intro {
  text-align: center;
  margin: 0 auto 28px;
  max-width: 760px;
  color: #333;
  line-height: 1.55;
}
.rw-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
}
.rw-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}
.rw-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}
.rw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rw-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--brick);
  line-height: 1.35;
}
.rw-authors { margin: 0 0 4px; font-size: 0.9rem; line-height: 1.5; color: #333; }
.rw-venue { margin: 0 0 10px; font-size: 0.85rem; color: #666; font-style: italic; }
.rw-links { margin: 0; }
.rw-btn {
  display: inline-block;
  padding: 5px 14px;
  margin-right: 6px;
  background: var(--brick);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: opacity 0.15s;
}
.rw-btn:hover { opacity: 0.85; }
@media (max-width: 720px) {
  .rw-item { grid-template-columns: 1fr; }
  .rw-thumb { max-width: 320px; margin: 0 auto; }
}

/* ========== Assembly reasoning figure ========== */
.task-encoding-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  margin-top: 20px;
}
.task-encoding-copy .method-desc {
  margin-top: 0;
}
.task-encoding-copy .method-desc + .method-desc {
  margin-top: 16px;
}
.task-encoding-equation {
  margin: 8px 0;
  font-size: 1.08rem;
  text-align: center;
}
.task-encoding-copy .task-encoding-continuation {
  margin-top: 0;
}
.task-encoding-figure {
  width: 100%;
  margin: 0;
}
.task-planning-desc {
  margin-top: 20px;
}

/* ========== Assembly planning examples ========== */
.assembly-examples {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #e1dfd8;
  border-radius: var(--radius);
  background: #fbfbfa;
  box-shadow: 0 6px 20px rgba(34, 31, 25, 0.06);
}
.assembly-example-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 14px;
  align-items: stretch;
  min-height: 0;
}
.assembly-example-panel {
  min-width: 0;
  min-height: 0;
  height: var(--assembly-panel-height, auto);
  overflow: hidden;
  border: 1px solid #deddd8;
  border-radius: var(--radius-sm);
  background: var(--white);
}
.assembly-example-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid #e5e3de;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}
.assembly-video-frame {
  aspect-ratio: 1 / 1;
  background: #111;
}
.assembly-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}
.assembly-plan-panel {
  display: flex;
  flex-direction: column;
}
.assembly-plan-code {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;
  background: #202321;
  color: #d9dfda;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.58;
  tab-size: 2;
  white-space: pre;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #626a65 #202321;
}
.assembly-plan-code::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.assembly-plan-code::-webkit-scrollbar-track {
  background: #202321;
}
.assembly-plan-code::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #68716b;
}
.assembly-plan-code::-webkit-scrollbar-thumb:hover {
  background: #858f88;
}
.assembly-plan-code code {
  font: inherit;
}
.assembly-plan-code .json-key { color: #9dc7ee; }
.assembly-plan-code .json-string { color: #b7d99a; }
.assembly-plan-code .json-number { color: #efbc86; }
.assembly-plan-code .json-boolean,
.assembly-plan-code .json-null { color: #d9a3cf; }
.assembly-example-cards {
  display: grid;
  grid-template-columns: repeat(4, 112px);
  width: max-content;
  max-width: 100%;
  justify-content: start;
  gap: 10px;
  margin: 0 0 14px;
}
.assembly-example-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #d8d6d0;
  border-radius: 7px;
  background: var(--white);
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(38, 34, 28, 0.06);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.assembly-example-card:hover {
  border-color: #ba958c;
  background: #fcf7f5;
  transform: translateY(-1px);
}
.assembly-example-card:focus-visible {
  outline: 3px solid rgba(194, 103, 86, 0.24);
  outline-offset: 2px;
}
.assembly-example-card.is-active {
  border-color: var(--brick);
  background: var(--brick);
  color: #fff;
  box-shadow: 0 5px 13px rgba(194, 103, 86, 0.2);
  transform: translateY(-1px);
}
.assembly-example-card.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: var(--brick);
  transform: translateX(-50%) rotate(45deg);
}
@media (max-width: 700px) {
  .task-encoding-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .assembly-examples {
    padding: 12px;
  }
  .assembly-example-content {
    grid-template-columns: 1fr;
  }
  .assembly-example-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin-bottom: 10px;
  }
}
@media (max-width: 420px) {
  .assembly-example-card {
    min-height: 40px;
    padding: 6px 7px;
    font-size: 0.82rem;
  }
}
