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

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

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

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

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

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

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

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

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

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

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

.publication-banner img {
  max-height: parent;
}

.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%;
}

.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;
}


/* 3D hero showcase */
.revit-hero .hero-body {
  padding-top: 2rem;
  padding-bottom: 2.4rem;
}

.revit-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.revit-title-logo {
  width: 130px;
  height: 130px;
  flex: 0 0 auto;
}

.revit-hero-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 1180px);
  margin: 1.45rem auto 0;
  padding: 0.75rem;
  background: #101820;
  border: 1px solid #25323a;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(16, 24, 32, 0.18);
}

.revit-showcase-stack {
  display: contents;
}

.revit-showcase-panel {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #0c1218;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.revit-showcase-panel video,
.revit-showcase-panel img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 40 / 17;
  object-fit: cover;
}

.revit-showcase-panel figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 0.6rem;
  min-height: 54px;
  padding: 1.4rem 0.8rem 0.65rem;
  background: linear-gradient(180deg, rgba(12, 18, 24, 0), rgba(12, 18, 24, 0.86));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}

.revit-showcase-panel figcaption span + span {
  color: #bfe8d3;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* ─── ReViT-specific styles ─── */

/* Hero gradient accent bar */
.hero.is-revit {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 40%, #1a3a5c 100%);
}

/* Architecture diagram container */
.arch-diagram-container {
  background: #fafbfc;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.arch-diagram-container img {
  width: 100%;
  border-radius: 8px;
}

/* Method box */
.method-box {
  background: linear-gradient(135deg, #f0f4f8, #e8edf2);
  border-left: 4px solid hsl(204, 86%, 53%);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.method-box .title {
  color: #1a3a5c;
}

/* Key insight box */
.insight-box {
  background: linear-gradient(135deg, #eef6ff, #e3f0ff);
  border: 1px solid #b3d4fc;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.insight-box p.has-text-weight-semibold {
  color: #1a56db;
}

/* Results figure styling */
.result-figure {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 1rem;
}

.result-figure img {
  width: 100%;
  display: block;
}

.result-figure .caption {
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}

/* Model table */
.model-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.model-table-wrapper table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.model-table-wrapper table thead th {
  background: #1a3a5c;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border: none;
}

.model-table-wrapper table tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #eee;
}

.model-table-wrapper table tbody tr:hover {
  background: #f0f7ff;
}

/* Section divider */
.section-divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, hsl(204, 86%, 53%), transparent);
  border: none;
  margin: 0;
}

/* Equation highlight */
.equation-highlight {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  text-align: center;
  font-size: 1.1rem;
}

/* Crop-fit for consistent video display */
.crop-fit {
  overflow: hidden;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.crop-fit video {
  width: 100%;
  display: block;
}

/* Challenge list items */
.challenge-item {
  background: #fff;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s ease;
}

.challenge-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.challenge-item strong {
  color: #1a3a5c;
}

/* Challenge item with illustration */
.challenge-illustrated {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.challenge-illustrated .challenge-text {
  flex: 1;
}

.challenge-illustrated .challenge-diagram {
  max-width: 280px;
  min-width: 160px;
}

.challenge-illustrated .challenge-diagram img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

/* Illustrated method box (two-column: text + diagram) */
.method-box-illustrated {
  background: linear-gradient(135deg, #f0f4f8, #e8edf2);
  border-left: 4px solid hsl(204, 86%, 53%);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.method-box-illustrated .title {
  color: #1a3a5c;
}

.method-box-illustrated .method-text {
  min-width: 0;
}

.method-box-illustrated .method-diagram {
  max-width: 340px;
  min-width: 180px;
}

.method-box-illustrated .method-diagram img {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: #fff;
  padding: 0.5rem;
  border: 1px solid #dce4ec;
}

/* Full-width diagram variant for large diagrams */
.method-box-wide-diagram {
  background: linear-gradient(135deg, #f0f4f8, #e8edf2);
  border-left: 4px solid hsl(204, 86%, 53%);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}

.method-box-wide-diagram .title {
  color: #1a3a5c;
}

.method-box-wide-diagram .method-diagram-wide {
  margin-top: 1rem;
}

.method-box-wide-diagram .method-diagram-wide img {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  background: #fff;
  padding: 0.75rem;
  border: 1px solid #dce4ec;
}

/* Paired challenge→solution row */
.cs-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.cs-pair .cs-challenge {
  background: #fff0ef;
  border-left: 4px solid #da2929;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
}

.cs-pair .cs-challenge strong:first-child {
  color: #b91c1c;
}

.cs-pair .cs-solution {
  background: #ecfdf5;
  border-left: 4px solid #009e3d;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
}

.cs-pair .cs-solution strong:first-child {
  color: #047857;
}

.cs-pair .cs-diagram {
  margin-top: 0.75rem;
}

.cs-pair .cs-diagram img {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: #fff;
  padding: 0.4rem;
  border: 1px solid #e5e7eb;
}

/* BibTeX section */
#BibTeX pre {
  background: #1a2332;
  color: #e6edf3;
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.85rem;
  overflow-x: auto;
}


/* Local rebasing interactive */
.rebase-interactive {
  margin: 2rem 0 2.25rem;
}

.rebase-header {
  max-width: 820px;
  margin-bottom: 1rem;
}

.rebase-header .title {
  margin-bottom: 0.4rem;
  color: #172a3a;
}

.rebase-kicker {
  margin-bottom: 0.35rem;
  color: #b44a2b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rebase-control-bar {
  display: grid;
  grid-template-columns: auto auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 0.7rem;
  background: #f7f9fb;
  border: 1px solid #dce4ec;
  border-radius: 8px;
}

.rebase-angle-buttons {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: #e8eef4;
  border-radius: 8px;
}

.rebase-angle {
  min-width: 44px;
  height: 34px;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #233746;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.rebase-angle:hover,
.rebase-angle:focus-visible {
  background: #d7e2eb;
  outline: none;
}

.rebase-angle.is-active {
  background: #1d405d;
  color: #fff;
}

.rebase-slider-label {
  color: #425466;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.rebase-slider {
  width: 100%;
  accent-color: #d95d39;
}

#aov-angle-output {
  min-width: 52px;
  color: #172a3a;
  font-weight: 800;
  text-align: right;
}

.rebase-figure-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.9rem 0 1rem;
}

.rebase-figure-guide span {
  min-height: 58px;
  padding: 0.7rem 0.8rem;
  background: #f8fafc;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  color: #31475a;
  font-size: 0.84rem;
  line-height: 1.35;
}

.rebase-figure-guide strong {
  color: #172a3a;
}

.rebase-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.rebase-panel {
  margin: 0;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 8px;
}

.rebase-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.8rem;
  margin-bottom: 0.55rem;
  color: #172a3a;
  font-size: 0.92rem;
  font-weight: 800;
}

.rebase-panel-title span:last-child {
  color: #607385;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.rebase-canvas,
.rebase-stage canvas {
  display: block;
  width: 100%;
  background: #fbfcfe;
  border: 1px solid #e6edf3;
  border-radius: 6px;
}

.rebase-canvas {
  aspect-ratio: 4 / 3;
}

.rebase-token-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.rebase-stage {
  margin: 0;
}

.rebase-stage canvas {
  aspect-ratio: 1.15 / 1;
}

.rebase-stage figcaption {
  margin-top: 0.45rem;
  color: #31475a;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.rebase-equation-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.rebase-equation-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.7rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  color: #213547;
  font-size: 0.92rem;
  text-align: center;
}

/* Shifted-window identity interactive */
.shift-window-interactive {
  margin: 2rem 0 2.25rem;
}

.shift-window-header {
  max-width: 830px;
  margin-bottom: 1rem;
}

.shift-window-header .title {
  margin-bottom: 0.4rem;
  color: #172a3a;
}

.shift-control-bar {
  display: grid;
  grid-template-columns: minmax(145px, 0.55fr) minmax(280px, 1.45fr) auto;
  align-items: end;
  gap: 0.8rem;
  margin: 1rem 0;
  padding: 0.7rem;
  background: #f7f9fb;
  border: 1px solid #dce4ec;
  border-radius: 8px;
}

.shift-control-group {
  display: grid;
  gap: 0.35rem;
}

.shift-control-label {
  color: #425466;
  font-size: 0.84rem;
  font-weight: 800;
}

.shift-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.2rem;
  background: #e9eff3;
  border-radius: 8px;
}

.shift-button {
  min-width: 58px;
  height: 34px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #233746;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.shift-button:hover,
.shift-button:focus-visible {
  background: #d7e2eb;
  outline: none;
}

.shift-button.is-active {
  background: #1d405d;
  color: #fff;
}

.shift-window-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.shift-window-panel {
  margin: 0;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #dce4ec;
  border-radius: 8px;
}

.shift-window-panel figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.8rem;
  margin-bottom: 0.55rem;
  color: #172a3a;
  font-size: 0.92rem;
  font-weight: 800;
}

.shift-window-panel figcaption span:last-child {
  color: #607385;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.shift-window-panel canvas {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fbfcfe;
  border: 1px solid #e6edf3;
  border-radius: 6px;
}

.shift-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.shift-proof-card {
  min-height: 72px;
  padding: 0.8rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #dce4ec;
  border-radius: 8px;
}

.shift-proof-card span {
  display: block;
  margin-bottom: 0.35rem;
  color: #607385;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shift-proof-card strong {
  color: #172a3a;
  font-size: 0.93rem;
  line-height: 1.35;
}

.shift-stage-note {
  margin-top: 0.8rem;
  color: #31475a;
  font-size: 0.9rem;
  font-weight: 700;
}


@media screen and (max-width: 900px) {
  .revit-title-row {
    flex-direction: column;
    gap: 0.6rem;
  }

  .revit-title-logo {
    width: 96px;
    height: 96px;
  }

  .challenge-illustrated {
    grid-template-columns: 1fr;
  }

  .challenge-illustrated .challenge-diagram {
    max-width: 360px;
    margin: 0 auto;
  }

  .method-box-illustrated {
    grid-template-columns: 1fr;
  }

  .method-box-illustrated .method-diagram {
    max-width: 360px;
    margin: 0 auto;
  }

  .cs-pair {
    grid-template-columns: 1fr;
  }

  .rebase-control-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .rebase-angle-buttons {
    justify-content: space-between;
  }

  #aov-angle-output {
    text-align: left;
  }

  .rebase-panels,
  .rebase-figure-guide,
  .rebase-equation-row {
    grid-template-columns: 1fr;
  }

  .rebase-token-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shift-control-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .shift-window-panels,
  .shift-proof-row {
    grid-template-columns: 1fr;
  }
}

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

@media screen and (max-width: 520px) {
  .revit-hero .hero-body {
    padding-top: 1.4rem;
  }

  .revit-hero-showcase {
    gap: 0.55rem;
    padding: 0.55rem;
  }

  .revit-title-logo {
    width: 72px;
    height: 72px;
  }

  .revit-title-row .publication-title {
    font-size: 1.85rem;
    line-height: 1.1;
  }

  .revit-showcase-panel figcaption {
    min-height: 46px;
    padding: 1rem 0.55rem 0.5rem;
    font-size: 0.74rem;
  }

  .revit-showcase-panel figcaption span + span {
    font-size: 0.68rem;
  }

  .rebase-canvas {
    aspect-ratio: 1 / 1;
  }

  .rebase-token-flow {
    grid-template-columns: 1fr;
  }

  .rebase-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .rebase-panel-title span:last-child {
    text-align: left;
  }

  .shift-stage-control .shift-button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shift-stage-control .shift-button {
    white-space: normal;
    height: auto;
    min-height: 34px;
    padding: 0.35rem 0.6rem;
    line-height: 1.2;
  }

  .shift-button {
    min-width: 0;
  }

  .shift-window-panel canvas {
    aspect-ratio: 1 / 1;
  }

  .shift-window-panel figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .shift-window-panel figcaption span:last-child {
    text-align: left;
  }
}
