body[data-page="paper"] {
  background: #f3efe6 !important;
  color: #141414 !important;
}

body[data-page="paper"] main {
  position: relative;
  z-index: 2;
  min-height: 75vh;
  padding-top: 76px;
  background: #f3efe6;
}

body[data-page="paper"] .paper-hero {
  display: block !important;
  width: min(100%, 1140px) !important;
  max-width: 1140px !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: clamp(70px, 10vw, 140px) clamp(22px, 5vw, 70px) 54px !important;
  border-bottom: 0 !important;
  overflow: visible;
}

body[data-page="paper"] .paper-hero::before,
body[data-page="paper"] .paper-hero::after {
  content: none !important;
}

.paper-back,
.paper-eyebrow,
.paper-section-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.paper-back {
  display: inline-block;
  margin-bottom: 45px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

.paper-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px !important;
  color: #6b645c;
}

.paper-eyebrow .venue {
  color: #6f5594;
}

body[data-page="paper"] .paper-hero > .paper-title {
  max-width: 1020px !important;
  margin: 0 0 30px !important;
  font-family: "Newsreader", Georgia, serif !important;
  font-size: clamp(42px, 6.2vw, 82px) !important;
  font-weight: 400 !important;
  letter-spacing: -0.04em !important;
  line-height: 0.98 !important;
}

.paper-authors {
  max-width: none !important;
  margin: 0 !important;
  color: #625d55;
  font-size: 15px;
  line-height: 1.6;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.paper-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background-color 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.paper-link:hover {
  background: rgba(200, 183, 232, 0.48);
}

.paper-link.primary {
  border-color: #141414;
  background: #141414;
  color: #f3efe6;
}

.paper-link.primary:hover {
  background: #c8b7e8;
  color: #141414;
}

.paper-body {
  width: min(100%, 1140px);
  margin: 0 auto;
  padding: 18px clamp(22px, 5vw, 70px) 110px;
}

.paper-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 780px);
  gap: 32px;
  padding: 42px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.2);
}

.paper-section-label {
  padding-top: 5px;
  color: #6f5594;
}

.paper-section-body {
  min-width: 0;
  color: #554f48;
  font-size: 16px;
  line-height: 1.72;
}

.paper-section-body p + p {
  margin-top: 18px;
}

.paper-section-body strong,
.paper-section-body em {
  color: #141414;
}

.paper-section-body ul {
  display: grid !important;
  gap: 0 !important;
  margin: 0;
  border-top: 1px solid rgba(20, 20, 20, 0.16);
}

.paper-section-body li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.16);
}

.bibtex-wrap {
  position: relative;
}

.bibtex {
  padding: 20px;
  overflow-x: auto;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #e9e2d7;
  color: #3e3934;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.6;
  white-space: pre;
}

.bibtex-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #f3efe6;
  color: #141414;
  font: 8px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.related-row {
  display: grid;
  gap: 8px;
}

.related-card {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.16);
}

.rc-num {
  color: #6f5594;
  font: 8px/1.4 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.rc-title {
  margin-top: 5px;
}

@media (max-width: 900px) {
  body[data-page="paper"] main { padding-top: 66px; }
  .paper-section { grid-template-columns: 1fr; gap: 14px; }
}
