/* ============================================================
   FACT BRIEFING — Article detail page styles
   (loads after styles.css)
   ============================================================ */

/* reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100;
    background: transparent;
}

.reading-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width .08s linear;
}

.article {
    padding-bottom: 0;
}

.art-shell {
    max-width: 1100px;
    padding-top: 36px;
}

/* ---------- breadcrumb ---------- */
.art-crumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: .02em;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.art-crumb a,
.art-crumb .here {
    white-space: nowrap;
}

.art-crumb a:hover {
    color: var(--accent);
}

.art-crumb .here {
    color: var(--accent);
}

.art-crumb .sep {
    color: var(--ink-4);
}

/* ---------- header ---------- */
.art-header {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.art-header .cat-chip {
    margin-bottom: 18px;
}

.art-header h1 {
    font-family: var(--font-head);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-wrap: balance;
}

.art-header .dek {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.62;
    color: var(--ink-2);
    font-weight: 500;
    text-wrap: pretty;
}

/* byline + actions */
.byline {
    max-width: 760px;
    margin: 30px auto 0;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.byline .bl-left {
    display: flex;
    align-items: center;
    gap: 13px;
}

.byline .bl-ava {
    width: 46px;
    height: 46px;
    border-radius: 100px;
    object-fit: cover;
    background: var(--surface-2);
    flex-shrink: 0;
}

.byline .bl-info .bl-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.byline .bl-info .bl-name .role {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 5px;
    white-space: nowrap;
}

.byline .bl-info .bl-meta {
    margin-top: 5px;
    font-size: 12.5px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.byline .bl-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.act-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 700;
    transition: all .15s;
    white-space: nowrap;
}

.act-btn svg {
    width: 16px;
    height: 16px;
}

.act-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.act-btn.icon {
    width: 38px;
    padding: 0;
    justify-content: center;
}

.act-btn.on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- hero figure ---------- */
.art-hero {
    margin: 34px auto 0;
    max-width: 980px;
}

.art-hero img {
    width: 100%;
    border-radius: var(--radius-l);
    aspect-ratio: 16/9;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.art-hero figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-3);
    text-align: center;
    line-height: 1.5;
}

.art-hero figcaption .src {
    color: var(--ink-4);
}

/* ---------- layout: share rail + content ---------- */
.art-layout {
    margin-top: 44px;
    display: grid;
    grid-template-columns: 56px minmax(0, 720px);
    justify-content: center;
    column-gap: 36px;
}

.share-rail {
    position: sticky;
    top: 84px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-rail .sr-count {
    text-align: center;
    margin-bottom: 4px;
}

.share-rail .sr-count .n {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.share-rail .sr-count .l {
    font-size: 10.5px;
    color: var(--ink-4);
    font-weight: 700;
    margin-top: 3px;
}

.sr-btn {
    width: 46px;
    height: 46px;
    border-radius: 100px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-2);
    transition: all .15s;
}

.sr-btn svg {
    width: 19px;
    height: 19px;
}

.sr-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.sr-btn.like.on {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.sr-btn.like.on svg {
    fill: var(--accent);
}

/* ---------- TL;DR summary box (briefing signature) ---------- */
.tldr {
    background: var(--surface-2);
    border-radius: var(--radius-m);
    padding: 24px 26px;
    margin-bottom: 36px;
    position: relative;
    border-left: 3px solid var(--accent);
}

.tldr .tldr-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: .02em;
    margin-bottom: 14px;
}

.tldr .tldr-head svg {
    width: 16px;
    height: 16px;
}

.tldr ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.tldr li {
    display: flex;
    gap: 11px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    font-weight: 500;
    text-wrap: pretty;
}

.tldr li::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 100px;
    background: var(--accent);
    margin-top: 9px;
}

/* ---------- article body ---------- */
.art-body {
    font-size: 17.5px;
    line-height: 1.9;
    color: var(--ink);
    letter-spacing: -0.003em;
}

.art-body>p {
    margin-bottom: 26px;
    text-wrap: pretty;
}

.art-body>p:first-of-type::first-letter {
    font-family: var(--font-head);
    font-size: 64px;
    font-weight: 700;
    float: left;
    line-height: .82;
    padding: 6px 14px 4px 0;
    color: var(--accent);
}

.art-body h2 {
    font-family: var(--font-head);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 44px 0 18px;
    color: var(--ink);
    scroll-margin-top: 80px;
}

.art-body h2 .h-bar {
    display: inline-block;
    width: 5px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    margin-right: 12px;
    vertical-align: -2px;
}

.art-body h3 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 32px 0 14px;
    color: var(--ink);
}

