body {
  font-family: 'Noto Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide video controls by default, show on hover */
#teaser {
  transition: all 0.3s ease;
  border-radius: 8px;
}

#teaser::-webkit-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#teaser:hover::-webkit-media-controls {
  opacity: 1;
}

/* For Firefox */
#teaser::-moz-media-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#teaser:hover::-moz-media-controls {
  opacity: 1;
}


.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: 1.5rem;
}

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


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

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

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

.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 a {
   color: hsl(204, 86%, 53%) !important;
}

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

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

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

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

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

/* Carousel responsive sizing */
.results-carousel .item video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* ===== Custom styles for Q-DIG website ===== */

/* Section dividers */
.section {
  padding: 2rem 1.5rem;
}

.section + .section {
  padding-top: 0.5rem;
}

/* Consistent spacing between content blocks within sections */
.columns.is-centered + .columns.is-centered {
  margin-top: 2rem;
}

/* Section titles */
.title.is-3 {
  margin-bottom: 1.2rem !important;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #f0f0f0;
}

/* Tables */
.table {
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.95rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.table thead th {
  background-color: #f7f7f7;
  border-bottom: 2px solid #dbdbdb;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.6em 0.75em;
}

.table tbody td {
  padding: 0.5em 0.75em;
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: #fafafa;
}

/* Best values in tables - bold + green (skip first column which has row labels) */
.table td:not(:first-child) strong {
  color: #1a5c3a;
  font-weight: 800;
}

/* Second-best values - underlined */
.table td:not(:first-child) u {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Comparison boxes */
.box {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

/* Comparison GIFs - consistent sizing */
.baseline-comparison img,
.realworld-comparison img {
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Dropdown selectors */
.select select {
  border-radius: 6px;
  font-size: 0.9rem;
  max-width: 600px;
}

/* Image figures */
.hero-body img,
.column img {
  border-radius: 4px;
}

/* Collapsible / toggle sections */
.toggle-section {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.toggle-header {
  background: #f9f9f9;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  user-select: none;
}

.toggle-header:hover {
  background: #f0f0f0;
}

.toggle-header h3 {
  margin: 0 !important;
  font-size: 1.1rem;
  font-weight: 600;
}

.toggle-header .toggle-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: #888;
}

.toggle-header.active .toggle-icon {
  transform: rotate(180deg);
}

.toggle-content {
  padding: 1.2rem;
  display: none;
}

.toggle-content.active {
  display: block;
}

/* Video placeholders */
.video-placeholder {
  width: 90%;
  height: 250px;
  margin: auto;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

.video-placeholder p {
  color: #999;
}

/* Real-world setup image */
.setup-image {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Heatmap styling */
.heatmap-container {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* Subtable headers for multi-VLA table */
.table th[colspan] {
  text-align: center;
  border-left: 2px solid #dbdbdb;
}

.table th[colspan]:first-of-type {
  border-left: none;
}

/* Responsive table wrapper */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Section spacing tweaks */
.section-gap {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Figure captions */
.figure-caption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Consistent heading fonts */
.title, .subtitle {
  font-family: 'Google Sans', 'Noto Sans', sans-serif !important;
}

.title.is-1 {
  font-size: 2.2rem !important;
  line-height: 1.2;
}

.title.is-3 {
  font-size: 1.6rem !important;
}

.title.is-4 {
  font-size: 1.25rem !important;
  font-weight: 600;
}

.title.is-5 {
  font-size: 1.05rem !important;
  font-weight: 600;
}

/* Tab styling */
.tabs.is-boxed li.is-active a {
  background-color: #fff;
  border-bottom-color: transparent !important;
  font-weight: 600;
  color: #363636;
}

.tabs.is-boxed a {
  border-bottom: 1px solid #dbdbdb;
  font-size: 0.95rem;
  padding: 0.5em 1.2em;
  color: #888;
  transition: color 0.2s;
}

.tabs.is-boxed a:hover {
  color: #363636;
  background-color: #f9f9f9;
}

.tabs.is-boxed {
  margin-bottom: 1.5rem !important;
}

.tab-content {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
