:root {
  --ink: #141414;
  --muted: #62615d;
  --line: #d8d3c8;
  --paper: #f4f1ea;
  --surface: #fffdf8;
  --field: #ece8df;
  --green: #1d6f55;
  --blue: #263f5d;
  --amber: #9c6b22;
  --red: #a91f2f;
  --focus: #121924;
  --shadow: 0 18px 34px rgba(20, 20, 20, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #f8f5ee 0, var(--paper) 420px),
    var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-color: rgba(49, 93, 154, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.publisher-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px max(16px, calc((100vw - 1220px) / 2));
  background: #111;
  color: rgba(255, 253, 248, 0.86);
  font-size: 0.78rem;
}

.publisher-strip span:first-child {
  font-weight: 850;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(16px, calc((100vw - 1220px) / 2));
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 1px solid rgba(20, 20, 20, 0.16);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.paper-meta,
.paper-footer,
.link-row,
.segmented,
.vote-row,
.comment-meta,
.section-title,
.discussion-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 850;
}

.brand-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-domain {
  margin-left: -6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.logout-form {
  margin: 0;
}

.logout-form button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.button,
button {
  border: 1px solid var(--focus);
  border-radius: 4px;
  background: var(--focus);
  color: #fffdf8;
  padding: 0.78rem 1rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button-small {
  padding: 0.52rem 0.8rem;
}

.button-full {
  display: block;
  width: 100%;
  text-align: center;
}

.button-muted {
  background: transparent;
  color: var(--ink);
}

.button-light {
  border-color: rgba(255, 253, 248, 0.52);
  background: rgba(255, 253, 248, 0.06);
  color: #fffdf8;
}

.messages {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
}

.message {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}

.message-error {
  border-left-color: var(--red);
}

.message-success {
  border-left-color: var(--green);
}

.hero-band {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 30px;
  align-items: end;
  min-height: 520px;
  margin: 26px calc(50% - 50vw) 26px;
  padding: 56px max(18px, calc((100vw - 1220px) / 2));
  border-bottom: 1px solid rgba(20, 20, 20, 0.22);
  background:
    linear-gradient(90deg, rgba(10, 12, 15, 0.9), rgba(10, 12, 15, 0.58) 52%, rgba(10, 12, 15, 0.22)),
    url("img/openproof-masthead.jpg") center / cover no-repeat;
  color: #fffdf8;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
}

.eyebrow {
  margin: 0 0 10px;
  color: #e0b15a;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 820px;
  margin: 20px 0 0;
  color: rgba(255, 253, 248, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-band .button-muted {
  border-color: rgba(255, 253, 248, 0.52);
  background: rgba(255, 253, 248, 0.04);
  color: #fffdf8;
}

.hero-band .button-muted:hover,
.hero-band .button-light:hover {
  background: rgba(255, 253, 248, 0.16);
}

.signal-panel {
  display: grid;
  gap: 16px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.masthead-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 170px)) minmax(160px, 190px);
  gap: 0;
  align-items: stretch;
  max-width: 700px;
  border-top: 1px solid rgba(255, 253, 248, 0.34);
  border-bottom: 1px solid rgba(255, 253, 248, 0.34);
}

.masthead-stats div,
.masthead-stats a {
  min-height: 82px;
  padding: 16px 18px;
}

.masthead-stats div {
  border-right: 1px solid rgba(255, 253, 248, 0.28);
}

.masthead-stats strong {
  display: block;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1;
}

.masthead-stats span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.image-credit {
  position: absolute;
  right: max(18px, calc((100vw - 1220px) / 2));
  bottom: 14px;
  margin: 0;
  color: rgba(255, 253, 248, 0.52);
  font-size: 0.76rem;
}

.panel-number,
.metric-number {
  display: block;
  font-size: 2.6rem;
  font-weight: 850;
  line-height: 1;
}

.panel-label,
.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.toolbar-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 30px 0 18px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.78rem 0.9rem;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(49, 93, 154, 0.22);
  outline-offset: 2px;
}

.segmented {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
}

.segmented a {
  padding: 0.72rem 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.segmented a.active {
  background: var(--red);
  color: #fffdf8;
}

.feed {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}

.principles-band,
.claim-grid,
.review-workbench {
  display: grid;
  gap: 16px;
}

.principles-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles-band article {
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 20px 20px 20px 0;
}

.principles-band article:last-child {
  border-right: 0;
}

.principles-band p {
  color: var(--muted);
  line-height: 1.55;
}

.how-it-works-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
  gap: 24px;
  align-items: start;
  margin: 0 0 30px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.how-it-works-intro {
  position: sticky;
  top: 100px;
}

.how-it-works-intro h2,
.weighting-note h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
}

.how-it-works-intro p,
.workflow-steps p,
.weighting-note p {
  color: var(--muted);
  line-height: 1.6;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workflow-steps article {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 18px;
}

.workflow-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--red);
  color: #fffdf8;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 850;
}

.workflow-steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.workflow-steps p {
  margin: 0;
}

.weighting-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 0 0 32px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.88)),
    url("img/openproof-archive.jpg") right center / auto 100% no-repeat,
    var(--surface);
  padding: 22px;
}

