html,
body {
    margin: 0;
    font-family: "TeX Gyre Heros", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, "Noto Sans CJK SC";
    color: #000;
    background: #fff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.app-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    width: 100%;
    background: #fff;
    border-bottom: 3px solid #000;
}

.topbar-logo-row,
.topbar-nav-row {
    padding-right: 24px;
    padding-left: 24px;
}

.topbar-logo-row {
    padding-top: 20px;
    padding-bottom: 20px;
}

.topbar-divider {
    border-bottom: 1px solid #9ca3af;
}

.topbar-nav-row {
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo,
.footer-logo {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.nav a {
    font-size: 1.1rem;
    font-weight: 700;
}

.header-spacer {
    height: 150px;
}

.page-shell {
    padding-right: 24px;
    padding-left: 24px;
}

.home-title-space {
    margin-bottom: 48px;
}

.feature {
    display: flex;
    flex-direction: column;
    margin-bottom: 80px;
}

.feature-frame {
    background: #62748e;
}

.feature-grid {
    display: grid;
    background-color: #222530;
}

.feature-copy {
    min-width: 0;
    min-height: 520px;
    padding: 24px;
    color: #fff;
    background-color: #222530;
}

.feature-copy h1 {
    margin: 0;
    padding-bottom: 48px;
    font-size: 2.25rem;
    line-height: 1.111;
    font-weight: 700;
    letter-spacing: 0;
}

.feature-copy p {
    margin: 0;
    padding-bottom: 16px;
}

.read-more {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

.feature-image {
    min-height: 480px;
    background: #222530 url("./assets/hero-untruth.jpg") scroll no-repeat center center;
    background-size: cover;
}

.token-campaign {
    margin-bottom: 88px;
    padding-top: 8px;
    scroll-margin-top: 170px;
}

#paperForm,
#issues,
#articles {
    scroll-margin-top: 170px;
}

.campaign-hero {
    display: grid;
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
    padding: 36px 0 6px;
}

.campaign-heading {
    max-width: 820px;
}

.section-eyebrow,
.panel-label {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.campaign-heading h2 {
    margin: 8px 0 12px;
    color: #000;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0;
}

.campaign-heading p {
    margin: 0;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.6;
}

.campaign-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 8px 12px;
    background: #eef7f0;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 700;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #16a34a;
}

.pool-grid {
    display: grid;
    gap: 0;
    margin-bottom: 28px;
    padding: 28px;
    background: #f7f8f6;
}

.pool-card {
    min-height: 142px;
    padding: 0 0 28px;
    background: transparent;
}

.pool-card-primary {
    color: #000;
}

.pool-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pool-card-primary .pool-label {
    color: #4b5563;
}

.pool-value {
    margin-top: 14px;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.wallet-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1rem;
    line-height: 1.35;
}

.token-address {
    font-size: 0.95rem;
}

.copy-address-button {
    margin-top: 14px;
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    background: #000;
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
}

.copy-address-button:hover {
    background: #1d4ed8;
}

.pool-card p {
    margin: 16px 0 0;
    color: #4b5563;
    line-height: 1.45;
}

.pool-card-primary p {
    color: #4b5563;
}

.activity-layout {
    display: grid;
    gap: 56px;
    padding: 48px 0 36px;
}

.campaign-panel {
    padding: 0;
    background: transparent;
}

.rules-panel {
    background: transparent;
}

.rules-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.signup-label {
    color: #111827;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.signup-panel {
    font-size: 1.05rem;
}

.signup-panel h3 {
    font-size: 2rem;
    line-height: 1.12;
}

.campaign-panel h3 {
    margin: 8px 0 0;
    color: #000;
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.rule-list {
    display: grid;
    gap: 22px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.rule-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
}

.step-number {
    color: #2b7fff;
    font-weight: 700;
}

.rule-list strong {
    color: #000;
}

.rule-list p {
    margin: 4px 0 0;
    color: #4b5563;
    line-height: 1.5;
}

.payout-note {
    margin-top: 26px;
    padding: 18px 20px;
    background: #f7f8f6;
    color: #374151;
    line-height: 1.5;
}

.payout-note strong {
    color: #000;
}

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

.campaign-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 700;
    border: 0;
}

.campaign-button.primary {
    background: #000;
    color: #fff;
}

.campaign-button.secondary {
    color: #000;
    background: #e5e7eb;
}

.field-grid {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.field-grid label {
    display: grid;
    gap: 7px;
    color: #111827;
    font-size: 1.05rem;
    font-weight: 700;
}

.field-grid input,
.field-grid textarea {
    width: 100%;
    border: 0;
    border-radius: 0;
    min-height: 58px;
    padding: 14px 14px;
    font: inherit;
    color: #111827;
    background: #f7f8f6;
    box-shadow: inset 0 -1px 0 #cfd5dc;
}

.field-grid textarea {
    min-height: 152px;
    resize: vertical;
}

.file-control {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f7f8f6;
    box-shadow: inset 0 -1px 0 #cfd5dc;
    cursor: pointer;
}

.file-control:focus-within {
    outline: 2px solid #2b7fff;
    outline-offset: 2px;
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-button {
    flex: 0 0 auto;
    border-radius: 4px;
    padding: 6px 10px;
    background: #fff;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px #cfd5dc;
}

.file-name {
    min-width: 0;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-callout {
    margin-top: 18px;
    padding: 18px 20px;
    background: #f7f8f6;
    color: #374151;
}

.ai-callout-title {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 800;
}

.ai-callout p {
    margin: 8px 0 0;
    line-height: 1.55;
}

.field-grid input:focus,
.field-grid textarea:focus {
    outline: 2px solid #2b7fff;
    outline-offset: 2px;
}

.signup-panel .campaign-button {
    margin-top: 18px;
    min-height: 52px;
    padding: 12px 20px;
    font-size: 1rem;
}

.form-note {
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
}

.submissions-board {
    margin-top: 24px;
    padding-top: 36px;
    background: transparent;
}

.vote-access {
    display: grid;
    gap: 20px;
    margin-bottom: 28px;
    padding: 24px 0 28px;
    border-bottom: 1px solid #e5e7eb;
}

.vote-access-copy h3 {
    margin: 8px 0 0;
    color: #000;
    font-size: 1.55rem;
    line-height: 1.18;
}

.vote-access-copy p {
    margin: 12px 0 0;
    color: #4b5563;
    line-height: 1.6;
}

.vote-access-controls {
    display: grid;
    gap: 14px;
    position: relative;
}

.wallet-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 10;
    width: min(520px, calc(100vw - 48px));
    padding: 12px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.wallet-picker[hidden] {
    display: none;
}

.wallet-option {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 9px 12px;
    background: #f1f5f9;
    color: #1f2937;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.wallet-option:hover {
    background: #e2e8f0;
}

.wallet-option.is-active {
    background: #000;
    color: #fff;
}

.wallet-action-row,
.wallet-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.wallet-status,
.wallet-eligibility,
.wallet-vote-power {
    padding: 10px 12px;
    background: #f7f8f6;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 700;
}

.wallet-eligibility.is-eligible {
    background: #eef7f0;
    color: #166534;
}

.wallet-eligibility.is-blocked {
    background: #fff1f2;
    color: #be123c;
}

.wallet-balance-field {
    display: grid;
    gap: 8px;
    max-width: 280px;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 700;
}

.wallet-balance-field input {
    width: 100%;
    min-height: 52px;
    border: 0;
    padding: 12px 14px;
    background: #f7f8f6;
    box-shadow: inset 0 -1px 0 #cfd5dc;
    font: inherit;
}

.wallet-note {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

.board-header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: start;
    justify-content: space-between;
    padding: 0 0 22px;
}

.board-header h3 {
    margin: 8px 0 0;
    color: #000;
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.board-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.sort-control {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #f3f4f6;
}

.sort-button {
    border: 0;
    border-radius: 4px;
    padding: 8px 10px;
    color: #4b5563;
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.sort-button.is-active {
    color: #fff;
    background: #000;
}

.board-count {
    padding: 7px 0;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

.submissions-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.submissions-table th,
.submissions-table td {
    padding: 16px;
    text-align: left;
    vertical-align: top;
}

.submissions-table th {
    color: #4b5563;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.submissions-table tbody tr {
    background: #f8faf9;
}

.submissions-table tbody tr.is-selected {
    background: #eef5ff;
}

.paper-title {
    color: #000;
    font-weight: 700;
}

.paper-abstract,
.paper-file {
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.score-pill {
    display: inline-flex;
    min-width: 58px;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.read-button-inline,
.vote-button {
    border: 0;
    border-radius: 6px;
    padding: 8px 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.read-button-inline {
    color: #111827;
    background: #e9edf0;
}

.read-button-inline:hover {
    background: #d9e2e8;
}

.vote-button {
    color: #fff;
    background: #000;
}

.vote-button:disabled {
    cursor: not-allowed;
    background: #9ca3af;
}

.vote-button:hover {
    background: #1d4ed8;
}

.empty-row td {
    padding: 32px 24px;
    color: #6b7280;
}

.paper-reader {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid #e5e7eb;
}

.reader-header {
    display: grid;
    gap: 12px;
    align-items: start;
    margin-bottom: 24px;
}

.reader-header h3 {
    margin: 8px 0 0;
    color: #000;
    font-size: 1.65rem;
    line-height: 1.15;
}

.reader-hint {
    max-width: 520px;
    color: #4b5563;
    line-height: 1.55;
}

.reader-layout {
    display: grid;
    gap: 28px;
}

.reader-main {
    min-height: 520px;
    padding: 28px;
    background: #fbfbf8;
}

.reader-meta {
    color: #111827;
    font-size: 0.95rem;
    font-weight: 700;
}

.reader-loading {
    margin-top: 16px;
    color: #1d4ed8;
    font-weight: 700;
}

.reader-text {
    margin-top: 20px;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.reader-side {
    display: grid;
    gap: 18px;
}

.reader-section {
    padding: 22px;
    background: #f7f8f6;
}

.reader-tips {
    margin: 14px 0 0;
    padding-left: 18px;
    color: #374151;
    line-height: 1.55;
}

.reader-data,
.reader-conclusion {
    margin-top: 14px;
    color: #1f2937;
    line-height: 1.65;
}

.reader-data-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reader-data-list li {
    padding-left: 16px;
    color: #1f2937;
    position: relative;
}

.reader-data-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #2b7fff;
}

.content-row {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.cards-grid {
    display: grid;
    gap: 88px;
}

.card {
    display: flex;
    flex-direction: column;
    padding-bottom: 8px;
    border-bottom: 1px solid #6b7280;
    transition: all 180ms ease;
}

.card-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card-grow {
    flex: 1;
}

.issue-cover {
    width: 100%;
    aspect-ratio: 827 / 1170;
    object-fit: cover;
    border: 1px solid #9ca3af;
    border-radius: 2px;
}

.cover-gap {
    height: 20px;
}

.read-button {
    display: block;
    border-radius: 6px;
    padding: 4px 8px;
    background: #2b7fff;
    color: #fff;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.555;
}

.meta {
    display: flex;
    flex-shrink: 1;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    color: #4b5563;
}

.meta-gap {
    padding-top: 16px;
    padding-bottom: 8px;
}

.meta-label {
    color: #000;
    font-weight: 700;
}

.article-card h2 {
    flex-shrink: 0;
    margin: 0;
    padding-bottom: 8px;
    font-size: 1.125rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-decoration: underline;
    letter-spacing: 0;
}

.authors {
    padding-top: 16px;
    padding-bottom: 8px;
}

.pre-footer-spacer {
    height: 360px;
}

.app-footer {
    margin-top: 64px;
    padding: 128px 24px;
    background: #f3f4f6;
    color: #374151;
}

.app-footer a:hover {
    color: #000;
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    gap: 80px 40px;
    font-size: 1.125rem;
    line-height: 1.5;
}

.footer-brand {
    color: #000;
    font-size: 1.25rem;
}

.tagline {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.875rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.footer-list-gap {
    height: 8px;
}

.footer-kicker {
    padding-top: 32px;
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-address {
    display: grid;
    gap: 18px;
    min-height: 112px;
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid #d1d5db;
    font-style: normal;
}

.address-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.address-title {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 700;
}

.address-placeholder {
    margin-top: 8px;
    padding-left: 16px;
    border-left: 3px solid #9ca3af;
    color: #6b7280;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .page-shell {
        padding-right: 48px;
        padding-left: 48px;
    }

    .campaign-hero {
        grid-template-columns: minmax(0, 1fr) auto;
    }

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

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

    .field-full {
        grid-column: 1 / -1;
    }

    .reader-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .vote-access {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .wallet-picker {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .article-card h2 {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .app-footer {
        padding-right: 48px;
        padding-left: 48px;
    }

    .footer-address {
        grid-template-columns: 1fr 2fr;
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-copy {
        min-height: 480px;
        padding: 48px;
    }

    .content-row {
        flex-direction: row;
        gap: 80px;
    }

    .pool-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
    }

    .activity-layout {
        grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
    }

    .reader-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    }

    .cards-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 40px;
    }

    .meta {
        flex-direction: row;
        place-content: space-between;
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .pool-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .cards-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .feature-grid {
        background: #222530 url("./assets/hero-untruth.jpg") scroll no-repeat center right;
        background-size: contain;
    }

    .feature-copy {
        background-color: rgba(34, 37, 48, 0.67);
    }

    .feature-image {
        display: none;
    }
}

@media (max-width: 520px) {
    .topbar-logo-row,
    .topbar-nav-row,
    .page-shell,
    .app-footer {
        padding-right: 18px;
        padding-left: 18px;
    }

    .nav a {
        font-size: 1rem;
    }

    .feature-copy {
        min-height: 500px;
    }

    .feature-copy h1 {
        font-size: 2rem;
    }

    .campaign-heading h2 {
        font-size: 1.75rem;
    }

    .campaign-panel {
        padding: 20px;
    }

    .rule-list li {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .pool-value {
        font-size: 1.75rem;
    }

    .wallet-value {
        font-size: 0.95rem;
    }

    .pre-footer-spacer {
        height: 260px;
    }
}
