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


.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-banner {
  max-height: parent;

}

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

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

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

.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;
}
/* =========================================================
       Fancy polish layer: centred titles, premium cards, tables
       Paste this block near the end of your <style> tag so it
       overrides the earlier basic styles.
       ========================================================= */
    :root {
      --rda-primary: #3273dc;
      --rda-primary-deep: #2446b8;
      --rda-accent: #7c3aed;
      --rda-cyan: #06b6d4;
      --rda-ink: #172033;
      --rda-muted: #687386;
      --rda-line: rgba(82, 96, 130, 0.14);
      --rda-card: rgba(255, 255, 255, 0.88);
      --rda-shadow: 0 24px 70px rgba(30, 44, 70, 0.12);
      --rda-soft-shadow: 0 12px 34px rgba(30, 44, 70, 0.10);
    }

    html { scroll-behavior: smooth; }

    body {
      color: var(--rda-ink);
      background:
        radial-gradient(circle at top left, rgba(50,115,220,0.12), transparent 34rem),
        radial-gradient(circle at 85% 10%, rgba(124,58,237,0.10), transparent 30rem),
        linear-gradient(180deg, #f8fbff 0%, #f4f6fb 38%, #ffffff 100%);
      -webkit-font-smoothing: antialiased;
      text-rendering: geometricPrecision;
    }

    .section {
      position: relative;
      padding-top: 4.5rem;
      padding-bottom: 4.5rem;
    }

    .container.is-max-desktop,
    .container.is-max-widescreen {
      position: relative;
      z-index: 1;
    }

    .sec-hero {
      overflow: hidden;
      background:
        radial-gradient(circle at 18% 8%, rgba(50,115,220,0.16), transparent 26rem),
        radial-gradient(circle at 82% 18%, rgba(124,58,237,0.14), transparent 28rem),
        linear-gradient(135deg, #ffffff 0%, #f5f8ff 55%, #eef5ff 100%);
      border-bottom: 1px solid rgba(50, 115, 220, 0.10);
    }

    .sec-hero::before,
    .sec-hero::after {
      content: "";
      position: absolute;
      border-radius: 999px;
      filter: blur(4px);
      pointer-events: none;
    }

    .sec-hero::before {
      width: 18rem;
      height: 18rem;
      left: -7rem;
      top: -7rem;
      background: rgba(6, 182, 212, 0.12);
    }

    .sec-hero::after {
      width: 22rem;
      height: 22rem;
      right: -9rem;
      bottom: -11rem;
      background: rgba(124, 58, 237, 0.10);
    }

    .hero-body {
      padding-top: 4.8rem;
      padding-bottom: 4.6rem;
    }

    .publication-title {
      max-width: 980px;
      margin-left: auto;
      margin-right: auto;
      color: var(--rda-ink);
      letter-spacing: -0.055em;
      line-height: 1.02;
    }

    .publication-title span {
      display: inline-block;
      margin-top: 0.55rem;
      color: transparent;
      background: linear-gradient(90deg, var(--rda-primary), var(--rda-accent));
      -webkit-background-clip: text;
      background-clip: text;
      letter-spacing: -0.035em;
      line-height: 1.12;
    }

    .publication-authors {
      max-width: 920px;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.85;
    }

    .author-block a {
      font-weight: 700;
      color: #374151;
      transition: color 0.18s ease;
    }

    .link-block .button {
      border: 0;
      background: linear-gradient(135deg, #172033 0%, #263650 100%);
      box-shadow: 0 10px 24px rgba(23, 32, 51, 0.20);
      transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    }

    .link-block .button:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 32px rgba(23, 32, 51, 0.26);
      filter: brightness(1.06);
    }

    .section-title,
    .sec-results > .container > h3,
    .sec-bibtex .section-title {
      width: 100%;
      text-align: center !important;
      margin-left: auto;
      margin-right: auto;
      color: var(--rda-ink);
      letter-spacing: -0.035em;
    }

    .section-title::after,
    .sec-results > .container > h3::after,
    .rda-compact-title::after {
      content: "";
      display: block;
      width: 4.5rem;
      height: 4px;
      margin: 0.75rem auto 0;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--rda-primary), var(--rda-accent), var(--rda-cyan));
    }

    .sec-gallery,
    .sec-motivation,
    .sec-results {
      background:
        radial-gradient(circle at 8% 20%, rgba(50,115,220,0.08), transparent 24rem),
        linear-gradient(180deg, #f7f9fe 0%, #eef3fb 100%);
    }

    .sec-abstract,
    .sec-method,
    .sec-bibtex {
      background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    }

    .sec-abstract .column.is-four-fifths,
    .sec-method .container,
    .sec-motivation .container,
    .sec-bibtex .container.content {
      background: var(--rda-card);
      border: 1px solid rgba(255, 255, 255, 0.75);
      border-radius: 28px;
      box-shadow: var(--rda-soft-shadow);
      padding: 2.25rem;
      backdrop-filter: blur(14px);
    }

    .sec-abstract .content p {
      color: #344054;
      font-size: 1.02rem;
      line-height: 1.85;
    }

    .sec-method p {
      max-width: 860px;
      margin-left: auto;
      margin-right: auto;
      color: #475467;
      line-height: 1.75;
    }

    .sec-motivation img,
    .sec-method img,
    .sec-results > .container > img {
      display: block;
      background: #fff;
      border: 1px solid rgba(255,255,255,0.75);
      border-radius: 22px !important;
      box-shadow: var(--rda-shadow) !important;
      margin-left: auto;
      margin-right: auto;
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .sec-motivation img:hover,
    .sec-method img:hover,
    .sec-results > .container > img:hover {
      transform: translateY(-3px);
      box-shadow: 0 30px 80px rgba(30, 44, 70, 0.16) !important;
    }

    /* Gallery: bigger premium cards */
    .carousel-outer {
      padding: 0.85rem 0.2rem;
    }

    .carousel-viewport {
      border-radius: 24px;
      padding: 1rem;
      background: rgba(255,255,255,0.70);
      border: 1px solid rgba(255,255,255,0.8);
      box-shadow: var(--rda-soft-shadow);
      backdrop-filter: blur(14px);
    }

    .gallery-card {
      border-radius: 18px;
      background: #fff;
      box-shadow: 0 10px 26px rgba(30,44,70,0.13);
      outline: 1px solid rgba(255,255,255,0.85);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .gallery-card:hover {
      transform: translateY(-5px) scale(1.015);
      box-shadow: 0 18px 40px rgba(30,44,70,0.22);
    }

    .gallery-card .card-hint {
      background: linear-gradient(180deg, transparent 40%, rgba(23,32,51,0.42));
    }

    .gallery-card:hover .card-hint {
      background: linear-gradient(180deg, rgba(50,115,220,0.10), rgba(23,32,51,0.58));
    }

    .carousel-btn {
      width: 46px;
      height: 46px;
      color: var(--rda-ink);
      background: rgba(255,255,255,0.94);
      border: 1px solid rgba(255,255,255,0.85);
      box-shadow: 0 14px 32px rgba(30,44,70,0.20);
      transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .carousel-btn:hover {
      transform: translateY(-50%) scale(1.06);
      box-shadow: 0 18px 44px rgba(30,44,70,0.28);
    }

    /* Results block and benchmark tables */
    .rda-compact-results {
      position: relative;
      overflow: hidden;
      margin-top: 1.6rem;
      margin-bottom: 3.6rem;
      padding: 1.65rem;
      border: 1px solid rgba(255, 255, 255, 0.82);
      border-radius: 30px;
      background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(50,115,220,0.45), rgba(124,58,237,0.32), rgba(6,182,212,0.30)) border-box;
      box-shadow: var(--rda-shadow);
    }

    .rda-compact-results::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 8% 5%, rgba(50,115,220,0.10), transparent 18rem),
        radial-gradient(circle at 92% 0%, rgba(124,58,237,0.09), transparent 20rem);
      pointer-events: none;
    }

    .rda-compact-head,
    .rda-compact-head > div:first-child {
      position: relative;
      z-index: 1;
    }

    .rda-compact-head {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 1rem;
      margin-bottom: 1.05rem;
    }

    .rda-compact-title {
      text-align: center !important;
      color: var(--rda-ink);
      letter-spacing: -0.035em;
    }

    .rda-compact-subtitle {
      max-width: 760px;
      margin: 0.5rem auto 0;
      color: var(--rda-muted);
      font-size: 0.95rem;
      line-height: 1.65;
    }

    .rda-simple-tabs {
      position: relative;
      z-index: 1;
      padding: 0.35rem;
      border: 1px solid rgba(50,115,220,0.14);
      background: rgba(244, 247, 255, 0.95);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 25px rgba(30,44,70,0.08);
    }

    .rda-simple-tab {
      padding: 0.58rem 1.05rem;
      color: #475467;
      letter-spacing: 0.01em;
    }

    .rda-simple-tab.is-active {
      background: linear-gradient(135deg, var(--rda-primary), var(--rda-accent));
      color: #fff;
      box-shadow: 0 10px 22px rgba(50, 115, 220, 0.28);
    }

    .rda-legend {
      position: relative;
      z-index: 1;
      justify-content: center;
      gap: 0.65rem;
      margin: 1rem auto 1.2rem;
      color: #667085;
    }

    .rda-legend span {
      background: rgba(248, 250, 255, 0.95);
      border-color: rgba(50,115,220,0.12);
      box-shadow: 0 5px 14px rgba(30,44,70,0.05);
    }

    .rda-group-grid {
      position: relative;
      z-index: 1;
      gap: 1rem;
    }

    .rda-group {
      border: 1px solid rgba(50,115,220,0.12);
      border-radius: 22px;
      overflow: hidden;
      background: rgba(255,255,255,0.96);
      box-shadow: 0 10px 28px rgba(30,44,70,0.08);
    }

    .rda-group-title {
      justify-content: center;
      position: relative;
      padding: 0.9rem 3rem;
      text-align: center;
      color: #1d2939;
      background:
        linear-gradient(135deg, rgba(50,115,220,0.10), rgba(124,58,237,0.08)),
        #f8fbff;
      border-bottom: 1px solid rgba(50,115,220,0.12);
      letter-spacing: -0.01em;
    }

    .rda-group-title small {
      display: block;
      margin-top: 0.16rem;
      color: #667085;
      font-size: 0.76rem;
      letter-spacing: 0;
    }

    .rda-chevron {
      position: absolute;
      right: 1.05rem;
      top: 50%;
      transform: translateY(-50%);
    }

    .rda-group.is-collapsed .rda-chevron {
      transform: translateY(-50%) rotate(-90deg);
    }

    .rda-group-body {
      overflow-x: auto;
      background: #fff;
    }

    .rda-group-body::-webkit-scrollbar {
      height: 9px;
    }

    .rda-group-body::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(50,115,220,0.35), rgba(124,58,237,0.35));
    }

    table.rda-paper-table {
      border-collapse: separate;
      border-spacing: 0;
      table-layout: auto;
      font-size: 0.82rem;
      color: #273247;
    }

    .rda-paper-table th,
    .rda-paper-table td {
      padding: 0.62rem 0.62rem;
      border-right: 1px solid rgba(82, 96, 130, 0.10);
      border-bottom: 1px solid rgba(82, 96, 130, 0.10);
      text-align: center;
      vertical-align: middle;
    }

    .rda-paper-table thead th {
      position: sticky;
      top: 0;
      z-index: 2;
      text-align: center !important;
      color: #ffffff;
      background: linear-gradient(135deg, var(--rda-primary-deep), var(--rda-primary));
      font-size: 0.76rem;
      letter-spacing: 0.015em;
      box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
    }

    .rda-paper-table thead th:first-child {
      border-top-left-radius: 0;
    }

    .rda-paper-table .model-col {
      min-width: 9.5rem;
      width: auto;
    }

    .rda-paper-table thead .model-col {
      text-align: center !important;
      color: #fff;
    }

    .rda-paper-table tbody .model-col {
      text-align: left;
      color: #172033;
      font-weight: 850;
      background: rgba(248, 250, 255, 0.72);
    }

    .rda-paper-table .size-col,
    .rda-paper-table .res-col {
      min-width: 4.8rem;
      width: auto;
    }

    .rda-paper-table tbody tr:nth-child(even):not(.rda-section-label) td {
      background: #fbfdff;
    }

    .rda-paper-table tbody tr:hover td {
      background: #f2f7ff !important;
    }

    .rda-section-label td {
      padding: 0.58rem 0.8rem;
      text-align: center !important;
      color: #2446b8;
      background: linear-gradient(90deg, rgba(50,115,220,0.10), rgba(124,58,237,0.07)) !important;
      font-size: 0.76rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .rda-before {
      color: #7b8495;
      font-weight: 700;
    }

    .rda-after {
      color: #4327a7;
      font-weight: 900;
    }

    .rda-slash {
      color: #c6ccd8;
      padding: 0 0.22rem;
    }

    .rda-delta {
      display: inline-block;
      min-width: 4.2rem;
      margin-top: 0.18rem;
      padding: 0.18rem 0.38rem;
      border-radius: 999px;
      font-size: 0.66rem;
      line-height: 1.1;
      background: #f5f7fb;
    }

    .rda-delta.good {
      color: #087443;
      background: rgba(16, 185, 129, 0.11);
    }

    .rda-delta.bad {
      color: #b42318;
      background: rgba(244, 63, 94, 0.10);
    }

    .rda-delta.flat {
      color: #667085;
      background: rgba(102,112,133,0.10);
    }

    .rda-note-line {
      position: relative;
      z-index: 1;
      max-width: 840px;
      margin: 1rem auto 0;
      text-align: center;
      color: #667085;
      font-size: 0.83rem;
    }

    .sec-results > .container > h3 {
      margin-top: 2.2rem;
      margin-bottom: 1.25rem !important;
    }

    .sec-bibtex pre {
      border-radius: 20px;
      border: 1px solid rgba(50,115,220,0.12);
      background: #0f172a;
      color: #dbeafe;
      box-shadow: var(--rda-soft-shadow);
      padding: 1.4rem;
    }

    .footer {
      background: linear-gradient(135deg, #111827, #172033);
      color: #d1d5db;
    }

    .footer p,
    .footer a {
      color: #d1d5db;
    }

    @media (max-width: 900px) {
      .section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
      .publication-title { font-size: 2.2rem !important; letter-spacing: -0.04em; }
      .sec-abstract .column.is-four-fifths,
      .sec-method .container,
      .sec-motivation .container,
      .sec-bibtex .container.content { padding: 1.55rem; border-radius: 22px; }
      .rda-compact-results { padding: 1rem; border-radius: 24px; }
      .rda-simple-tabs { width: 100%; max-width: 520px; }
      .rda-simple-tab { flex: 1; }
      .carousel-btn.left { left: -8px; }
      .carousel-btn.right { right: -8px; }
    }

    @media (max-width: 560px) {
      .hero-body { padding-top: 3.2rem; padding-bottom: 3rem; }
      .publication-title { font-size: 1.82rem !important; }
      .publication-title span { font-size: 72% !important; }
      .rda-legend { justify-content: flex-start; }
      .rda-group-title { padding-left: 1rem; padding-right: 2.8rem; }
      table.rda-paper-table { min-width: 680px; font-size: 0.76rem; }
      .rda-paper-table th,
      .rda-paper-table td { padding: 0.52rem 0.5rem; }
    }


/* =========================================================
   Flow-style RDA title
   Use with this HTML:
   <h1 class="title is-1 publication-title rda-flow-title">
     <span class="rda-flow-main">Residual Decoder Adapter</span>
     <span class="rda-flow-sub">
       Boosting AR Text Rendering without Retraining the Tokenizer
     </span>
   </h1>
   ========================================================= */

.publication-title.rda-flow-title {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  color: var(--rda-ink, #172033);
  letter-spacing: 0;
}

/* Override the earlier .publication-title span gradient rule */
.publication-title.rda-flow-title span {
  margin-top: 0;
  letter-spacing: normal;
  line-height: normal;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
}


.rda-flow-main {
  position: relative;
  display: inline-block !important;
  padding: 0.04em 0.1em 0.22em;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: clamp(4.25rem, 7.8vw, 7.45rem);
  font-weight: 900;
  line-height: 0.92 !important;
  letter-spacing: -0.085em !important;
  font-style: italic;
  color: transparent !important;
  background:
    linear-gradient(
      108deg,
      #0f172a 0%,
      #172554 14%,
      #1d4ed8 34%,
      #7c3aed 67%,
      #06b6d4 100%
    ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 16px 30px rgba(37, 99, 235, 0.20));
  transform: skewX(-4deg);
}

/* soft streamlined stroke under the main title */
.rda-flow-main::before {
  content: "";
  position: absolute;
  left: 3.5%;
  right: 1.5%;
  bottom: 0.045em;
  height: 0.12em;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(29, 78, 216, 0),
      rgba(29, 78, 216, 0.58),
      rgba(124, 58, 237, 0.56),
      rgba(6, 182, 212, 0)
    );
  transform: skewX(-22deg);
  filter: blur(0.45px);
  opacity: 0.78;
  pointer-events: none;
}

/* thin flying highlight line */
.rda-flow-main::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 2px;
  right: 0.5%;
  top: 0.08em;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(6, 182, 212, 0),
      rgba(6, 182, 212, 0.82),
      rgba(124, 58, 237, 0.18),
      rgba(124, 58, 237, 0)
    );
  transform: rotate(-5deg) skewX(-18deg);
  opacity: 0.9;
  pointer-events: none;
}