.weighting-note h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.weighting-note p {
  max-width: 860px;
  margin: 10px 0 0;
}

.reputation-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 940px;
  margin-top: 16px;
}

.reputation-examples article {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.reputation-examples h3 {
  margin: 0;
  font-size: 0.94rem;
}

.reputation-examples p {
  margin-top: 6px;
  font-size: 0.94rem;
}

.claim-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.claim-card,
.claim-mini,
.evidence-item,
.task-item,
.challenge-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.claim-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  box-shadow: 0 9px 24px rgba(23, 23, 23, 0.05);
}

.claim-card::before {
  content: "";
  display: block;
  height: 118px;
  margin: -18px -18px 4px;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.06), rgba(10, 12, 15, 0.48)),
    url("img/openproof-claims.jpg") center / cover no-repeat;
}

.claim-card:nth-child(2n)::before {
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.06), rgba(10, 12, 15, 0.48)),
    url("img/openproof-archive.jpg") center / cover no-repeat;
}

.claim-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.claim-card-head span,
.status-pill {
  border-radius: 999px;
  background: var(--field);
  color: var(--muted);
  padding: 0.22rem 0.58rem;
  font-size: 0.82rem;
  font-weight: 750;
}

.claim-card h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.score-strip div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.score-strip strong {
  font-size: 1.25rem;
}

.score-strip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.paper-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 104px;
  gap: 20px;
  align-items: stretch;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
}

.paper-card:first-child {
  border-top: 3px solid var(--ink);
}

.paper-visual {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 132px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.08), rgba(10, 12, 15, 0.78)),
    url("img/openproof-claims.jpg") center / cover no-repeat;
}

.paper-card:nth-child(3n+2) .paper-visual {
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.08), rgba(10, 12, 15, 0.78)),
    url("img/openproof-archive.jpg") center / cover no-repeat;
}

.paper-card:nth-child(3n+3) .paper-visual {
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.08), rgba(10, 12, 15, 0.78)),
    url("img/openproof-masthead.jpg") center / cover no-repeat;
}

.paper-visual span {
  display: block;
  padding: 10px;
  color: #fffdf8;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.paper-rank {
  display: grid;
  place-content: center;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #f6f3ec;
  color: var(--red);
  text-align: center;
}

.score {
  font-size: 1.7rem;
  font-weight: 850;
}

.paper-main {
  min-width: 0;
}

