@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Outfit:wght@400;500;600&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

body.mond-page {
    --bg: #f7f4ef;
    --card: #ffffff;
    --glass: rgba(255, 255, 255, 0.82);
    --text: #1f1a15;
    --muted: #5e564f;
    --accent: #ff6b4a;
    --accent-2: #1f8f8b;
    --accent-3: #f2b84b;
    --border: rgba(31, 26, 21, 0.12);
    --shadow: 0 24px 50px rgba(31, 26, 21, 0.12);
    --radius: 16px;
    margin: 0;
    background:
        radial-gradient(60% 60% at 10% 0%, rgba(255, 107, 74, 0.15), transparent 60%),
        radial-gradient(50% 50% at 85% 10%, rgba(31, 143, 139, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(247, 244, 239, 0.9), rgba(255, 255, 255, 0.94));
    color: var(--text);
    font-family: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
    line-height: 1.6;
}

body.mond-page::before,
body.mond-page::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

body.mond-page::before {
    width: 420px;
    height: 420px;
    background: rgba(255, 107, 74, 0.18);
    top: -180px;
    left: -120px;
}

body.mond-page::after {
    width: 520px;
    height: 520px;
    background: rgba(31, 143, 139, 0.2);
    top: -140px;
    right: -200px;
}

body.mond-page * {
    box-sizing: border-box;
}

body.mond-page .bg-blur {
    display: none;
}

body.mond-page .nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 244, 239, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(31, 26, 21, 0.08);
}

body.mond-page .brand-logo {
    height: 48px;
}

body.mond-page .brand-text {
    color: var(--text);
}

body.mond-page .nav-links a {
    color: var(--muted);
    font-weight: 600;
}

body.mond-page .nav-links a:hover {
    color: var(--text);
}

body.mond-page .nav-user {
    color: var(--muted);
}

body.mond-page .ghost-btn {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

body.mond-page .ghost-btn:hover {
    border-color: var(--accent-2);
}

body.mond-page .primary-btn {
    background: linear-gradient(135deg, var(--accent), #ff8a4f);
    color: #fff;
    box-shadow: 0 12px 24px rgba(255, 107, 74, 0.25);
}

body.mond-page .secondary-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    color: var(--text);
}

body.mond-page .badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    color: #2b1b12;
}

body.mond-page .eyebrow {
    color: var(--muted);
    letter-spacing: 0.18em;
}

body.mond-page h1,
body.mond-page h2,
body.mond-page h3,
body.mond-page .section-title,
body.mond-page .hero-copy h1,
body.mond-page .hero-copy h2 {
    font-family: 'Fraunces', 'Zen Kaku Gothic New', serif;
}

body.mond-page main {
    position: relative;
    z-index: 1;
}

body.mond-page .glass,
body.mond-page .card,
body.mond-page .qa-card,
body.mond-page .paper-card,
body.mond-page .map-paper-card,
body.mond-page .question,
body.mond-page .response-box {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

body.mond-page .chat-thread,
body.mond-page .chat-bubble,
body.mond-page .papers-panel,
body.mond-page .chat-input-block,
body.mond-page .paper-item {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

body.mond-page .chat-bubble.user {
    background: rgba(255, 107, 74, 0.14);
}

body.mond-page .paper-relevance {
    background: rgba(255, 107, 74, 0.12);
    border-color: rgba(255, 107, 74, 0.35);
    color: #b53719;
}

body.mond-page .auth-error {
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.12);
    color: #b91c1c;
}

body.mond-page .share-prompt {
    background: rgba(255, 107, 74, 0.12);
    border: 1px solid rgba(255, 107, 74, 0.2);
}

body.mond-page .share-btn-action {
    background: linear-gradient(135deg, var(--accent), #ff8a4f);
    color: #fff;
}

body.mond-page .stat-card {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.12), rgba(242, 184, 75, 0.16));
    border-color: rgba(255, 107, 74, 0.25);
}

body.mond-page .step-card::after {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.12), rgba(242, 184, 75, 0.16));
}

body.mond-page .status-pill {
    background: rgba(255, 107, 74, 0.12);
    color: #7a2d1c;
    border-color: rgba(255, 107, 74, 0.3);
}

body.mond-page .status-pill.soft {
    background: rgba(31, 26, 21, 0.06);
    color: var(--muted);
}

body.mond-page .like-pill {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.2), rgba(242, 184, 75, 0.2));
    color: #2b1b12;
}

body.mond-page .vote-chip {
    background: rgba(255, 255, 255, 0.9);
}

body.mond-page input,
body.mond-page textarea,
body.mond-page select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    color: var(--text);
}

body.mond-page .section-alt {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.08), rgba(242, 184, 75, 0.12));
}

body.mond-page .section-title {
    color: var(--text);
}

body.mond-page .input-actions .ghost-btn.small,
body.mond-page .input-actions .ghost-btn {
    background: rgba(255, 255, 255, 0.9);
}