.art-body strong {
    font-weight: 800;
    color: var(--ink);
}

.art-body a.inline {
    color: var(--accent);
    font-weight: 700;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.art-body ul.body-list {
    margin: 0 0 26px;
    padding-left: 4px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.art-body ul.body-list li {
    position: relative;
    padding-left: 24px;
    font-size: 16.5px;
    line-height: 1.7;
    text-wrap: pretty;
}

.art-body ul.body-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
}

/* pull quote */
.pullquote {
    margin: 38px 0;
    padding: 6px 0 6px 28px;
    border-left: 4px solid var(--accent);
}

.pullquote p {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}

.pullquote cite {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-3);
}

.pullquote cite::before {
    content: "— ";
    color: var(--accent);
}

/* inline figure */
.body-fig {
    margin: 36px 0;
}

.body-fig img {
    width: 100%;
    border-radius: var(--radius-m);
}

.body-fig figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.5;
    padding-left: 2px;
    border-left: 2px solid var(--line-strong);
    padding-left: 12px;
}

/* data callout inside body */
.callout {
    margin: 34px 0;
    background: var(--ink);
    color: var(--hero-ink);
    border-radius: var(--radius-m);
    padding: 26px 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

html[data-theme="dark"] .callout {
    background: #07080a;
    border: 1px solid var(--line);
}

.callout .co-item {
    text-align: center;
    padding: 4px 10px;
}

.callout .co-item+.co-item {
    border-left: 1px solid rgba(255, 255, 255, .12);
}

.callout .co-v {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.callout .co-v em {
    color: var(--accent);
    font-style: normal;
    font-size: 18px;
}

.callout .co-k {
    margin-top: 9px;
    font-size: 12.5px;
    color: rgba(245, 244, 241, .6);
    font-weight: 600;
}

/* ---------- tags ---------- */
.art-tags {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.art-tags .t-lab {
    font-size: 12px;
    font-weight: 800;
    color: var(--ink-3);
    margin-right: 4px;
}

.art-tags a {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    padding: 7px 14px;
    border-radius: 100px;
    background: var(--surface-2);
    white-space: nowrap;
    transition: all .15s;
}

.art-tags a:hover {
    background: var(--accent);
    color: #fff;
}

/* ---------- reactions ---------- */
.reactions {
    margin-top: 34px;
    padding: 26px;
    border-radius: var(--radius-m);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.reactions .rx-q {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

.reactions .rx-btns {
    display: flex;
    gap: 10px;
}

.rx-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 100px;
    white-space: nowrap;
    border: 1.5px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 700;
    transition: all .15s;
}

.rx-pill svg {
    width: 18px;
    height: 18px;
}

.rx-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.rx-pill .c {
    font-variant-numeric: tabular-nums;
    color: var(--ink-3);
}

.rx-pill.on {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.rx-pill.on .c {
    color: var(--accent);
}

/* ============================================================
   REPORTER CARD (bottom)
   ============================================================ */
.reporter-card {
    margin-top: 44px;
    background: var(--surface-2);
    border-radius: var(--radius-l);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.reporter-card::before {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}

.rc-top {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    position: relative;
}

.rc-ava {
    width: 84px;
    height: 84px;
    border-radius: 100px;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-sm);
}

.rc-id {
    flex: 1;
    min-width: 0;
}

.rc-id .rc-eyebrow {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .05em;
    color: var(--accent);
}

.rc-id .rc-name {
    margin-top: 6px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.rc-id .rc-name .en {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-4);
}

.rc-id .rc-role {
    margin-top: 5px;
    font-size: 13.5px;
    color: var(--ink-3);
    font-weight: 600;
}

.rc-follow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 20px;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transition: all .15s;
    white-space: nowrap;
}

.rc-follow svg {
    width: 16px;
    height: 16px;
}

.rc-follow:hover {
    background: var(--accent-press);
}

.rc-follow.on {
    background: var(--surface);
    color: var(--ink);
    border: 1.5px solid var(--line-strong);
}

.rc-bio {
    margin-top: 18px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-2);
    position: relative;
    text-wrap: pretty;
}

.rc-contact {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.rc-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
    transition: color .15s;
}

.rc-contact a:hover {
    color: var(--accent);
}

.rc-contact a svg {
    width: 15px;
    height: 15px;
}

.rc-recent {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    position: relative;
}

.rc-recent .rr-lab {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.rc-recent ul {
    display: flex;
    flex-direction: column;
}

.rc-recent li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-2);
    transition: color .15s;
}

.rc-recent li:first-child a {
    border-top: none;
}

.rc-recent li a:hover {
    color: var(--accent);
}

.rc-recent li a .rr-t {
    font-size: 11px;
    color: var(--ink-4);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    white-space: nowrap;
}

.rc-recent li a span.rr-title {
    flex: 1;
    min-width: 0;
    text-wrap: pretty;
}

/* ============================================================
   RELATED + COMMENTS
   ============================================================ */
.related {
    padding: 56px 0;
    border-top: 1px solid var(--line);
    margin-top: 56px;
    background: var(--bg-tint);
}

.rel-grid {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.rel-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.rel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.rel-card .rel-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--surface-2);
}

.rel-card .rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.rel-card:hover .rel-thumb img {
    transform: scale(1.05);
}

.rel-card .rel-body {
    padding: 18px 18px 20px;
}

.rel-card .cat-chip {
    margin-bottom: 10px;
}

.rel-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: pretty;
}