.paper-meta,
.paper-footer,
.comment-meta {
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.paper-meta span,
.paper-footer span,
.status-positive,
.status-waiting {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.paper-meta span {
  border-radius: 0;
  background: transparent;
  border-left: 3px solid var(--red);
  padding: 0 0 0 0.48rem;
}

.paper-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 8px 0 6px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.authors {
  margin: 0 0 8px;
  color: var(--blue);
  font-weight: 700;
}

.abstract {
  margin: 0 0 14px;
  color: #3d403f;
  line-height: 1.55;
}

.paper-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.paper-actions {
  margin: 0 0 13px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  padding-top: 12px;
}

.paper-actions .button {
  padding: 0.52rem 0.7rem;
}

.share-pill {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.share-pill:hover {
  border-color: var(--red);
  color: var(--red);
}

.text-button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(49, 93, 154, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.status-positive {
  color: var(--green);
  font-weight: 800;
}

.status-waiting {
  color: var(--amber);
  font-weight: 800;
}

.empty-state,
.page-head,
.profile-head,
.auth-layout,
.cosign-band,
.discussion-layout,
.form-shell {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
}

.empty-state {
  border-radius: 8px;
  text-align: center;
}

.launch-invite {
  display: grid;
  justify-items: center;
  border-top: 5px solid var(--red);
  padding: 34px;
}

.launch-invite h2 {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.launch-invite p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.empty-state.compact {
  padding: 18px;
  text-align: left;
}

.page-head {
  margin: 36px 0 20px;
  border-top: 5px solid var(--red);
}

.page-head p,
.auth-copy p,
.profile-bio {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.form-shell {
  margin-bottom: 48px;
}

.submission-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 48px;
}

.submission-layout .form-shell {
  margin-bottom: 0;
}

.submission-guide {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(255, 253, 248, 0.92)),
    url("img/openproof-archive.jpg") center / cover no-repeat;
  padding: 24px;
}

.submission-guide h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.08;
}

.submission-guide h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 850;
}

.submission-guide ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25rem;
}

.guide-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.1rem;
}

.submission-guide li,
.submission-guide p {
  color: #3d403f;
  line-height: 1.58;
}

.submission-guide a {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 800;
}

.guide-note {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.guide-note p {
  margin: 6px 0 0;
}

.guide-note-muted {
  border-left-color: #465a69;
  background: rgba(255, 255, 255, 0.58);
}

.stacked-form {
  display: grid;
  gap: 16px;
}

.stacked-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.stacked-form label > span {
  color: var(--ink);
}

.stacked-form small {
  font-weight: 500;
}

.field-error,
.form-errors {
  color: var(--red);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
  margin: 36px 0 20px;
}

.paper-detail,
.signal-sidebar {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
}

.paper-detail h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 4.2vw, 4rem);
}

.abstract-full {
  color: #3d403f;
  font-size: 1.06rem;
  line-height: 1.7;
  white-space: pre-line;
}

.link-row {
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  border-radius: 999px;
  background: var(--field);
  padding: 0.3rem 0.7rem;
  color: var(--muted);
}

.signal-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.metric-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.metric-grid strong {
  font-size: 1.35rem;
}

.metric-grid span {
  color: var(--muted);
}

.status-card {
  border-radius: 8px;
  background: #fff6e7;
  color: var(--amber);
  padding: 0.9rem;
  font-weight: 850;
}

.status-card.ready {
  background: #eaf7f1;
  color: var(--green);
}

.vote-row {
  gap: 8px;
}

.vote-row button {
  flex: 1;
  background: #fff;
  color: var(--ink);
}

.vote-row button.selected {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.cosign-form {
  display: grid;
  gap: 10px;
}

.cosign-band,
.discussion-layout {
  margin-bottom: 20px;
}

.cosign-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.cosign-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.cosign-item span,
.leader-row span {
  color: var(--muted);
}

.discussion-head,
.section-title {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.comment-votes {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--green);
  font-weight: 850;
}

.comment-votes form {
  display: grid;
  gap: 6px;
}

.comment-votes button {
  padding: 0.42rem 0.55rem;
  background: #fff;
  color: var(--ink);
}

.comment-body p {
  line-height: 1.65;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  margin: 36px 0 48px;
}

.auth-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 22px;
}

.form-link {
  margin: 0;
  color: var(--muted);
}

.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 36px 0 20px;
}

.profile-score {
  display: grid;
  place-items: center;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 20px;
  text-align: center;
}

