:root {
    --ink: #102a36;
    --ink-soft: #405761;
    --paper: #f3f7f8;
    --surface: #ffffff;
    --line: #c8d7db;
    --blue: #075bd8;
    --blue-dark: #0647a5;
    --signal: #ff7a3d;
    --success: #16734b;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(16, 42, 54, 0.09);
    --radius: 14px;
}

/* Phase 5A: subscriber access uses a restrained dossier treatment. */
.subscriber-label {
    padding: 2px 7px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post-permalink {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.locked-post {
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    padding: 20px;
    border: 1px solid #9fb3ba;
    border-left: 5px solid var(--ink);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(7, 91, 216, 0.04), transparent 42%),
        repeating-linear-gradient(135deg, transparent 0 12px, rgba(16, 42, 54, 0.025) 12px 13px),
        #f8fbfc;
}

.locked-kicker {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.locked-teaser {
    max-width: 62ch;
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
    line-height: 1.55;
}

.locked-plan {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.locked-plan span,
.locked-note {
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.locked-note {
    margin: 10px 0 0;
}

.composer-access-fields {
    display: grid;
    grid-template-columns: minmax(130px, 0.35fr) 1fr;
    gap: 12px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.composer-access-fields label,
.composer-access-fields small {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-size: 0.75rem;
    font-weight: 700;
}

.composer-access-fields select,
.composer-access-fields textarea {
    width: 100%;
}

.profile-plan {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--ink);
    border-radius: 8px;
    background: var(--surface);
}

.profile-plan h2,
.profile-plan p {
    margin: 6px 0;
}

.profile-plan strong,
.profile-plan small {
    display: block;
    margin-top: 8px;
}

.profile-plan small {
    color: var(--ink-soft);
}

.membership-page {
    padding: 72px 0 96px;
}

.membership-shell {
    max-width: 920px;
}

.membership-hero {
    padding-bottom: 34px;
    border-bottom: 2px solid var(--ink);
}

.membership-hero h1 {
    max-width: 780px;
    margin: 8px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.membership-hero p {
    max-width: 720px;
    color: var(--ink-soft);
}

.access-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.access-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.access-card h2,
.access-card p {
    margin: 2px 0;
}

.access-card small {
    color: var(--ink-soft);
}

.creator-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 28px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--ink);
    color: white;
}

.creator-metrics div {
    display: grid;
    gap: 2px;
    padding: 24px;
}

.creator-metrics div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.creator-metrics strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
}

.creator-metrics span {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.creator-plan-editor,
.membership-empty {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
}

.creator-plan-editor > h2,
.membership-empty h2 {
    margin-top: 4px;
    font-family: Georgia, "Times New Roman", serif;
}

@media (max-width: 680px) {
    .locked-plan,
    .composer-access-fields {
        display: grid;
        grid-template-columns: 1fr;
    }

    .membership-page {
        padding: 42px 0 72px;
    }

    .membership-hero h1 {
        font-size: clamp(2.35rem, 14vw, 4rem);
    }

    .creator-metrics {
        grid-template-columns: 1fr;
    }

    .creator-metrics div + div {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 0;
    }
}

* {
    box-sizing: border-box;
}

html {
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--blue);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--blue-dark);
}

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(255, 122, 61, 0.65);
    outline-offset: 3px;
}

.shell {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    background: var(--ink);
    color: white;
    transform: translateY(-150%);
}

