:root {
  --oneocean-blue: #0d3b66;
  --oneocean-blue-deep: #082a49;
  --oneocean-surface: #f8fbff;
}

::selection {
  background: #cfe5ff;
  color: #0b1f33;
}

.paper-table thead ::selection,
.paper-table thead th::selection,
.paper-table thead td::selection {
  background: rgba(255, 255, 255, 0.92);
  color: var(--oneocean-blue);
}

.oneocean-hero {
  background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
}

.oneocean-hero .hero-body {
  padding-top: 4.25rem;
  padding-bottom: 4.75rem;
}

.hero-tagline {
  max-width: 980px;
  margin: 1.2rem auto 0;
  font-size: 1.08rem;
  color: var(--text-secondary);
}

.oneocean-links {
  margin-top: 2.25rem;
}

.video-intro-section {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  background: #f4f8fc;
}

.video-column {
  margin-top: 0.35rem;
}

.video-embed-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: #08121f;
}

.video-embed-shell {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

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

.overview-top-row {
  align-items: flex-start;
}

.overview-figure-card {
  max-width: none !important;
}

.overview-figure-column .hf-caption {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.overview-main-figure {
  max-height: 640px !important;
  width: 100%;
  object-fit: contain;
}

.overview-copy {
  padding-top: 0.25rem;
}

.mini-points-row {
  margin-top: 0.65rem;
}

.mini-point,
.task-family-card {
  height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #d8e5f3;
}

.mini-point {
  font-size: 0.94rem;
  line-height: 1.58;
  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: 0.5rem;
  align-content: start;
  text-align: left;
}

.mini-point-label {
  display: block;
  font-weight: 800;
  font-size: 0.91rem;
  line-height: 1.2;
  color: var(--oneocean-blue);
}

.mini-point-body {
  display: block;
  font-size: 0.88rem;
  line-height: 1.58;
  text-align: justify;
  text-justify: inter-word;
}

.method-lead {
  margin-bottom: 1.25rem;
}

.benchmark-pillars,
.task-family-grid {
  margin-top: 0.35rem;
}

.method-card,
.family-card {
  height: 100%;
}

.method-card .card-content,
.family-card {
  display: flex;
  flex-direction: column;
}

.benchmark-card .card-content {
  height: 100%;
  justify-content: space-between;
  gap: 0.75rem;
}

.benchmark-card h3,
.family-card h4 {
  margin-bottom: 0.55rem;
}

.family-card h4 {
  font-weight: 800;
}

.benchmark-card p:last-child,
.family-card p:last-child {
  margin-bottom: 0;
}

.benchmark-card p,
.family-card p,
.demo-card .card-content p {
  font-size: 0.9rem;
  line-height: 1.58;
  text-align: justify;
  text-justify: inter-word;
}

.hf-caption {
  font-size: 0.9rem;
  line-height: 1.58;
}

.task-families-wrap {
  margin-top: 1.8rem;
}

.table-panel {
  margin-top: 2rem;
}

.table-caption {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.table-scroll.narrow .paper-table {
  min-width: 760px;
}

.paper-table.compact {
  min-width: 880px;
}

.paper-table thead {
  background: var(--oneocean-blue);
  color: #ffffff;
}

.paper-table th,
.paper-table td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid #e7edf3;
  text-align: center;
  vertical-align: middle;
  font-size: 0.95rem;
}

.paper-table thead th,
.paper-table thead td {
  color: #ffffff !important;
}

.paper-table th:first-child,
.paper-table td:first-child {
  text-align: left;
}

.paper-table tbody tr:nth-child(even) {
  background: #f8fbff;
}

.paper-table tbody tr:hover {
  background: #eef6ff;
}

.paper-table .best {
  color: #b42318;
  font-weight: 800;
}

.result-figures {
  margin-top: 1.25rem;
}

.demo-card {
  height: 100%;
}

.demo-card .card-image {
  background: #091625;
}

.demo-card .card-content p:last-child {
  margin-bottom: 0;
}

.demo-card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

.demo-card .title.is-5 {
  font-size: 0.97rem;
}

code {
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .publication-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .oneocean-hero .hero-body {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .oneocean-links {
    margin-top: 1.75rem;
  }

  .video-intro-section {
    padding-top: 1.75rem;
    padding-bottom: 2.5rem;
  }

  .paper-table th,
  .paper-table td {
    padding: 0.65rem 0.6rem;
    font-size: 0.88rem;
  }

  .mini-point,
  .task-family-card {
    padding: 0.9rem;
  }

  .mini-point,
  .benchmark-card p,
  .family-card p,
  .demo-card .card-content p,
  .hf-caption {
    font-size: 0.86rem;
  }

  .mini-point-body {
    font-size: 0.84rem;
  }
}