.profile-score strong {
  font-size: 2.3rem;
}

.profile-score span,
.profile-score small {
  color: var(--muted);
}

.leaderboard {
  display: grid;
  gap: 10px;
  margin-bottom: 48px;
}

.leader-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 110px 120px;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.leader-rank {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf8 !important;
  font-weight: 850;
}

.leader-row p {
  margin: 3px 0 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: start;
  border-top: 3px solid var(--ink);
  padding: 30px max(16px, calc((100vw - 1220px) / 2));
  background: #1a1a1a;
  color: rgba(255, 253, 248, 0.68);
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-brand strong {
  color: #fffdf8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-links a {
  color: rgba(255, 253, 248, 0.74);
}

.static-hero {
  position: relative;
  overflow: hidden;
  margin: 36px 0 20px;
  border-top: 5px solid var(--red);
  background:
    linear-gradient(90deg, var(--surface) 0%, var(--surface) 62%, rgba(255, 253, 248, 0.78)),
    url("img/openproof-claims.jpg") right center / auto 100% no-repeat,
    var(--surface);
  padding: 34px clamp(24px, 30vw, 400px) 34px 34px;
}

.static-hero > * {
  position: relative;
  z-index: 1;
}

.static-hero h1 {
  max-width: 980px;
}

.static-hero p:last-child {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.static-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
  margin-bottom: 48px;
}

.static-page,
.static-aside {
  border: 1px solid var(--line);
  background: #fff;
  padding: 26px;
}

.static-page {
  margin-bottom: 48px;
}

.static-layout .static-page {
  margin-bottom: 0;
}

.static-page h2,
.static-aside h2 {
  margin: 20px 0 8px;
}

.static-page h2:first-child,
.static-aside h2:first-child {
  margin-top: 0;
}

.static-page p,
.static-page li,
.static-aside li,
.static-aside p {
  color: #3d403f;
  line-height: 1.65;
}

.static-page blockquote {
  margin: 24px 0;
  border-left: 5px solid var(--blue);
  background: var(--field);
  padding: 18px 20px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-grid article,
.callout,
.news-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
}

.muted-note {
  margin-top: 20px;
  color: var(--muted) !important;
}

.faq-list h2 {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.faq-list h2:first-child {
  border-top: 0;
  padding-top: 0;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-list span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.article-head {
  position: relative;
  overflow: hidden;
  margin: 34px 0 18px;
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--surface) 0%, var(--surface) 58%, rgba(255, 253, 248, 0.9) 72%, rgba(255, 253, 248, 0.5) 100%),
    url("img/openproof-archive.jpg") right center / auto 100% no-repeat,
    var(--surface);
  padding: 32px clamp(28px, 34vw, 440px) 30px 28px;
}

.article-head::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(34vw, 430px);
  border-left: 1px solid rgba(20, 20, 20, 0.12);
  pointer-events: none;
}

.article-head > * {
  position: relative;
  z-index: 1;
}

.journal-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.journal-kicker span {
  border-right: 1px solid var(--line);
  padding-right: 10px;
}

.journal-kicker span:last-child {
  border-right: 0;
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-bottom: 44px;
}

.article-column {
  display: grid;
  gap: 20px;
}

.article-section,
.pdf-reader {
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
}

.article-section h2,
.pdf-reader h2,
.signal-sidebar h2 {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pdf-reader {
  padding: 0;
  overflow: hidden;
}

.reader-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 14px 18px;
}

.reader-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.latex-reader {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.latex-reader-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 520px;
}

.latex-toc {
  position: sticky;
  top: 16px;
  align-self: start;
  display: grid;
  gap: 8px;
  border-right: 1px solid var(--line);
  background: #f7f8f6;
  padding: 22px 18px;
}