.skip-link:focus {
    color: white;
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(243, 247, 248, 0.94);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    width: 22px;
    height: 22px;
    border: 6px solid var(--blue);
    border-top-color: var(--signal);
    border-radius: 50%;
    transform: rotate(35deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Phase 4 credibility and rewards */
.cosmetic-signal-blue {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #397bd6;
}

.cosmetic-copper-line {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #a76032;
}

.cosmetic-midnight-frame {
    box-shadow: 0 0 0 2px #173743, 0 0 0 5px var(--surface), 0 0 0 7px #173743;
}

.equipped-label,
.catalogue-note,
.status-chip {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border: 1px solid #a9c7f3;
    border-radius: 999px;
    background: #eef5ff;
    color: #174f9d;
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.equipped-label {
    margin: -5px 0 14px;
}

.profile-owner-links {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.text-link {
    font-size: 0.86rem;
    font-weight: 720;
}

.section-heading-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.section-heading-row h2 {
    margin-bottom: 0;
}

.status-provisional {
    border-color: #d8c188;
    background: #fff9e9;
    color: #725513;
}

.record-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.record-grid > div {
    min-width: 0;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.record-grid > div:nth-child(3n) {
    border-right: 0;
}

.record-grid > div:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.record-grid strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1;
}

.record-grid span {
    display: block;
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 680;
    text-transform: uppercase;
}

.credibility-note {
    margin: 18px 0 0;
    padding-left: 14px;
    border-left: 3px solid #d8c188;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.performance-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    margin-top: 24px;
}

.performance-columns h3 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
}

.performance-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}

.performance-row strong {
    white-space: nowrap;
}

.performance-row small {
    color: var(--ink-soft);
    font-weight: 550;
}

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

.achievement-item {
    padding: 17px;
    border-left: 3px solid var(--blue);
    background: #edf4f7;
}

.achievement-item p {
    margin: 5px 0;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.achievement-item small {
    color: var(--ink-soft);
}

.prediction-history {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.history-row > span:first-child {
    min-width: 0;
}

.history-row strong,
.history-row small {
    display: block;
}

.history-row small {
    margin-top: 4px;
    color: var(--ink-soft);
}

.history-result {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 780;
}

.history-result.is-correct,
.positive {
    color: var(--success);
}

.history-result.is-incorrect,
.negative {
    color: var(--danger);
}

.rewards-page,
.leaderboard-page {
    padding: clamp(48px, 7vw, 88px) 0 100px;
}

.rewards-hero,
.leaderboard-hero {
    padding-bottom: 34px;
    border-bottom: 3px solid var(--ink);
}

.rewards-hero h1,
.leaderboard-hero h1 {
    max-width: 850px;
    margin: 8px 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.rewards-hero > p:last-child,
.leaderboard-hero > p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.rewards-workspace {
    padding-top: 28px;
}

.workspace-messages {
    margin-bottom: 18px;
}

.points-balance-card {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 30px;
    border-radius: var(--radius);
    background: var(--ink);
    color: white;
}

.points-balance-card h2 {
    margin: 2px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.points-balance-card p {
    max-width: 390px;
    margin: 0;
    color: #cfe0e5;
}

.reward-section,
.category-board {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.reward-section h2,
.category-board h2 {
    margin: 3px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.cosmetic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.cosmetic-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}

.cosmetic-card.is-equipped {
    border-color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--blue);
}

.cosmetic-preview {
    min-height: 92px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--surface);
}

.cosmetic-copy h3 {
    margin: 5px 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.cosmetic-copy p:last-child {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.cosmetic-action form,
.no-cosmetic-form {
    margin: 0;
}

.cosmetic-action .button {
    width: 100%;
}

.no-cosmetic-form,
.no-cosmetic-selected {
    margin-top: 20px;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-weight: 720;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.no-cosmetic-selected {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

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

.compact-achievements {
    grid-template-columns: 1fr;
}

.ledger-list {
    margin-top: 20px;
}

.ledger-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.86rem;
}

.leaderboard-shell {
    width: min(1180px, calc(100% - 40px));
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.leaderboard-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.leaderboard-card > header {
    min-height: 88px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.leaderboard-card h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.leaderboard-card > header span {
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 720;
    text-align: right;
    text-transform: uppercase;
}

.leaderboard-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.leaderboard-list li {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
}

.leaderboard-list li:last-child {
    border-bottom: 0;
}

.rank {
    color: var(--ink-soft);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.72rem;
}

.leader-identity {
    min-width: 0;
}

.leader-identity a,
.leader-identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-identity a {
    color: var(--ink);
    font-size: 0.84rem;
    text-decoration: none;
}

.leader-identity small {
    color: var(--ink-soft);
    font-size: 0.69rem;
}

.leader-metric {
    font-size: 0.78rem;
    white-space: nowrap;
}

.leaderboard-empty {
    display: block !important;
    padding: 22px !important;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.category-board-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.category-board-heading form {
    display: flex;
    align-items: end;
    gap: 9px;
}

.category-board-heading label {
    font-size: 0.78rem;
    font-weight: 720;
}

.category-board-heading select {
    min-height: 40px;
    padding: 7px 32px 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
}

.category-board .leaderboard-card {
    max-width: 620px;
}

@media (max-width: 980px) {
    .leaderboard-grid,
    .cosmetic-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-card > header {
        min-height: 0;
    }
}

@media (max-width: 700px) {
    .record-grid,
    .achievement-list,
    .performance-columns,
    .reward-evidence-grid {
        grid-template-columns: 1fr;
    }

    .record-grid > div {
        border-right: 0;
        border-bottom: 1px solid var(--line) !important;
    }

    .record-grid > div:last-child {
        border-bottom: 0 !important;
    }

    .points-balance-card,
    .category-board-heading {
        align-items: start;
        flex-direction: column;
    }

    .category-board-heading form {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .reward-section,
    .category-board {
        padding: 20px;
    }

    .leaderboard-shell {
        width: min(100% - 28px, 1180px);
    }
}

@media (max-width: 440px) {
    .leaderboard-list li {
        grid-template-columns: 24px 30px minmax(0, 1fr);
    }

    .leader-metric {
        grid-column: 3;
    }

    .history-row {
        align-items: start;
        flex-direction: column;
    }

}

.notification-badge {
    min-width: 1.45em;
    display: inline-grid;
    place-items: center;
    padding: 0.08em 0.35em;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 0.72em;
    font-variant-numeric: tabular-nums;
}

.notification-page,
.safety-page,
.search-page {
    padding-block: 54px 80px;
}

.notification-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.notification-list {
    max-width: 780px;
    display: grid;
    margin-top: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item.is-unread {
    box-shadow: inset 4px 0 0 var(--blue);
    background: #f4fafc;
}

.notification-copy p {
    margin: 0 0 6px;
}

.notification-copy time,
.notification-read {
    display: block;
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.safety-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
}

.profile-safety-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 14px;
}

.search-form {
    max-width: 680px;
    margin-top: 28px;
}

.search-form > div {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.search-form input {
    flex: 1;
}

.search-results {
    max-width: 680px;
    display: grid;
    margin-top: 24px;
    border: 1px solid var(--line);
}

.search-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result small {
    display: block;
    color: var(--ink-soft);
}

.post-report-link,
.comment-report,
.prediction-report-link {
    color: var(--ink-soft);
    font-size: 0.76rem;
}

@media (max-width: 700px) {
    .notification-page,
    .safety-page,
    .search-page {
        padding-block: 30px 70px;
    }

    .notification-heading,
    .notification-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .safety-grid {
        grid-template-columns: 1fr;
    }
}

.content-actions,
.post-hashtags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.content-actions {
    margin-top: 12px;
}

.save-control {
    display: inline-flex;
    margin: 0;
}

.post-hashtags {
    margin: -4px 0 10px;
}

.post-hashtags a {
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 720;
    text-decoration: none;
}

.copy-link {
    color: var(--ink-soft);
}

.explore-page,
.saved-page,
.tag-page {
    padding-block: 54px 90px;
}

.explore-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
    align-items: end;
    gap: 36px;
    padding: 8px 0 30px 24px;
    border-bottom: 1px solid var(--line);
    border-left: 5px solid var(--blue);
}

.explore-heading h1,
.tag-heading h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 7vw, 5.6rem);
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.explore-heading > p {
    max-width: 42ch;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.explore-lead,
.explore-section,
.tag-predictions {
    padding-top: 42px;
}

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

.explore-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.explore-panel {
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.explore-panel h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
}

.topic-rank-list,
.tag-prediction-links {
    display: grid;
}

.topic-rank-list a,
.tag-prediction-links a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
}

.topic-rank-list span,
.tag-prediction-links span {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

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

.creator-discovery-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.creator-discovery-card .follow-controls {
    grid-column: 1 / -1;
}

.creator-discovery-card span,
.creator-discovery-card small {
    display: block;
    color: var(--ink-soft);
}

.record-discovery-grid a {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #f8fbfc, #eef5f7);
    text-decoration: none;
}

.record-discovery-grid span {
    margin-top: 18px;
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 780;
}

.record-discovery-grid small {
    color: var(--ink-soft);
}

.explore-posts,
.saved-posts,
.tag-posts {
    max-width: 780px;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-bottom: 0;
}

.saved-page .page-heading,
.tag-page .page-heading {
    max-width: 800px;
}

.saved-tabs {
    justify-content: flex-start;
    margin: 30px 0 22px;
    border-bottom: 1px solid var(--line);
}

.saved-tabs a {
    padding: 14px 18px;
}

.tag-prediction-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    max-width: 900px;
}

@media (max-width: 860px) {
    .compact-prediction-grid,
    .creator-discovery-grid,
    .record-discovery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explore-heading {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .mobile-social-nav a {
        min-width: 0;
        flex: 1;
        padding-inline: 4px;
        font-size: 0.68rem;
    }

    .explore-page,
    .saved-page,
    .tag-page {
        width: min(100% - 28px, 1120px);
        padding-block: 32px 70px;
    }

    .compact-prediction-grid,
    .explore-topic-grid,
    .creator-discovery-grid,
    .record-discovery-grid,
    .tag-prediction-links {
        grid-template-columns: 1fr;
    }

    .explore-heading {
        gap: 22px;
        padding-left: 16px;
    }

    .topic-rank-list a,
    .tag-prediction-links a {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

.site-nav a,
.nav-action {
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav form {
    margin: 0;
}

.nav-action,
.nav-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 700;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid var(--blue);
    border-radius: 9px;
    background: var(--blue);
    color: white;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
    color: white;
}

.button-small {
    min-height: 38px;
    padding: 8px 14px;
    color: white !important;
}

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

.button-secondary:hover {
    background: var(--ink);
}

.button-wide {
    width: 100%;
}

.text-link {
    font-weight: 700;
}

.messages {
    padding-top: 18px;
}

.message {
    padding: 13px 16px;
    border-left: 4px solid var(--blue);
    border-radius: 4px;
    background: var(--surface);
    box-shadow: 0 4px 18px rgba(16, 42, 54, 0.05);
}

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

.eyebrow,
.section-label {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero {
    padding: clamp(70px, 10vw, 130px) 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
}

.hero h1,
.form-heading h1,
.profile-identity h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.98;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(3.2rem, 7vw, 6.7rem);
}

.hero-intro {
    max-width: 660px;
    margin: 28px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.record-card {
    position: relative;
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: rotate(1.5deg);
}

.record-card::before {
    content: "";
    position: absolute;
    inset: -11px 14px 11px -14px;
    z-index: -1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.record-head,
.record-foot {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--success);
}

.record-statement {
    margin: 58px 0 42px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 4vw, 2.55rem);
    line-height: 1.12;
}

.confidence-line {
    position: relative;
    height: 54px;
    border-top: 2px solid var(--ink);
}

.confidence-line::after {
    content: "";
    position: absolute;
    top: -7px;
    right: 0;
    width: 11px;
    height: 11px;
    border-top: 2px solid var(--ink);
    border-right: 2px solid var(--ink);
    transform: rotate(45deg);
}

.line-marker {
    position: absolute;
    top: -8px;
    left: 64%;
    width: 15px;
    height: 15px;
    border: 4px solid var(--surface);
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 1px var(--signal);
}

.line-label {
    position: absolute;
    top: 12px;
    color: var(--ink-soft);
    font-size: 0.72rem;
}

.line-label-start {
    left: 0;
}

.line-label-end {
    right: 0;
}

.principles {
    padding: 80px 0 100px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.principles h2 {
    max-width: 720px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 58px;
}

.principle-grid article {
    padding-top: 22px;
    border-top: 3px solid var(--ink);
}

.principle-grid h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.principle-grid p {
    margin: 0;
    color: var(--ink-soft);
}

.form-page {
    padding: clamp(54px, 8vw, 96px) 0;
}

.form-shell {
    width: min(650px, calc(100% - 40px));
    margin-inline: auto;
}

.form-shell-compact {
    width: min(520px, calc(100% - 40px));
}

.form-heading {
    margin-bottom: 32px;
}

.form-heading h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
}

.form-heading > p:last-child {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.form-card {
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 24px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 750;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #9db1b7;
    border-radius: 8px;
    background: white;
    color: var(--ink);
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(7, 91, 216, 0.14);
}

.field-invalid input,
.field-invalid textarea {
    border-color: var(--danger);
}

.help-text {
    margin-top: 7px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.help-text ul {
    margin: 7px 0 0;
    padding-left: 20px;
}

.field-error {
    margin: 7px 0 0;
    color: var(--danger);
    font-size: 0.86rem;
    font-weight: 650;
}

.form-errors {
    margin-bottom: 24px;
    padding: 12px 15px;
    border-left: 4px solid var(--danger);
    background: #fff2f0;
    color: #7a271a;
}

.form-errors p {
    margin: 0;
}

.form-alt {
    margin: 20px 0 0;
    color: var(--ink-soft);
    text-align: center;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.profile-page {
    padding: clamp(56px, 8vw, 100px) 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(50px, 8vw, 110px);
}

.profile-identity {
    align-self: start;
}

.avatar {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.6rem;
}

.profile-handle {
    margin: 0 0 6px;
    color: var(--blue);
    font-weight: 750;
}

.profile-identity h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.joined {
    margin: 16px 0 26px;
    color: var(--ink-soft);
}

.profile-main {
    border-top: 3px solid var(--ink);
}

.profile-section {
    padding: 32px 0 44px;
    border-bottom: 1px solid var(--line);
}

.profile-section h2 {
    margin: 0 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.biography,
.empty-copy,
.record-placeholder > p:last-child {
    max-width: 670px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.empty-copy {
    font-style: italic;
}

.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    background: var(--ink);
    color: #e4edef;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    margin: 0;
}

.footer-note {
    color: #b7c7cc;
}

@media (max-width: 800px) {
    .hero-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 70px;
    }

    .record-card {
        max-width: 560px;
    }

    .principle-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .profile-grid {
        gap: 48px;
    }
}

@media (max-width: 680px) {
    .shell {
        width: min(100% - 28px, 1120px);
    }

    .header-inner {
        min-height: 66px;
        flex-wrap: wrap;
        padding-block: 12px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        width: 100%;
        padding: 6px 0 10px;
        flex-wrap: wrap;
    }

    .has-js .site-nav {
        display: none;
    }

    .has-js .site-nav.is-open {
        display: flex;
    }

    .hero h1 {
        font-size: clamp(3rem, 15vw, 4.6rem);
    }

    .record-card {
        transform: none;
    }

    .record-head,
    .record-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .record-statement {
        margin-block: 40px 34px;
    }

    .form-shell,
    .form-shell-compact {
        width: min(100% - 28px, 650px);
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Social application */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.social-body {
    background: #f7f9fa;
}

.social-body main {
    width: 100%;
}

.social-layout {
    width: min(1320px, 100%);
    min-height: 100vh;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 240px minmax(0, 660px) minmax(280px, 340px);
    justify-content: center;
}

.social-rail {
    border-right: 1px solid var(--line);
}

.rail-sticky,
.discovery-sticky {
    position: sticky;
    top: 0;
}

.rail-sticky {
    min-height: 100vh;
    padding: 26px 26px 22px 18px;
    display: flex;
    flex-direction: column;
}

.social-brand {
    margin: 0 10px 32px;
}

.rail-nav {
    display: grid;
    gap: 5px;
}

.rail-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 13px;
    border-radius: 11px;
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 680;
    text-decoration: none;
}

.rail-nav a span {
    width: 22px;
    color: var(--ink);
    font-size: 1.35rem;
    text-align: center;
}

.rail-nav a:hover,
.rail-nav a.is-active {
    background: #e8f0f3;
    color: var(--ink);
}

.rail-nav a.is-active {
    box-shadow: inset 3px 0 0 var(--blue);
}

.rail-account {
    margin-top: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 14px 10px 0;
    border-top: 1px solid var(--line);
}

.rail-account-name {
    min-width: 0;
    display: grid;
}

.rail-account-name strong,
.rail-account-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rail-account-name span {
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.rail-account form {
    grid-column: 2;
}

.quiet-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-soft);
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.social-main {
    min-width: 0;
    border-right: 1px solid var(--line);
    background: var(--surface);
}

.feed-header {
    position: sticky;
    z-index: 8;
    top: 0;
    min-height: 94px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 22px 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.feed-header .eyebrow {
    margin-bottom: 3px;
    font-size: 0.65rem;
}

.feed-header h1 {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.65rem;
    line-height: 1;
}

.feed-tabs {
    align-self: stretch;
    display: flex;
    align-items: end;
}

.feed-tabs a {
    position: relative;
    padding: 34px 13px 17px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.feed-tabs a::after {
    content: "";
    position: absolute;
    right: 13px;
    bottom: -1px;
    left: 13px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
}

.feed-tabs a:hover,
.feed-tabs a.is-active {
    color: var(--ink);
}

.feed-tabs a.is-active::after {
    background: var(--blue);
}

.composer {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 20px 22px 17px;
    border-bottom: 8px solid var(--paper);
}

.composer > .avatar,
.post-card > .avatar {
    width: 44px;
    height: 44px;
    margin: 0;
    font-family: inherit;
    font-size: 1rem;
    text-decoration: none;
}

.composer form {
    min-width: 0;
}

.composer textarea,
.post-edit-form textarea {
    width: 100%;
    min-height: 88px;
    padding: 5px 0 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.5;
    resize: vertical;
}

.composer textarea:focus,
.post-edit-form textarea:focus {
    border-bottom-color: var(--blue);
    box-shadow: 0 2px 0 -1px var(--blue);
}

.composer-footer {
    min-height: 46px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
}

.composer-footer span {
    color: var(--ink-soft);
    font-size: 0.75rem;
}

.feed-stream {
    min-height: 300px;
}

.post-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    transition: background-color 120ms ease;
}

.post-card:hover {
    background: #fbfcfd;
}

.post-body {
    min-width: 0;
}

.post-head {
    min-height: 24px;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.post-byline {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.post-byline a {
    max-width: 180px;
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-byline a:hover {
    text-decoration: underline;
}

.suggested-label {
    padding: 2px 7px;
    border: 1px solid #b9cdd3;
    border-radius: 999px;
    color: #315f6e;
    font-size: 0.65rem;
    font-weight: 760;
    letter-spacing: 0.02em;
}

.post-owner-actions {
    display: flex;
    gap: 9px;
    flex-shrink: 0;
}

.post-owner-actions form {
    margin: 0;
}

.post-owner-actions a,
.post-owner-actions button,
.comment-delete {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.post-owner-actions a:hover,
.post-owner-actions button:hover,
.comment-delete:hover {
    color: var(--danger);
    text-decoration: underline;
}

.post-content {
    margin: 8px 0 13px;
    color: #18333e;
    font-size: 0.98rem;
    line-height: 1.58;
    overflow-wrap: anywhere;
}

.engagement {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 31px;
}

.engagement form {
    margin: 0;
}

.engagement-button {
    padding: 5px 8px 5px 0;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 650;
    cursor: pointer;
}

.engagement-button:hover,
.engagement-button.is-active {
    color: var(--blue);
}

.engagement-button span,
.engagement-count {
    font-variant-numeric: tabular-nums;
}

.engagement-count {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.comments {
    margin-top: 8px;
}

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

.comment {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
}

.avatar.avatar-small {
    width: 38px;
    height: 38px;
    margin: 0;
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 0.9rem;
}

.avatar.avatar-tiny {
    width: 26px;
    height: 26px;
    margin: 0;
    font-family: inherit;
    font-size: 0.7rem;
}

.comment-bubble {
    min-width: 0;
    padding: 7px 10px;
    border-radius: 4px 12px 12px 12px;
    background: var(--paper);
}

.comment-bubble p {
    margin: 0;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.comment-bubble a {
    color: var(--ink);
    text-decoration: none;
}

.comment-bubble > span {
    display: block;
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 0.66rem;
}

.comment-delete {
    margin-top: 7px;
}

.comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.comment-form input {
    width: 100%;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafb;
    color: var(--ink);
    font-size: 0.8rem;
}

.comment-form input:focus {
    border-color: var(--blue);
    outline: 2px solid rgba(7, 91, 216, 0.12);
}

.comment-form button {
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}

.comment-form .field-error {
    grid-column: 1 / -1;
}

.post-edit-card {
    background: #f8fbfc;
}

.post-edit-form {
    min-width: 0;
}

.post-edit-form > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 750;
}

.post-edit-form .form-actions {
    margin-top: 12px;
}

.load-more {
    padding: 22px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.feed-empty {
    padding: 72px 32px;
    text-align: center;
}

.feed-empty h2 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.feed-empty p {
    margin: 0;
    color: var(--ink-soft);
}

.discovery-rail {
    padding: 22px 18px 40px 24px;
}

.discovery-sticky {
    padding-top: 1px;
}

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

.discovery-heading {
    padding: 19px 18px 13px;
    border-bottom: 1px solid var(--line);
}

.discovery-heading .eyebrow {
    margin-bottom: 3px;
    font-size: 0.62rem;
}

.discovery-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.3rem;
}

.account-suggestion {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 13px 14px;
    border-bottom: 1px solid #e5edef;
}

.account-suggestion:last-child {
    border-bottom: 0;
}

.account-suggestion > .avatar {
    color: white;
    text-decoration: none;
}

.account-suggestion-copy {
    min-width: 0;
    display: grid;
}

.account-suggestion-copy a,
.account-suggestion-copy span,
.account-suggestion-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-suggestion-copy a {
    color: var(--ink);
    font-size: 0.82rem;
    text-decoration: none;
}

.account-suggestion-copy span,
.account-suggestion-copy small {
    color: var(--ink-soft);
    font-size: 0.7rem;
}

.follow-controls form {
    margin: 0;
}

.button-compact {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 0.72rem;
}

.discovery-empty {
    margin: 0;
    padding: 18px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.rail-note {
    margin: 14px 6px;
    color: #6a7d84;
    font-size: 0.7rem;
}

.mobile-social-nav {
    display: none;
}

.mobile-discovery {
    display: none;
}

.profile-counts {
    display: flex;
    gap: 18px;
    margin: -10px 0 25px;
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.profile-counts strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.profile-identity .follow-controls {
    display: inline-block;
}

.profile-posts {
    padding-bottom: 0;
}

.profile-post-list {
    margin-inline: -20px;
    border: 1px solid var(--line);
    border-bottom: 0;
}

.profile-post-list .post-card {
    padding-inline: 20px;
}

@media (max-width: 1100px) {
    .social-layout {
        grid-template-columns: 220px minmax(0, 680px);
    }

    .discovery-rail {
        display: none;
    }

    .mobile-discovery {
        display: block;
        padding: 26px 22px 90px;
        border-top: 8px solid var(--paper);
        background: var(--surface);
    }

    .mobile-discovery h2 {
        margin: 0 0 14px;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 1.45rem;
    }

    .mobile-discovery .account-suggestion {
        border: 1px solid var(--line);
        border-bottom: 0;
    }

    .mobile-discovery .account-suggestion:last-of-type {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .social-layout {
        display: block;
    }

    .social-rail {
        display: none;
    }

    .social-main {
        width: min(100%, 680px);
        min-height: 100vh;
        margin-inline: auto;
        border-left: 1px solid var(--line);
    }

    .mobile-social-nav {
        position: fixed;
        z-index: 20;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 58px;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -8px 24px rgba(16, 42, 54, 0.08);
    }

    .mobile-social-nav a {
        min-width: 78px;
        display: grid;
        place-items: center;
        padding: 8px;
        color: var(--ink-soft);
        font-size: 0.76rem;
        font-weight: 720;
        text-decoration: none;
    }

    .mobile-social-nav a.is-active {
        color: var(--blue);
        box-shadow: inset 0 3px 0 var(--blue);
    }

    .feed-stream {
        padding-bottom: 58px;
    }
}

@media (max-width: 520px) {
    .social-main {
        border: 0;
    }

    .feed-header {
        min-height: 76px;
        padding: 13px 14px 0;
    }

    .feed-header h1 {
        margin-bottom: 13px;
        font-size: 1.4rem;
    }

    .feed-header .eyebrow {
        display: none;
    }

    .feed-tabs a {
        padding: 28px 9px 14px;
    }

    .composer,
    .post-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding-inline: 14px;
    }

    .composer > .avatar,
    .post-card > .avatar {
        width: 38px;
        height: 38px;
        font-size: 0.86rem;
    }

    .post-head {
        display: block;
    }

    .post-owner-actions {
        margin-top: 5px;
    }

    .suggested-label {
        order: 6;
    }

    .profile-post-list {
        margin-inline: -14px;
    }
}

/* Predictions */
.predictions-page,
.prediction-detail-page {
    padding: clamp(44px, 7vw, 84px) 0 100px;
}

.predictions-shell {
    width: min(1080px, calc(100% - 40px));
}

.predictions-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 3px solid var(--ink);
}

.predictions-hero h1,
.prediction-detail-head h1 {
    max-width: 900px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    letter-spacing: -0.035em;
    line-height: 1;
}

.predictions-hero > div > p:last-child,
.prediction-detail-head > p {
    max-width: 700px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.topic-follow form {
    margin: 0;
}

.prediction-filters {
    display: flex;
    gap: 8px;
    padding: 24px 0 14px;
    overflow-x: auto;
}

.prediction-filters a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 720;
    text-decoration: none;
    white-space: nowrap;
}

.prediction-filters a:hover,
.prediction-filters a.is-active {
    border-color: var(--blue);
    background: var(--blue);
    color: white;
}

.topic-directory {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 8px 0 30px;
    border-bottom: 1px solid var(--line);
}

.topic-directory > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topic-directory strong {
    margin-right: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topic-directory a,
.prediction-tags a {
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
}

.topic-directory a:hover,
.prediction-tags a:hover {
    text-decoration: underline;
}

.prediction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-top: 30px;
}

.prediction-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 26px rgba(16, 42, 54, 0.05);
}

.prediction-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.prediction-category {
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.prediction-state {
    padding: 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.66rem;
    font-weight: 780;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.state-open {
    border-color: #9fd0b8;
    background: #edf9f3;
    color: #11613e;
}

.state-settled {
    border-color: #a9c7f3;
    background: #eef5ff;
    color: #174f9d;
}

.state-cancelled {
    border-color: #e1b6b0;
    background: #fff3f1;
    color: #8d2e22;
}

.prediction-card h2 {
    margin: 17px 0 9px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.16;
}

.prediction-card h2 a {
    color: var(--ink);
    text-decoration: none;
}

.prediction-card h2 a:hover {
    color: var(--blue-dark);
}

.prediction-description {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 0.87rem;
}

.prediction-outcome-summary {
    display: grid;
    gap: 7px;
    margin-top: auto;
}

.outcome-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 10px;
    border-radius: 7px;
    background: var(--paper);
    font-size: 0.8rem;
}

.outcome-summary.is-selected {
    box-shadow: inset 3px 0 0 var(--signal);
}

.outcome-summary.is-winner {
    background: #e7f6ee;
    color: #105a3a;
}

.prediction-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.72rem;
}

.prediction-tags {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.prediction-empty {
    grid-column: 1 / -1;
    padding: 70px 30px;
    border: 1px dashed var(--line);
    text-align: center;
}

.prediction-empty h2 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
}

.prediction-empty p {
    margin: 0;
    color: var(--ink-soft);
}

.page-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
}

.prediction-detail-shell {
    width: min(1050px, calc(100% - 40px));
}

.prediction-detail-head {
    padding-bottom: 36px;
    border-bottom: 3px solid var(--ink);
}

.prediction-detail-head h1 {
    margin-top: 22px;
    font-size: clamp(2.5rem, 5.5vw, 4.7rem);
}

.prediction-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.65fr);
    gap: clamp(35px, 6vw, 80px);
    padding-top: 42px;
}

.vote-panel-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.vote-panel-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.vote-panel-heading > span {
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.outcome-options,
.outcome-results {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.outcome-option {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font-weight: 700;
    cursor: pointer;
}

.outcome-option:hover,
.outcome-option:has(input:checked) {
    border-color: var(--blue);
    background: #f4f8ff;
}

.outcome-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.vote-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
}

.vote-submit span,
.vote-confirmation {
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.vote-confirmation {
    margin: 0 0 13px;
    padding: 10px 12px;
    border-left: 3px solid var(--signal);
    background: #fff6f1;
}

.outcome-result {
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
}

.outcome-result.is-selected {
    border-color: var(--signal);
}

.outcome-result.is-winner {
    border-color: #72b894;
    background: #f1faf5;
}

.outcome-result-copy {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
}

.winner-label,
.selected-label {
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.62rem;
    text-transform: uppercase;
}

.winner-label {
    background: #d9f2e4;
    color: #105a3a;
}

.selected-label {
    background: #fff0e8;
    color: #973e15;
}

.outcome-bar {
    height: 6px;
    margin: 10px 0 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6edef;
}

.outcome-bar span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--blue);
}

.outcome-result small {
    color: var(--ink-soft);
}

.prediction-notice {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--blue);
    background: #eff5fd;
    color: var(--ink-soft);
}

.notice-cancelled {
    border-color: var(--danger);
    background: #fff3f1;
}

.prediction-timing {
    align-self: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.prediction-timing dl {
    margin: 0;
}

.prediction-timing dl div {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.prediction-timing dt {
    color: var(--ink-soft);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.prediction-timing dd {
    margin: 4px 0 0;
    font-weight: 650;
}

.prediction-timing > p:last-child {
    margin: 17px 0 0;
    color: var(--ink-soft);
    font-size: 0.75rem;
}

.open-predictions-module {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.module-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.module-heading .eyebrow {
    margin-bottom: 2px;
    font-size: 0.58rem;
}

.module-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
}

.module-heading > a {
    font-size: 0.72rem;
    font-weight: 700;
}

.open-prediction-list {
    display: grid;
}

.open-prediction-item {
    display: grid;
    gap: 3px;
    padding: 12px 15px;
    border-bottom: 1px solid #e4ecef;
    color: var(--ink);
    text-decoration: none;
}

.open-prediction-item:last-child {
    border-bottom: 0;
}

.open-prediction-item:hover {
    background: #f7fafb;
}

.open-prediction-item > span {
    color: var(--blue);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.open-prediction-item strong {
    font-size: 0.8rem;
    line-height: 1.3;
}

.open-prediction-item small {
    color: var(--ink-soft);
    font-size: 0.66rem;
}

.feed-predictions-mobile {
    display: none;
}

@media (max-width: 1100px) {
    .feed-predictions-mobile {
        display: block;
        padding: 14px 18px;
        border-bottom: 8px solid var(--paper);
    }

    .feed-predictions-mobile .open-predictions-module {
        margin: 0;
    }
}

@media (max-width: 760px) {
    .prediction-grid {
        grid-template-columns: 1fr;
    }

    .prediction-detail-grid {
        grid-template-columns: 1fr;
    }

    .topic-directory {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .predictions-hero {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .predictions-shell,
    .prediction-detail-shell {
        width: min(100% - 28px, 1080px);
    }

    .prediction-card {
        padding: 18px;
    }

    .prediction-card-foot,
    .vote-submit {
        align-items: flex-start;
        flex-direction: column;
    }

    .vote-submit .button {
        width: 100%;
    }

    .feed-predictions-mobile {
        padding: 12px 14px;
    }
}

@media (max-width: 440px) {
    .mobile-social-nav a {
        min-width: 0;
        flex: 1;
        padding-inline: 4px;
    }
}
