/* ===== Custom overrides on top of Bulma ===== */

body {
  font-family: 'Google Sans', 'Noto Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ----- Hero / title ----- */
.publication-title {
  line-height: 1.25;
  margin-bottom: 1.2rem !important;
}

.tagline {
  color: #4a4a4a;
  font-style: italic;
  margin-bottom: 1.5rem !important;
}

/* Override Bulma's .title + .subtitle { margin-top: -1.25rem } which pulled the
   tagline up under the multi-line title and made them visually overlap. */
.publication-title + .tagline {
  margin-top: 1rem !important;
}

.publication-authors {
  margin-bottom: 0.5rem;
}

.author-block {
  display: inline-block;
  white-space: nowrap;
}

.publication-affiliations {
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

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

/* Make the contact email read as a clickable link, not body text. */
.publication-affiliations a[href^="mailto:"] {
  color: #3273dc;
  text-decoration: underline;
}
.publication-affiliations a[href^="mailto:"]:hover {
  color: #1f5cc0;
}

.publication-venue {
  margin: 1rem 0 1.4rem;
}

/* ----- Link buttons ----- */
.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.publication-links .button {
  transition: transform 0.12s ease;
}

.publication-links .button:hover {
  transform: translateY(-2px);
}

/* Visually flag buttons whose URL is still a placeholder token */
.is-placeholder-link {
  opacity: 0.7;
  border: 1px dashed #b5b5b5 !important;
}

/* ----- Cite dropdown ----- */
.cite-dropdown .dropdown-menu { min-width: 12rem; }
.cite-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cite-dropdown .dropdown-item:hover { background-color: #f5f5f5; }

/* ----- Teaser ----- */
.teaser {
  padding-top: 1rem;
}

.teaser-caption {
  margin-top: 1rem;
  color: #555;
  font-size: 1rem;
}

/* ----- Placeholder boxes (media the user will replace) ----- */
.placeholder-box {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(45deg, #f4f6f9, #f4f6f9 12px, #eef1f5 12px, #eef1f5 24px);
  border: 2px dashed #c0c8d2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6573;
  text-align: center;
}

.placeholder-16x9 { aspect-ratio: 16 / 9; }
.placeholder-wide { aspect-ratio: 21 / 9; min-height: 220px; margin-bottom: 1rem; }

.placeholder-label p { margin: 0.15rem 0; }
.placeholder-label code {
  background: #e3e8ef;
  color: #2b3340;
  border-radius: 4px;
  padding: 0.05em 0.4em;
}

/* ----- "Firsts" cards ----- */
.firsts-sub { color: #6b7280; margin-bottom: 1.5rem !important; }

.first-card {
  height: 100%;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.first-card h3 { margin: 0.5rem 0 0.35rem; }
.first-card p { color: #4a4a4a; margin: 0; }

/* Anchor wrapper: keeps cards clickable without changing the resting appearance. */
.first-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.first-card-link:hover .first-card {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #c5d2e0;
}

/* Smooth anchor scrolling + offset so headings aren't flush with viewport top */
html { scroll-behavior: smooth; }
.result-block, #citation { scroll-margin-top: 1.5rem; }

/* ----- Result blocks ----- */
.result-block {
  margin-bottom: 3rem;
}

.result-block .title.is-4 {
  margin-bottom: 1rem;
}

/* In-card MP4 video (e.g. wide-angle wind-tunnel demonstration). */
.result-video {
  margin: 0 0 1.25rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.result-video video {
  width: 100%;
  display: block;
}

/* ----- Responsive YouTube embeds ----- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  margin: 0.5rem 0;
}

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

/* ----- BibTeX ----- */
pre.bibtex {
  background: #1f2430;
  color: #e6e6e6;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

pre.bibtex code { color: inherit; background: none; }

/* ----- Footer ----- */
.footer { padding: 2.5rem 1.5rem; }
