/* Fact checks on statement text (fact-check.js). Green for the true side, red
   for the false side, grey where it isn't known; stronger for surer verdicts. */
:where(.st-text .fc, .fc-pill) { --fc: #e4e2df; --fc-line: #a39c94; }
[data-fc-v="true"] { --fc: #a9dcb8; --fc-line: #2f7d4a; }
[data-fc-v="mostly_true"] { --fc: #c9ead2; --fc-line: #3f8f5a; }
[data-fc-v="partly_true"] { --fc: #e3f4e7; --fc-line: #6aa97f; }
[data-fc-v="not_known"], [data-fc-v="opinion"], [data-fc-v="mixed"] { --fc: #e4e2df; --fc-line: #8f8780; }
[data-fc-v="partly_false"] { --fc: #f9e1e1; --fc-line: #c47a7a; }
[data-fc-v="mostly_false"] { --fc: #f3c4c4; --fc-line: #b04a4a; }
[data-fc-v="false"] { --fc: #eaa1a1; --fc-line: #962f2f; }

/* The marks. */
.st-text .fc { background: var(--fc); border-bottom: 2px solid var(--fc-line); border-radius: 2px; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.st-text .fc.fc-many { border-bottom-width: 4px; }
.st-text .fc.on, .st-text .fc:focus-visible { outline: 2px solid var(--fc-line); outline-offset: 1px; }

.fc-pill { display: inline-block; background: var(--fc); border: 1px solid var(--fc-line); color: #1d1a17; font: 700 12.5px/1.5 var(--font-sans); padding: 0 8px; border-radius: 999px; white-space: nowrap; }

/* The tag that follows the pointer. */
.fc-tag { position: absolute; z-index: 410; max-width: min(360px, calc(100vw - 16px)); background: var(--wsj-nav, #352a21); color: #f5f1eb; font: 500 14px/1.4 var(--font-sans); padding: 8px 10px; border-radius: 6px; box-shadow: 0 6px 18px rgba(26, 20, 15, .25); pointer-events: none; }
.fc-tag[hidden] { display: none; }
.fc-tag-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fc-tag-part { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-family: var(--font-serif); font-style: italic; }
.fc-tag-part .fc-pill { font-style: normal; }
.fc-tag-more { margin-top: 6px; font-size: 12.5px; color: rgba(245, 241, 235, .75); }

/* The full check, in the side panel. */
.fcp { max-width: 680px; font: 400 16px/1.55 var(--font-sans); color: var(--text, #1a1a1a); }
.fcp p { margin: 0 0 10px; }
.fcp h4 { margin: 18px 0 6px; font: 700 12.5px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #6b635b); }
.fcp-head { padding-bottom: 16px; border-bottom: 1px solid var(--wsj-border, #d8d2ca); }
.fcp-verdict .fc-pill { font-size: 15px; padding: 2px 12px; }
.fcp-sum { margin-top: 12px !important; font: 400 19px/1.45 var(--font-serif); }
.fcp-asof { color: var(--muted, #6b635b); }
.fcp-part { margin-top: 22px; padding: 16px 18px; background: #fff; border: 1px solid var(--wsj-border, #d8d2ca); border-radius: 8px; }
.fcp-part.on { box-shadow: 0 0 0 2px #c9ead2; }
.fcp-part-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fcp-n { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #6b635b); }
.fcp-said { margin: 10px 0 4px !important; font: italic 400 20px/1.4 var(--font-serif); }
/* A finding and an assumption share one card (.fcp-box): a tag, the
   statement in bold, any explanation, then its sources behind one toggle. */
.fcp-box { margin: 10px 0 0; padding: 14px 16px; background: #fff; border: 1px solid var(--wsj-border, #d8d2ca); border-radius: 6px; }
.fcp-box + .fcp-box { margin-top: 14px; }
.fcp-box-label { margin: 0 0 8px !important; font: 700 12.5px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #6b635b); }
.fcp-box-head { display: flex; align-items: flex-start; gap: 10px; }
.fcp-box-head > p { font-weight: 600; }
.fcp-box-head .fc-pill, .fcp-astatus { flex: none; margin-top: 2px; }
.fcp-astatus { padding: 1px 8px; border-radius: 4px; font-size: 14px; font-weight: 700; background: #e4e2df; }
.fcp-astatus[data-status="holds"] { background: #c9ead2; }
.fcp-astatus[data-status="fails"] { background: #f3c4c4; }
.fcp-srcs { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--wsj-border, #d8d2ca); }
.fcp-srcs summary { cursor: pointer; font-weight: 600; color: var(--accent, #80652a); }
.fcp-srcs summary:hover { text-decoration: underline; }
.fcp-srcs[open] summary { margin-bottom: 14px; }
/* A source, quoted or computed, in the same type. */
.fcp-card { margin: 0 0 12px; padding: 14px 16px; background: var(--bg, #f7f5f2); border-left: 3px solid #b9b1a6; border-radius: 0 6px 6px 0; }
.fcp-card p { margin: 0 0 6px; }
.fcp-quote { font-weight: 600; }
.fcp-line { color: var(--muted, #6b635b); }
.fcp-line a { color: var(--accent, #80652a); font-weight: 600; text-decoration: none; }
.fcp-line a:hover { text-decoration: underline; }