.rda-flow-sub {
  display: block !important;
  max-width: 1080px;
  margin-top: 1.55rem !important;

  font-family: 'Google Sans', 'Inter', 'Noto Sans', sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 1000;
  line-height: 1.18 !important;
  letter-spacing: -0.055em !important;

  color: transparent !important;
  background: linear-gradient(
    105deg,
    #263248 0%,
    #334155 34%,
    #2563eb 68%,
    #06b6d4 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;

  text-wrap: balance;
  filter: drop-shadow(0 8px 18px rgba(37, 99, 235, 0.12));
}

@media (max-width: 900px) {
  .publication-title.rda-flow-title {
    max-width: 96%;
  }

  .rda-flow-main {
    font-size: clamp(3.1rem, 11.5vw, 5.3rem);
    letter-spacing: -0.075em !important;
  }

  .rda-flow-sub {
    font-size: clamp(1rem, 3vw, 1.22rem);
    max-width: 92%;
  }
}
.rda-flow-main {
    font-size: clamp(2.52rem, 13.5vw, 3.75rem);
    letter-spacing: -0.06em !important;
    transform: skewX(-3deg);
  }

  .rda-flow-sub {
    margin-top: 0.82rem !important;
    font-size: 0.98rem !important;
    line-height: 1.42 !important;
  }

  /* Override old mobile rule: .publication-title span { font-size: 72% !important; } */
    .publication-title.rda-flow-title .rda-flow-main,
  .publication-title.rda-flow-title .rda-flow-sub {
    font-size: revert;
  }
.publication-title.rda-flow-title .rda-flow-main {
    font-size: clamp(2.52rem, 13.5vw, 3.75rem) !important;
  }

.publication-title.rda-flow-title .rda-flow-sub {
  font-size: clamp(1.18rem, 5vw, 1.65rem) !important;
}

.rda-tldr-box {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;

  width: 100%;
  margin: 0.25rem auto 1.65rem;
  padding: 1.05rem 1.15rem;

  border-radius: 18px;
  border: 1px solid rgba(50, 115, 220, 0.12);
  background: rgba(248, 250, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);

  text-align: left;
}

.rda-tldr-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 0.08rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;

  background: linear-gradient(135deg, #3273dc, #7c3aed);
  color: #ffffff;

  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rda-tldr-text {
  display: block;
  flex: 1;

  color: #344054;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.72;
  letter-spacing: -0.012em;
}

.rda-tldr-text strong {
  color: #172033;
  font-weight: 850;
}

@media (max-width: 560px) {
  .rda-tldr-box {
    display: block;
    padding: 1rem;
    border-radius: 16px;
  }

  .rda-tldr-label {
    margin-bottom: 0.65rem;
  }

  .rda-tldr-text {
    font-size: 0.98rem;
    line-height: 1.65;
  }
}


/* =========================================================
       Fancy background refresh
       Only updates page/section backgrounds; layout and content stay unchanged.
       ========================================================= */

    body {
      position: relative;
      overflow-x: hidden;
      background:
        radial-gradient(circle at 12% 8%, rgba(50, 115, 220, 0.18), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.16), transparent 30rem),
        radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.10), transparent 34rem),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fd 42%, #ffffff 100%) !important;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      background:
        linear-gradient(rgba(50,115,220,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50,115,220,0.045) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.16) 45%, transparent 100%);
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.16) 45%, transparent 100%);
    }

    body::after {
      content: "";
      position: fixed;
      inset: -20%;
      z-index: -3;
      pointer-events: none;
      background:
        radial-gradient(circle at 15% 25%, rgba(50, 115, 220, 0.16), transparent 24rem),
        radial-gradient(circle at 85% 18%, rgba(124, 58, 237, 0.14), transparent 26rem),
        radial-gradient(circle at 78% 72%, rgba(6, 182, 212, 0.10), transparent 25rem),
        radial-gradient(circle at 30% 82%, rgba(99, 102, 241, 0.10), transparent 24rem);
      filter: blur(2px);
      animation: rda-bg-float 18s ease-in-out infinite alternate;
    }

    @keyframes rda-bg-float {
      0% {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
      }
      100% {
        transform: translate3d(1.5%, 1%, 0) scale(1.03);
      }
    }

    .sec-hero {
      position: relative;
      isolation: isolate;
      background:
        radial-gradient(circle at 16% 14%, rgba(50, 115, 220, 0.22), transparent 28rem),
        radial-gradient(circle at 86% 8%, rgba(124, 58, 237, 0.20), transparent 30rem),
        radial-gradient(circle at 50% 110%, rgba(6, 182, 212, 0.12), transparent 28rem),
        linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(245,248,255,0.94) 48%, rgba(235,243,255,0.96) 100%) !important;
    }

    .sec-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      background:
        linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.48) 30%, transparent 58%),
        radial-gradient(circle at 18% 20%, rgba(255,255,255,0.7), transparent 16rem);
      opacity: 0.72;
    }

    .sec-hero::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -9rem;
      z-index: -1;
      width: min(88vw, 980px);
      height: 18rem;
      transform: translateX(-50%);
      pointer-events: none;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(50,115,220,0), rgba(50,115,220,0.18), rgba(124,58,237,0.18), rgba(6,182,212,0));
      filter: blur(28px);
      opacity: 0.95;
    }

    .sec-gallery,
    .sec-motivation,
    .sec-results {
      background:
        radial-gradient(circle at 12% 12%, rgba(50,115,220,0.10), transparent 26rem),
        radial-gradient(circle at 92% 16%, rgba(124,58,237,0.09), transparent 26rem),
        linear-gradient(180deg, rgba(247,249,255,0.98) 0%, rgba(239,245,255,0.98) 100%) !important;
    }

    .sec-abstract,
    .sec-method,
    .sec-bibtex {
      background:
        radial-gradient(circle at 8% 6%, rgba(6,182,212,0.055), transparent 22rem),
        radial-gradient(circle at 92% 12%, rgba(50,115,220,0.055), transparent 24rem),
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,251,255,0.98) 100%) !important;
    }

    .section::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.64), transparent 20rem);
      opacity: 0.42;
    }

    @media (prefers-reduced-motion: reduce) {
      body::after {
        animation: none;
      }
    }

    @media (max-width: 760px) {
      body::before {
        background-size: 34px 34px;
      }

      .sec-hero::after {
        bottom: -7rem;
        height: 14rem;
      }
    }