body.mond-page .nav,
body.mond-page .footer {
    position: relative;
    z-index: 2;
}

body.mond-page .footer {
    border-top: 1px solid var(--border);
    background: rgba(247, 244, 239, 0.7);
}

body.mond-page .footer-links a {
    color: var(--muted);
}

body.mond-page .footer-links a:hover {
    color: var(--text);
}

.mond-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 7vw 90px;
    display: grid;
    gap: 90px;
}

.mond-hero {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.mond-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.mond-title {
    font-family: 'Fraunces', 'Zen Kaku Gothic New', serif;
    font-size: clamp(36px, 4.5vw, 54px);
    margin: 12px 0;
    letter-spacing: -0.5px;
}

.mond-lede {
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 24px;
}

.mond-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mond-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mond-btn.primary {
    background: linear-gradient(135deg, var(--accent), #ff8a4f);
    color: #fff;
    box-shadow: 0 14px 28px rgba(255, 107, 74, 0.3);
}

.mond-btn.secondary {
    border-color: var(--border);
    color: var(--text);
    background: rgba(255, 255, 255, 0.7);
}

.mond-btn:hover {
    transform: translateY(-2px);
}

.mond-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.metric-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.metric-value {
    font-size: 22px;
    font-weight: 700;
}

.metric-label {
    font-size: 12px;
    color: var(--muted);
}

.mond-stack {
    display: grid;
    gap: 16px;
}

.surface {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.qa-card {
    display: grid;
    gap: 12px;
    animation: rise 0.7s ease both;
}

.qa-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
}

.qa-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.qa-body {
    color: var(--muted);
    margin: 0;
}

.qa-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(31, 26, 21, 0.06);
    font-size: 12px;
    font-weight: 600;
}

.chip.highlight {
    background: rgba(255, 107, 74, 0.15);
    color: #b53719;
}

.answer-card {
    background: rgba(31, 143, 139, 0.08);
    border-radius: 14px;
    padding: 14px;
}

.answer-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    font-weight: 700;
}

.answer-meta {
    font-size: 12px;
    color: var(--muted);
}

.ranking-card {
    display: grid;
    gap: 12px;
    animation: rise 0.7s ease 0.1s both;
}

.ranking-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(31, 26, 21, 0.08);
}

.ranking-row:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(31, 143, 139, 0.15);
    color: #0f5a58;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.rank-name {
    font-weight: 600;
}

.rank-score {
    font-weight: 700;
    color: var(--accent);
}

.support-card {
    display: grid;
    gap: 10px;
    animation: rise 0.7s ease 0.2s both;
}

.section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.flow-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 10px;
    animation: fadeUp 0.6s ease both;
}

.flow-card:nth-child(2) { animation-delay: 0.1s; }
.flow-card:nth-child(3) { animation-delay: 0.2s; }
.flow-card:nth-child(4) { animation-delay: 0.3s; }

.flow-step {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.flow-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.flow-text {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.ranking-board {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--shadow);
}

.ranking-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--muted);
}

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

.ranking-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(31, 26, 21, 0.08);
}

.ranking-item-compact {
    grid-template-columns: auto 1fr;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-link {
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    padding: 10px 12px;
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}

.ranking-link:hover {
    background: rgba(31, 143, 139, 0.1);
    transform: translateX(2px);
}

.ranking-title {
    font-weight: 600;
}

.ranking-tag {
    font-size: 12px;
    color: var(--muted);
}
.ranking-date {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}
.ranking-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ranking-action-status {
    font-size: 12px;
    color: var(--muted);
}

.ranking-boost {
    font-weight: 700;
    color: var(--accent-2);
}
.ranking-footnote {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}
.ranking-footnote p {
    margin: 4px 0 0;
}

.support-section {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.support-panel {
    background: rgba(31, 143, 139, 0.08);
    border: 1px solid rgba(31, 143, 139, 0.2);
    border-radius: 20px;
    padding: 22px;
    display: grid;
    gap: 12px;
}

.insight-ranking-board {
    margin-bottom: 36px;
}

.insight-feed-head {
    margin-top: 28px;
}

.support-panel h3 {
    margin: 0;
    font-size: 20px;
}

.support-panel p {
    margin: 0;
    color: var(--muted);
}

.cta-panel {
    background: linear-gradient(135deg, rgba(255, 107, 74, 0.14), rgba(242, 184, 75, 0.18));
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    border: 1px solid rgba(255, 107, 74, 0.2);
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin-top: 0;
    font-family: 'Fraunces', 'Zen Kaku Gothic New', serif;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .mond-shell { padding: 48px 6vw 72px; }
    body.mond-page .nav { padding: 14px 6vw; }
    body.mond-page .nav-links { flex-wrap: wrap; }
}

@media (max-width: 720px) {
    body.mond-page .nav { flex-direction: column; align-items: flex-start; gap: 12px; }
    body.mond-page .nav-actions { width: 100%; justify-content: space-between; }
    .mond-cta { width: 100%; }
    .mond-btn { width: 100%; }
}