.rel-card .rel-meta {
    margin-top: 12px;
    font-size: 12px;
    color: var(--ink-4);
    font-variant-numeric: tabular-nums;
}

.comments {
    padding: 56px 0 72px;
}

.cm-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 8px;
}

.cm-head h2 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cm-head .cm-count {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.cm-box {
    margin: 22px 0 32px;
    display: flex;
    gap: 12px;
}

.cm-box .cm-ava {
    width: 42px;
    height: 42px;
    border-radius: 100px;
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

html[data-theme="dark"] .cm-box .cm-ava {
    background: var(--accent);
}

.cm-box .cm-field {
    flex: 1;
}

.cm-box textarea {
    width: 100%;
    min-height: 84px;
    border-radius: var(--radius-m);
    border: 1.5px solid var(--line-strong);
    background: var(--surface);
    padding: 14px 16px;
    font: inherit;
    font-size: 14.5px;
    color: var(--ink);
    resize: vertical;
}

.cm-box textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.cm-box .cm-submit {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.cm-box .cm-submit button {
    height: 42px;
    padding: 0 22px;
    border-radius: 100px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    transition: background .15s;
}

.cm-box .cm-submit button:hover {
    background: var(--accent-press);
}

.cm-item {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.cm-item .ci-ava {
    width: 42px;
    height: 42px;
    border-radius: 100px;
    background: var(--surface-2);
    color: var(--ink-2);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.cm-item .ci-body {
    flex: 1;
    min-width: 0;
}

.cm-item .ci-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
}

.cm-item .ci-head .ci-name {
    font-weight: 800;
    color: var(--ink);
}

.cm-item .ci-head .ci-time {
    color: var(--ink-4);
    font-size: 12px;
}

.cm-item .ci-text {
    margin-top: 7px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink);
    text-wrap: pretty;
}

.cm-item .ci-actions {
    margin-top: 10px;
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-3);
}

.cm-item .ci-actions button {
    color: var(--ink-3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .15s;
}

.cm-item .ci-actions button:hover {
    color: var(--accent);
}

.cm-item .ci-actions svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .art-layout {
        grid-template-columns: minmax(0, 720px);
    }

    .share-rail {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        flex-direction: row;
        justify-content: center;
        gap: 14px;
        padding: 12px;
        background: var(--surface);
        border-top: 1px solid var(--line);
        z-index: 60;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
    }

    .share-rail .sr-count {
        display: none;
    }

    .rel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .art-body {
        font-size: 16.5px;
    }

    .reporter-card {
        padding: 24px;
    }

    .rc-top {
        flex-wrap: wrap;
    }

    .rc-follow {
        order: 3;
    }

    .callout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .callout .co-item+.co-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-top: 16px;
    }

    .rel-grid {
        grid-template-columns: 1fr;
    }
}