/* DOBI project page ------------------------------------------------------ */

:root {
  --ink:        #14171f;
  --ink-soft:   #4a5160;
  --ink-faint:  #79808f;
  --rule:       #e4e7ee;
  --bg:         #ffffff;
  --bg-tint:    #f6f7fa;
  --accent:     #2f5fd0;
  --accent-dk:  #1f47a4;
  --accent-tint:#eef2fc;
  --maxw:       900px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', 'Google Sans', 'Inter', -apple-system,
               BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- top nav ------------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 52px;
}
.topbar .mark {
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
}
.topbar nav {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .86rem;
  white-space: nowrap;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.topbar nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- hero --------------------------------------------------------------- */
.hero-head {
  padding: 60px 0 8px;
  text-align: center;
}
h1.title {
  font-size: 2.15rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.018em;
  margin: 0 auto 26px;
  max-width: 860px;
  text-wrap: balance;
}
h1.title .acronym { color: var(--accent); }

.authors {
  font-size: 1.05rem;
  margin-bottom: 8px;
  line-height: 2.1;
}
.authors a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.authors a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.authors sup { color: var(--accent); font-weight: 600; font-size: .75em; }

.affils {
  font-size: .92rem;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.affils sup { color: var(--accent); font-weight: 600; }

/* --- link buttons ------------------------------------------------------- */
.linkrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.ghost:hover { background: var(--accent-tint); color: var(--accent-dk); border-color: var(--accent); }
.btn.disabled {
  background: var(--bg-tint);
  color: var(--ink-faint);
  border-color: var(--rule);
  pointer-events: none;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* --- sections ----------------------------------------------------------- */
section { padding: 52px 0; }
section + section { border-top: 1px solid var(--rule); }
section.tint { background: var(--bg-tint); }

h2.section-title {
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.section-lead .emph {
  color: var(--accent-dk);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.section-lead a {
  color: var(--ink);
  font-style: italic;
  text-decoration: none;
}
.section-lead a:hover { color: var(--accent); }

.section-lead {
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 760px;
}
h3.sub {
  font-size: 1.12rem;
  font-weight: 650;
  margin: 34px 0 8px;
}
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.abstract p {
  text-align: justify;
  hyphens: auto;
}

/* --- figures ------------------------------------------------------------ */
figure {
  margin: 26px auto;
  max-width: 620px;
}
figure.wide { max-width: none; }
.two-col figure { max-width: none; margin: 18px 0 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: #fff;
}
figure.plain img { border: none; border-radius: 0; }
figcaption {
  font-size: .86rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-top: 12px;
}
figcaption b { color: var(--ink); font-weight: 600; }

.teaser { padding: 26px 0 0; }
.teaser figure { margin-top: 10px; }

/* --- foldable abstract -------------------------------------------------- */
details.fold {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
details.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary:hover h2 { color: var(--accent); }
details.fold > summary h2 { margin: 0; transition: color .15s; }
details.fold .chevron {
  width: 18px; height: 18px;
  flex: none;
  fill: var(--ink-faint);
  transition: transform .2s ease;
}
details.fold[open] .chevron { transform: rotate(180deg); }
.fold-body { padding-bottom: 24px; }
.fold-body p:last-child { margin-bottom: 0; }

/* --- video embed -------------------------------------------------------- */
.video-embed {
  position: relative;
  margin-top: 30px;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- two-column rows ---------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
  margin: 30px 0;
}
.two-col.text-wide { grid-template-columns: 1.05fr 1fr; }
.two-col > div > *:first-child { margin-top: 0; }
.two-col h3.sub { margin-top: 0; }
.col-head {
  font-size: 1.06rem;
  font-weight: 650;
  margin: 0 0 4px;
}
.col-sub {
  font-size: .82rem;
  color: var(--ink-faint);
  margin: 0 0 12px;
  letter-spacing: .02em;
}
.two-col p { font-size: .95rem; }

/* --- pipeline steps ----------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 4px;
}
.step {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 20px 20px 18px;
}
section.tint .step { background: #fff; }
.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step h4 { font-size: 1.02rem; font-weight: 650; margin: 0 0 6px; }
.step p  { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* --- findings/* --- findings ----------------------------------------------------------- */
.finding {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px;
  margin: 0 0 16px;
}
.finding h4 {
  font-size: 1.02rem;
  font-weight: 650;
  margin: 0 0 6px;
}
.finding h4 .tag {
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}
.finding p { font-size: .96rem; color: var(--ink-soft); margin: 0; }

.quote {
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--rule);
  padding-left: 16px;
  margin: 18px 0;
  font-size: .96rem;
}
.quote cite { font-style: normal; font-size: .86rem; color: var(--ink-faint); display: block; margin-top: 4px; }

/* --- tables ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 24px 0; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 0;
  background: #fff;
}
table.data caption {
  caption-side: bottom;
  text-align: left;
  font-size: .86rem;
  color: var(--ink-soft);
  padding-top: 12px;
}
table.data th, table.data td {
  padding: 9px 10px;
  text-align: right;
  border-bottom: 1px solid var(--rule);
}
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th {
  border-bottom: 2px solid var(--ink);
  font-weight: 650;
  font-size: .85rem;
  color: var(--ink);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 2px solid var(--ink); }
table.data tbody tr.best td { background: var(--accent-tint); font-weight: 600; }

/* --- bibtex ------------------------------------------------------------- */
pre.bibtex {
  background: var(--ink);
  color: #e8ecf5;
  border-radius: 10px;
  padding: 22px 24px;
  overflow-x: auto;
  font-size: .84rem;
  line-height: 1.62;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0;
}

/* --- footer ------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0 48px;
  font-size: .85rem;
  color: var(--ink-faint);
  text-align: center;
}
footer a { color: var(--ink-soft); }
footer p { margin-bottom: 8px; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1.title { font-size: 1.95rem; }
  .hero-head { padding-top: 40px; }
  .steps { grid-template-columns: 1fr; }
  .two-col, .two-col.text-wide { grid-template-columns: 1fr; gap: 26px; }
  .two-col figure { max-width: 620px; }
  section { padding: 40px 0; }
  .topbar nav { gap: 14px; }
}