.latex-toc strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.latex-toc a {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.latex-toc a:hover {
  color: var(--ink);
}

.latex-toc .toc-level-3 {
  padding-left: 12px;
}

.latex-toc .toc-level-4 {
  padding-left: 22px;
  font-size: 0.84rem;
}

.latex-article {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 42px 44px 54px;
  color: #161616;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.72;
}

.latex-article p {
  margin: 0 0 1.1rem;
}

.latex-article a {
  color: #174d91;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.latex-abstract {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.latex-heading {
  scroll-margin-top: 18px;
  margin: 2.2rem 0 0.85rem;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

.latex-heading-2 {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  font-size: 1.42rem;
}

.latex-heading-3 {
  font-size: 1.08rem;
}

.latex-heading-4 {
  color: var(--muted);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.latex-equation {
  margin: 1.4rem 0;
  overflow-x: auto;
  border-left: 3px solid var(--accent);
  background: #f8fafb;
  padding: 16px 18px;
}

.latex-math {
  white-space: nowrap;
}

.latex-list {
  margin: 0 0 1.2rem 1.4rem;
  padding: 0;
}

.latex-list li {
  margin-bottom: 0.45rem;
}

.latex-figure {
  margin: 2rem 0;
  border: 1px solid var(--line);
  background: #fbfbfa;
  padding: 14px;
}

.latex-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 620px;
  margin: 0 auto;
  object-fit: contain;
}

.latex-figure figcaption {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
}

.latex-missing-figure {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.latex-references {
  margin-top: 2.6rem;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.latex-references h2 {
  margin-bottom: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.latex-references li {
  margin-bottom: 0.65rem;
  padding-left: 0.3rem;
}

.asset-list {
  display: grid;
  gap: 10px;
}

.asset-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  background: #fbfbfa;
  padding: 12px 14px;
}

.asset-item span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.asset-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.asset-item small,
.muted-copy {
  color: var(--muted);
}

.pdf-canvas-reader {
  display: block;
  width: 100%;
  height: min(82vh, 880px);
  min-height: 620px;
  overflow: hidden;
  background: #f3f5f7;
}

.pdf-viewer-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
  padding: 10px;
}

.pdf-viewer-controls button {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.65rem;
}

.pdf-viewer-controls button:disabled {
  color: #a0a6ae;
  cursor: not-allowed;
  transform: none;
}

.pdf-viewer-controls span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.pdf-canvas-shell {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  height: calc(100% - 57px);
  overflow: auto;
  padding: 20px;
  background: #dfe4ea;
}

.pdf-canvas-shell canvas {
  max-width: none;
  background: #fff;
  box-shadow: 0 18px 42px rgba(22, 24, 29, 0.2);
}

.pdf-canvas-shell canvas[hidden] {
  display: none;
}

.pdf-canvas-shell canvas.pdf-rendered {
  transform: translateZ(0);
}

.pdf-status {
  display: grid;
  gap: 8px;
  place-items: center;
  min-width: min(420px, 100%);
  margin: 80px auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px 20px;
  color: var(--muted);
  text-align: center;
  box-shadow: 0 16px 34px rgba(20, 20, 20, 0.12);
}

.pdf-status[data-state="error"] {
  border-left: 4px solid var(--red);
  color: var(--ink);
}

.pdf-status a {
  font-weight: 800;
}

.pdf-status[hidden] {
  display: none;
}

.pdf-fallback {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 620px;
  padding: 28px;
  text-align: center;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.claim-map,
.evidence-list,
.task-list {
  display: grid;
  gap: 12px;
}

.claim-mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.claim-mini p {
  margin: 5px 0 0;
  color: var(--muted);
}

.mini-score {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.mini-score strong {
  font-size: 1.4rem;
}

.mini-score span {
  color: var(--muted);
  font-size: 0.78rem;
}

.safety-warning {
  border: 1px solid rgba(182, 59, 74, 0.35);
  background: #fff7f7;
  padding: 20px;
}

.safety-warning h2 {
  color: var(--red);
}

.evidence-item,
.task-item,
.challenge-item {
  padding: 14px;
}

.evidence-item span,
.task-item span,
.challenge-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.challenge-item {
  border-color: rgba(182, 59, 74, 0.3);
  background: #fffafa;
}

.scorecard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.score-bars {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.score-bars div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.score-bars span {
  color: var(--muted);
  font-size: 0.88rem;
}

.score-bars meter {
  width: 100%;
  height: 12px;
}

.review-workbench {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.task-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.compact-grid {
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.task-grid {
  grid-template-columns: minmax(0, 1fr) 120px 100px;
}

.statement-grid div,
.doi-panel,
.review-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.statement-grid div {
  padding: 14px;
}

.statement-grid dt,
.doi-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.statement-grid dd,
.doi-panel dd {
  margin: 5px 0 0;
  line-height: 1.55;
}

.review-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 16px;
}

.review-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 750;
}

.review-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr repeat(3, 96px);
  gap: 10px;
  align-items: end;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.review-score {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--focus);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 850;
}

.review-item h3 {
  margin: 8px 0;
  font-size: 1.12rem;
}

.doi-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.share-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.94)),
    url("img/openproof-claims.jpg") center / cover no-repeat;
  padding: 16px;
}

.share-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  text-transform: none;
}

.share-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.social-share-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.share-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px;
  text-decoration: none;
}

