/* Paper pages — extends styles.css with an article layout. */

.paper {
  width: min(46rem, calc(100vw - 2 * var(--gutter)));
  margin-inline: auto;
  padding: 8.5rem 0 6rem;
}

.paper__title {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.1;
  margin-top: 0.4rem;
}

.paper__byline {
  color: var(--muted);
  margin-top: 1.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
}
.paper__byline a { color: var(--accent); text-decoration: none; }
.paper__byline a:hover { text-decoration: underline; }

.paper p { margin-top: 1.1em; color: var(--ink); }
.paper p strong { color: var(--ink); }

.paper__h2 {
  font-size: 1.55rem;
  margin-top: 3.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.paper__h3 {
  font-size: 1.15rem;
  margin-top: 2.2rem;
  color: var(--ink);
}

.paper__abstract {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.4rem;
  color: var(--muted);
  font-size: 1.02em;
}

.paper__keywords { color: var(--muted); font-size: 0.72rem; }

.paper__eq {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-top: 1.4em;
  overflow-x: auto;
  font-size: 0.85rem;
}
.paper__eqno { color: var(--muted); flex-shrink: 0; }

.paper__fig { margin: 2.4rem 0 0; }
.paper__fig img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.paper__fig figcaption,
.paper__tablewrap figcaption,
.paper__loosecap {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.7;
  margin-top: 0.9rem;
}

.paper__tablewrap { margin: 2.4rem 0 0; overflow-x: auto; }
.paper__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.paper__table th, .paper__table td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
.paper__table thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}
.paper__table tbody th { font-weight: 600; white-space: nowrap; }

.paper__refs { margin-top: 1rem; }
.paper__ref {
  font-size: 0.85em;
  color: var(--muted);
  padding-left: 1.6em;
  text-indent: -1.6em;
}

.site-foot__colophon a { color: inherit; text-decoration: none; }
.site-foot__colophon a:hover { color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
