/* =========================================================
   Color theme (tweak these 4 vars and everything follows)
========================================================= */
:root{
  --accent: #2F80ED;        /* primary blue */
  --accent2: #9B51E0;       /* purple */
  --accent3: #00BFA6;       /* teal */
  --ink: #0f172a;           /* deep slate text */
  --muted: rgba(15, 23, 42, 0.72);
  --card: rgba(255,255,255,0.78);
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
}

/* Subtle colorful page background (less monochrome) */
html, body{
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(47,128,237,0.22), transparent 55%),
    radial-gradient(800px 520px at 90% 0%, rgba(155,81,224,0.18), transparent 55%),
    radial-gradient(900px 620px at 40% 110%, rgba(0,191,166,0.14), transparent 55%),
    #ffffff;
  color: var(--ink);
}

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

/* Make the hero feel “paper site” but more lively */
.hero {
  padding-top: 2.25rem;
  padding-bottom: 1.75rem;
}

/* ---------------------------------------------------------
   Emphasize DAVIS brand
--------------------------------------------------------- */
.dnerf{
  font-variant: small-caps;
  font-weight: 800;
  letter-spacing: 0.02em;
  /* gradient text */
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Title polish */
.publication-title{
  font-family: 'Google Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* Authors and venue text colors */
.publication-authors{
  font-family: 'Google Sans', sans-serif;
  color: var(--muted);
}

.publication-authors a{
  color: var(--accent) !important;
  font-weight: 600;
}

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

/* Venue line + badge: make them feel “designed”, not plain gray */
.venue-line{
  margin-top: .65rem;
  margin-bottom: .65rem;
  display: flex;
  gap: .55rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.venue-pill{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  background: linear-gradient(
    90deg,
    rgba(47,128,237,0.18),
    rgba(155,81,224,0.18)
  );
  border: 1px solid rgba(47,128,237,0.35);
  box-shadow:
    0 6px 18px rgba(47,128,237,0.18),
    0 0 0 3px rgba(155,81,224,0.08);
}

.venue-meta{
  font-size: 0.95rem;
  color: rgba(15,23,42,0.65);
}

.badge{
  display:inline-block;
  padding:.35rem .75rem;
  border-radius:999px;
  border:1px solid var(--border);
  background: linear-gradient(90deg, rgba(47,128,237,0.14), rgba(155,81,224,0.12), rgba(0,191,166,0.10));
  color: var(--ink);
  font-size:.95rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

/* If you use .publication-venue anywhere, make it match */
.publication-venue{
  color: var(--ink);
  width: fit-content;
  font-weight: 700;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

/* ---------------------------------------------------------
   Buttons: colorful but still academic
--------------------------------------------------------- */
.publication-links{
  display:flex;
  gap:.6rem;
  justify-content:center;
  flex-wrap:wrap;
  margin-top: 1rem;
}

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

/* Override Bulma dark button look into soft glassy pills */
.publication-links .button{
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  box-shadow: 0 8px 20px rgba(15,23,42,0.10);
}

/* Make icons colorful */
.publication-links .button .icon{
  color: var(--accent);
}

/* Hover: slightly lift */
.publication-links .button:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.86);
}

/* Add a “primary” style option (apply class="is-primary dvis-primary" to one button) */
.dvis-primary{
  background: linear-gradient(90deg, rgba(47,128,237,0.92), rgba(155,81,224,0.92));
  border: none;
  color: #fff !important;
}
.dvis-primary .icon{
  color:#fff !important;
}

/* ---------------------------------------------------------
   Figures / teaser images: colorful framing
--------------------------------------------------------- */
.teaser{
  font-family: 'Google Sans', sans-serif;
}

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

.hero.teaser img{
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Soft colored outline on key images (optional: add class="glow" to images) */
.glow{
  box-shadow:
    0 18px 44px rgba(15,23,42,0.14),
    0 0 0 1px rgba(47,128,237,0.10),
    0 0 0 6px rgba(155,81,224,0.06);
}

/* ---------------------------------------------------------
   Video frame: match cards
--------------------------------------------------------- */
.publication-video{
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 16px !important;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.4);
}

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

/* --- Footer (DAVIS-specific) --- */
.footer{
  background: transparent;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.footer-title{
  font-family: 'Google Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .25rem;
  color: #0f172a;
}

.footer-subtitle{
  margin-top: 0;
  color: rgba(15, 23, 42, 0.70);
  line-height: 1.5;
}

.footer-links{
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.footer-pill{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.45rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.72);
  color: #0f172a;
  text-decoration:none;
  box-shadow: 0 8px 20px rgba(15,23,42,0.10);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.footer-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.14);
}

.footer-pill .icon{
  color: var(--accent);
}

.footer-rule{
  border: none;
  height: 1px;
  background: rgba(15,23,42,0.10);
  margin: 1.25rem 0 1rem 0;
}

@media (max-width: 900px){
  .footer-links{ justify-content:flex-start; }
}


/* ---------------------------------------------------------
   Carousel cards: soften + color hint
--------------------------------------------------------- */
.results-carousel .item{
  margin: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  font-size: 0;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(15,23,42,0.10);
}

/* Panels */
.interpolation-panel{
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.10);
}

/* --- Plot / results cards --- */
.plot-card{
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 10px 28px rgba(15,23,42,0.10);
}

.plot-caption{
  margin-top: .4rem;
  margin-bottom: .9rem;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.55;
}

.plot-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.plot{
  margin: 0;
  padding: 0.75rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(15,23,42,0.10);
}

.plot img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.plot figcaption{
  margin-top: .45rem;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.65);
}

@media (max-width: 900px){
  .plot-grid{
    grid-template-columns: 1fr;
  }
}

/* --- WM comparison table --- */
.wm-table table {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 28px rgba(15,23,42,0.10);
}

.wm-table caption {
  caption-side: top;
  text-align: left;
  margin-bottom: .5rem;
  font-size: 1rem;
  color: rgba(15,23,42,0.75);
}

.wm-table thead th {
  background: rgba(47,128,237,0.08);
  font-weight: 700;
}

.wm-table tbody tr.davis-row {
  background: linear-gradient(
    90deg,
    rgba(47,128,237,0.12),
    rgba(155,81,224,0.10)
  );
}

.wm-table tbody tr.sota-row {
  background: rgba(0,191,166,0.12);
}

.wm-table td,
.wm-table th {
  vertical-align: middle;
}
#ablation, #ablations {
  scroll-margin-top: 90px;
}

.ablation-subsection {
  margin-top: 1.2rem;
}

.ablation-subsection h4 {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.ablation-columns {
  align-items: flex-start;
}

.ablation-subsection {
  height: 100%;
}

.ablation-subsection .table-container {
  overflow-x: auto;
}

#ablations .table caption {
  caption-side: top;
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}