.share-link span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fffdf8;
  font-size: 0.76rem;
  font-weight: 850;
}

.share-link strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
}

.share-link:hover {
  border-color: var(--red);
}

.share-note {
  font-size: 0.82rem;
}

.author-note {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  padding: 14px;
}

.author-note span {
  color: var(--muted);
  line-height: 1.45;
}

.doi-panel.ready {
  border-color: rgba(31, 122, 85, 0.42);
  background: #f0faf5;
}

.doi-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.doi-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.compact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

@media (max-width: 860px) {
  .hero-band,
  .toolbar-band,
  .detail-layout,
  .auth-layout,
  .journal-layout,
  .principles-band,
  .review-workbench,
  .compact-grid,
  .submission-layout,
  .task-grid {
    grid-template-columns: 1fr;
  }

  .signal-sidebar,
  .submission-guide {
    position: static;
  }

  .publisher-strip,
  .site-header,
  .profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .publisher-strip {
    display: grid;
  }

  .masthead-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masthead-stats div,
  .masthead-stats a {
    border-bottom: 1px solid rgba(255, 253, 248, 0.22);
  }

  .nav {
    justify-content: flex-start;
  }

  .paper-card,
  .comment {
    grid-template-columns: 1fr;
  }

  .paper-visual {
    min-height: 170px;
  }

  .paper-rank {
    min-height: 72px;
  }

  .leader-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .claim-mini {
    grid-template-columns: 1fr;
  }

  .score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles-band article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
  }

  .principles-band article:last-child {
    border-bottom: 0;
  }

  .how-it-works-band,
  .workflow-steps,
  .reputation-examples,
  .weighting-note {
    grid-template-columns: 1fr;
  }

  .how-it-works-intro {
    position: static;
  }

  .review-grid,
  .statement-grid,
  .latex-reader-grid,
  .static-layout,
  .contact-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .latex-toc {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-links {
    justify-content: flex-start;
  }

  .pdf-canvas-reader,
  .pdf-fallback {
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  main,
  .messages {
    width: min(100% - 20px, 1180px);
  }

  .hero-band,
  .paper-detail,
  .signal-sidebar,
  .page-head,
  .profile-head,
  .auth-layout,
  .cosign-band,
  .discussion-layout,
  .form-shell,
  .article-head,
  .article-section,
  .static-hero,
  .static-page,
  .static-aside {
    padding: 18px;
  }

  .article-head,
  .static-hero {
    background: var(--surface);
  }

  .article-head::after {
    display: none;
  }

  .hero-band {
    min-height: 560px;
    margin-top: 0;
  }

  .masthead-stats {
    grid-template-columns: 1fr;
  }

  .image-credit {
    position: static;
    margin-top: -8px;
  }

  .reader-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .latex-article {
    padding: 26px 20px 34px;
    font-size: 0.98rem;
  }

  .pdf-canvas-reader,
  .pdf-fallback {
    min-height: 440px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .segmented a {
    text-align: center;
  }
}
