:root {
    color-scheme: light;
    --ink: #111827;
    --muted: #667085;
    --line: #e6eaf0;
    --blue: #1677ff;
    --blue-soft: #edf5ff;
    --paper: #ffffff;
    --canvas: #f5f7fa;
}

/* English-product header structure adapted for FactHub 飞核. */
.site-header-shell {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    backdrop-filter: blur(16px);
}

.zh-account-inner {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 auto;
    padding: 0 18px;
}

.header-link,
.zh-account-left,
.zh-account-right {
    display: flex;
    align-items: center;
}

.header-link {
    gap: 9px;
    color: #111827;
    text-decoration: none;
}

.header-logo {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.header-title {
    color: #111827;
    font-size: 22px;
    font-weight: 850;
    line-height: 1;
}

.header-title-cn {
    color: #000;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.fh-menu-wrap {
    position: relative;
}

.fh-menu-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, .16);
    border-radius: 999px;
    background: #fff;
    color: #111827;
    cursor: pointer;
}

.zh-hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.zh-hamburger span {
    width: 14px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.fh-menu-dropdown {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 28px));
    padding: 8px 0;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.fh-menu-dropdown.show { display: block; }

.fh-menu-dropdown a,
.fh-menu-future,
.fh-menu-logout {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
}

.fh-menu-dropdown a:hover,
.fh-menu-logout:hover { background: #f5f7fb; }
.fh-menu-future { color: #8a94a3; cursor: default; }
.fh-menu-business { color: #111827; font-weight: 900; }
.fh-menu-business .tyi-blue { color: #1987ff; font-weight: 950; }
.fh-menu-business .tyi-black { color: #05070a; font-weight: 950; }
.fh-menu-title { padding: 9px 14px; color: #64748b; font-size: 13px; font-weight: 850; }
.fh-menu-login { font-weight: 800; }
.fh-menu-signup {
    margin: 6px 10px;
    width: calc(100% - 20px) !important;
    border-radius: 12px;
    background: #1987ff !important;
    color: #fff !important;
    text-align: center !important;
    font-weight: 900;
}
.dropdown-user-header { padding: 9px 14px 10px; }
.dropdown-user-name { overflow: hidden; font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-sep { margin: 6px 0; border: 0; border-top: 1px solid #eef2f7; }
.fh-menu-logout-form { margin: 0; }
.fh-menu-logout { cursor: pointer; }

.site-tabs { border-top: 1px solid #eef2f7; }
.site-tabs-inner {
    display: grid;
    max-width: 1200px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 auto;
}
.site-tab {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 5px 11px;
    color: #566175;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}
.site-tab.active { color: #111827; }
.site-tab.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #1987ff;
    content: "";
}
.site-tab-future { color: #a4acb9; }
.site-tab-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.site-tab-icon svg { display: block; width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.05; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 720px) {
    .zh-account-inner { min-height: 62px; padding: 0 14px; }
    .header-logo { width: 44px; height: 44px; }
    .header-title { font-size: 21px; }
    .header-title-cn { display: inline; font-size: 19px; font-weight: 950; }
    .site-tab { gap: 4px; padding: 10px 2px 9px; font-size: 12px; }
    .site-tab-icon { display: none; }
}

/* English login/signup layout, translated for the Chinese site. */
.auth-english-page {
    min-height: 100vh;
    margin: 0;
    padding: 24px 12px;
    background: #fff;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.auth-english-shell {
    display: flex;
    min-height: calc(100vh - 48px);
    align-items: center;
    justify-content: center;
}
.auth-english-card {
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 24px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    background: #fff;
}
.auth-english-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    color: #000;
    text-decoration: none;
}
.auth-english-brand img { display: block; width: 48px; height: 48px; object-fit: contain; }
.auth-english-brand-name { font-size: 20px; font-weight: 650; line-height: 1.1; }
.auth-english-brand-name b { font-weight: 900; }
.auth-english-card h1 { margin: 0 0 6px; font-size: 18px; text-align: left; }
.auth-english-sub { margin: 0 0 18px; font-size: 13px; line-height: 1.55; opacity: .8; }
.auth-english-field { margin-bottom: 12px; }
.auth-english-field label { display: block; margin-bottom: 4px; font-size: 13px; }
.auth-english-field input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: 10px;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 14px;
    outline: none;
}
.auth-english-field input:focus { border-color: #1987ff; box-shadow: 0 0 0 3px rgba(25,135,255,.12); }
.auth-english-primary,
.auth-english-social-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 11px 12px;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.auth-english-primary { margin-top: 12px; border: 0; background: #1987ff; color: #fff; cursor: pointer; }
.auth-english-social { margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(0,0,0,.08); }
.auth-english-social-title { margin-bottom: 8px; font-size: 12px; text-align: center; opacity: .7; }
.auth-english-social-button { margin-top: 10px; border: 1px solid rgba(0,0,0,.16); background: #f7f7f7; color: #000; }
.auth-english-footer { margin-top: 14px; font-size: 13px; text-align: center; }
.auth-english-footer a { color: #000; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.4); }
.auth-english-alert { margin-bottom: 12px; padding: 9px 11px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.auth-english-error { border: 1px solid rgba(0,0,0,.2); background: #fff2f2; }
.auth-english-success { border: 1px solid rgba(20,120,20,.18); background: #eef8ee; }
.auth-english-unavailable { margin-top: 12px; font-size: 13px; line-height: 1.5; text-align: center; }

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 18% 10%, #e9f3ff 0, transparent 34rem),
        var(--canvas);
    color: var(--ink);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        "Microsoft YaHei",
        "Noto Sans CJK SC",
        sans-serif;
}

.shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px 18px;
}

.status-card {
    width: min(680px, 100%);
    padding: clamp(28px, 6vw, 56px);
    border: 1px solid rgba(230, 234, 240, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 80px rgba(31, 50, 81, 0.12);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--ink);
    color: white;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.eyebrow {
    margin: 34px 0 10px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 7vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.summary {
    max-width: 36rem;
    margin: 22px 0 30px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

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

.facts div {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--blue-soft);
}

.facts dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
}

.facts dd {
    overflow-wrap: anywhere;
    margin: 0;
    font-size: 14px;
    font-weight: 750;
}

.note {
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

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

.button,
button.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue);
    border-radius: 12px;
    padding: 0 18px;
    background: var(--blue);
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.button-secondary {
    background: white;
    color: var(--blue);
}

.button-full {
    width: 100%;
}

.brand-link {
    text-decoration: none;
}

.auth-shell,
.profile-shell {
    min-height: 100vh;
    padding: 32px 18px;
}

.auth-shell {
    display: grid;
    place-items: center;
}

.auth-card,
.profile-card {
    width: min(720px, 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 24px 80px rgba(31, 50, 81, 0.1);
}

.auth-card {
    width: min(440px, 100%);
    padding: 32px;
}

.auth-page {
    background:
        radial-gradient(circle at 50% 0%, rgba(25, 135, 255, 0.1), transparent 34rem),
        #f7f9fc;
}

.auth-card-unified {
    width: min(460px, 100%);
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 850;
    text-decoration: none;
}

.auth-brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: contain;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 24px;
    border-radius: 14px;
    padding: 4px;
    background: #eef1f5;
}

.auth-tabs a {
    border-radius: 10px;
    padding: 9px 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.auth-tabs a.is-active {
    background: white;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(31, 50, 81, 0.09);
}

.auth-social {
    display: grid;
    gap: 11px;
    margin: 20px 0;
}

.auth-provider-button {
    display: grid;
    min-height: 48px;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    padding: 0 14px;
    background: white;
    color: var(--ink);
    font-size: 15px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.auth-provider-button:hover,
.auth-provider-button:focus-visible {
    border-color: var(--blue);
    outline: 3px solid rgba(22, 119, 255, 0.1);
}

.auth-provider-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
}

.auth-google-mark {
    color: #4285f4;
    font-family: Arial, sans-serif;
}

.auth-apple-mark {
    color: #000;
    font-size: 20px;
    line-height: 1;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.profile-card {
    margin: 24px auto;
    padding: clamp(24px, 5vw, 44px);
}

.profile-header {
    display: flex;
    width: min(900px, 100%);
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.auth-title {
    font-size: clamp(28px, 6vw, 42px);
}

.auth-summary {
    margin-bottom: 22px;
    font-size: 15px;
}

.auth-benefits {
    margin: 14px 0 22px;
    padding: 14px 16px 14px 36px;
    border-radius: 14px;
    background: #f5f9ff;
    color: #26364d;
    line-height: 1.65;
}

.auth-benefits li + li {
    margin-top: 4px;
}

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

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

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

.form-stack input,
.form-grid input,
.form-grid textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    padding: 11px 12px;
    background: white;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
}

.form-stack input:focus,
.form-grid input:focus,
.form-grid textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(22, 119, 255, 0.12);
}

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

.alert {
    margin: 0 0 18px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
}

.alert p {
    margin: 0;
}

.alert-error {
    border: 1px solid #f7b7b2;
    background: #fff3f2;
    color: #8f1d18;
}

.alert-success {
    border: 1px solid #a9dfbf;
    background: #effaf3;
    color: #176b3a;
}

.privacy-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--blue);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 560px) {
    .status-card {
        border-radius: 22px;
    }

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

    .auth-card {
        padding: 24px 20px;
    }

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

    .field-wide {
        grid-column: auto;
    }
}

/* Phase 2: Chinese Facts experience */
.facts-page {
    background: #f6f7f9;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(216, 220, 226, 0.9);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: grid;
    width: min(1680px, calc(100% - 36px));
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "brand spacer account"
        "nav nav nav";
    gap: 0 28px;
    align-items: center;
    margin: 0 auto;
}

.site-brand {
    grid-area: brand;
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--ink);
    font-weight: 850;
    text-decoration: none;
}

.site-brand small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.site-brand__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
}

.site-brand__mark img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.primary-nav,
.account-nav {
    display: flex;
    align-items: center;
}

.primary-nav {
    display: grid;
    grid-area: nav;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width:100%;
    border-top:1px solid #eef0f3;
}

.account-nav {
    grid-area: account;
    gap:18px;
    justify-self:end;
}

.primary-nav a,
.account-nav a {
    color: #4b5565;
    font-size: 14px;
    font-weight: 720;
    text-decoration: none;
}

.primary-nav a {
    position: relative;
    padding: 12px 10px 11px;
    text-align:center;
}

.primary-nav a.is-active {
    color: var(--ink);
}

.primary-nav a.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--blue);
    content: "";
}

.nav-coming {
    padding:12px 10px 11px;
    color: #a4acb9;
    cursor: not-allowed;
    font-size: 14px;
    font-weight: 650;
    text-align:center;
}

.site-brand,
.account-nav {
    min-height:64px;
}

@media (max-width:720px) {
    .site-header__inner {
        width:100%;
        grid-template-columns:1fr auto;
        grid-template-areas:
            "brand account"
            "nav nav";
        gap:0 10px;
    }
    .site-brand { padding-left:14px; }
    .site-brand small { display:none; }
    .account-nav { padding-right:12px; }
    .primary-nav a,
    .nav-coming {
        overflow:hidden;
        padding-right:4px;
        padding-left:4px;
        font-size:12px;
        white-space:nowrap;
    }
}

.account-nav form {
    margin: 0;
}

.button-compact {
    min-height: 38px;
    padding: 0 15px;
}

.content-shell,
.detail-shell,
.admin-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.feed-hero {
    display: flex;
    min-height: 260px;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding: 68px 0 42px;
}

.feed-hero h1 {
    max-width: 720px;
    font-size: clamp(38px, 7vw, 68px);
}

.feed-hero > div > p:last-child {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.feed-hero__stat {
    display: grid;
    flex: 0 0 120px;
    padding-bottom: 5px;
    text-align: right;
}

.feed-hero__stat strong {
    font-size: 40px;
    letter-spacing: -0.04em;
}

.feed-hero__stat span {
    color: var(--muted);
    font-size: 13px;
}

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

.fact-card {
    overflow: hidden;
    border: 1px solid #e1e5ea;
    border-radius: 22px;
    background: white;
    box-shadow: 0 12px 38px rgba(23, 32, 51, 0.055);
}

.fact-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 8.5;
    background: #e8ebef;
}

.fact-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.fact-card:hover .fact-card__image img {
    transform: scale(1.025);
}

.fact-card__body {
    padding: 24px;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 10px;
}

.tag-row span {
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--blue-soft);
    color: #145fbd;
    font-size: 11px;
    font-weight: 750;
}

.fact-card h2 {
    margin: 14px 0 12px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.fact-card h2 a {
    color: inherit;
    text-decoration: none;
}

.fact-card__preview {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #5c6675;
    font-size: 15px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.fact-card__footer {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #edf0f3;
    color: var(--muted);
    font-size: 12px;
}

.fact-card__footer a {
    margin-left: auto;
    color: var(--blue);
    font-weight: 750;
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    padding: 42px 0 60px;
}

.site-footer {
    padding: 34px 18px 48px;
    color: #858e9c;
    font-size: 12px;
    text-align: center;
}

.detail-shell {
    padding-top: 30px;
}

.back-link {
    display: inline-flex;
    margin: 6px 0 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.fact-detail,
.opinions-section,
.comments-section {
    border: 1px solid #e1e5ea;
    border-radius: 26px;
    background: white;
}

.fact-detail__header {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(32px, 7vw, 72px) clamp(22px, 7vw, 76px) 36px;
}

.fact-detail__header h1 {
    margin-top: 18px;
    font-size: clamp(38px, 6vw, 64px);
}

.fact-lede {
    max-width: 760px;
    margin: 24px 0 0;
    color: #4e5968;
    font-size: clamp(17px, 2.3vw, 21px);
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.action-button,
.comment-card footer button {
    border: 1px solid #dde2e8;
    border-radius: 999px;
    padding: 9px 13px;
    background: white;
    color: #4f5967;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.action-button:hover,
.action-button.is-active,
.comment-card footer button:hover {
    border-color: #a9cdfa;
    background: var(--blue-soft);
    color: #145fbd;
}

.fact-hero-image {
    overflow: hidden;
    max-width: 1040px;
    margin: 0 auto 30px;
    border-radius: 20px;
    aspect-ratio: 16 / 8;
    background: #edf0f2;
}

.fact-hero-image img,
.fact-hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-grid {
    display: grid;
    max-width: 1040px;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 50px;
    margin: 0 auto;
    padding: 28px 0 70px;
}

.story-section {
    padding: 26px 0;
    border-bottom: 1px solid #eceff2;
}

.story-section:first-child {
    padding-top: 0;
}

.story-section h2 {
    margin: 0 0 13px;
    font-size: 25px;
}

.story-section p {
    margin: 0;
    color: #343d49;
    font-size: 17px;
    line-height: 1.9;
}

.story-section--meaning {
    border: 1px solid #cfe1f9;
    border-radius: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #edf5ff, #f8fbff);
}

.section-kicker {
    margin: 0 0 8px !important;
    color: var(--blue) !important;
    font-size: 11px !important;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.evidence-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: #414a57;
    line-height: 1.7;
}

.detail-aside {
    display: grid;
    align-content: start;
    gap: 16px;
}

.insight-card {
    border: 1px solid #e2e6ea;
    border-radius: 18px;
    padding: 20px;
    background: #fafbfc;
}

.metric-list {
    display: grid;
    gap: 13px;
    margin: 0;
}

.metric-list div {
    display: flex;
    justify-content: space-between;
}

.metric-list dt {
    color: var(--muted);
    font-size: 13px;
}

.metric-list dd {
    margin: 0;
    font-weight: 800;
}

.crowd-row {
    margin-top: 14px;
}

.crowd-row > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

.crowd-bar {
    overflow: hidden;
    height: 7px;
    border-radius: 99px;
    background: #e5e9ee;
}

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

.crowd-summary {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.opinions-section,
.comments-section {
    margin-top: 22px;
    padding: clamp(26px, 6vw, 58px);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
}

.opinion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.opinion-card {
    border-radius: 18px;
    padding: 24px;
    background: #f6f8fa;
}

.opinion-card > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.opinion-card h3 {
    margin: 9px 0;
    font-size: 21px;
}

.opinion-card p {
    margin: 0;
    color: #505a68;
    line-height: 1.75;
}

.comment-composer {
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.comment-composer textarea {
    min-height: 110px;
    resize: vertical;
    border: 1px solid #d8dee6;
    border-radius: 16px;
    padding: 15px;
    font: inherit;
}

.comment-composer .button {
    justify-self: end;
}

.form-status {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.login-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0;
    border-radius: 16px;
    padding: 18px 20px;
    background: #f4f7fb;
}

.login-prompt p {
    margin: 0;
    color: var(--muted);
}

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

.comment-card {
    border: 1px solid #e5e9ee;
    border-radius: 18px;
    padding: 20px;
}

.comment-card > header {
    display: flex;
    gap: 11px;
    align-items: center;
}

.comment-avatar {
    display: grid;
    overflow: hidden;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: #dceafd;
    color: #145fbd;
    font-weight: 800;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-card header strong,
.comment-card header time,
.comment-card header em {
    display: inline-block;
    margin-right: 6px;
}

.comment-card header time {
    color: var(--muted);
    font-size: 11px;
}

.comment-card header em {
    border-radius: 999px;
    padding: 2px 6px;
    background: #f0eafe;
    color: #673ab7;
    font-size: 10px;
    font-style: normal;
    font-weight: 750;
}

.comment-card > p {
    margin: 15px 0;
    color: #333c48;
    line-height: 1.75;
}

.comment-card footer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.reply-slot {
    display: grid;
    gap: 8px;
    margin: 14px 0 0 30px;
}

.reply-card {
    border-left: 3px solid #dbe8f8;
    padding: 10px 14px;
    background: #fafbfc;
}

.reply-card p {
    margin: 5px 0 0;
}

.admin-shell {
    padding: 54px 0;
}

.admin-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0;
}

.admin-metrics div {
    display: grid;
    gap: 8px;
    border: 1px solid #e1e5ea;
    border-radius: 16px;
    padding: 18px;
    background: white;
}

.admin-metrics span {
    color: var(--muted);
    font-size: 12px;
}

.admin-metrics strong {
    font-size: 28px;
}

.admin-panel {
    border: 1px solid #e1e5ea;
    border-radius: 20px;
    padding: 28px;
    background: white;
}

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

.report-list article {
    border: 1px solid #e5e9ee;
    border-radius: 14px;
    padding: 18px;
}

.report-list header {
    display: flex;
    justify-content: space-between;
}

.report-list blockquote {
    margin: 14px 0;
    border-left: 3px solid #cbdcf4;
    padding-left: 14px;
    color: #3e4753;
}

.report-list form {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    gap: 8px;
}

.report-list select,
.report-list input {
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    padding: 10px;
    font: inherit;
}

.empty-state {
    color: var(--muted);
}

@media (max-width: 900px) {
    .site-header__inner {
        grid-template-columns: auto auto;
    }

    .primary-nav {
        display: none;
    }

    .account-nav {
        justify-content: end;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        padding-right: 24px;
        padding-left: 24px;
    }

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

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

@media (max-width: 680px) {
    .facts-grid,
    .opinion-grid {
        grid-template-columns: 1fr;
    }

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

    .feed-hero__stat {
        display: none;
    }

    .fact-card__body {
        padding: 20px;
    }

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

    .fact-detail,
    .opinions-section,
    .comments-section {
        border-radius: 18px;
    }

    .login-prompt,
    .admin-header {
        align-items: stretch;
        flex-direction: column;
    }

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

@media (max-width: 460px) {
    .site-header__inner,
    .content-shell,
    .detail-shell,
    .admin-shell {
        width: min(100% - 22px, 1180px);
    }

    .site-brand small {
        display: none;
    }

    .account-nav .text-button {
        display: none;
    }

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