/* Scam library pages. Loaded after ../legal.css, which supplies tokens, header, footer and type. */
:root { --bad: #C7432F; --warn: #A76A08; --ok: #2E7D58; --tint: rgba(62,79,214,.08); }
@media (prefers-color-scheme: dark) { :root { --bad: #F07462; --warn: #E2AE4A; --ok: #4FBF88; --tint: rgba(140,151,255,.12); } }

main.scam { max-width: 820px; }
.draft { background: #FFF4D6; color: #5A4300; border: 1px solid #E8C66A; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin: 0 0 28px; }
@media (prefers-color-scheme: dark) { .draft { background: #3A2E0B; color: #F2DFA6; border-color: #6B5512; } }

.oneline { font-size: 21px; line-height: 1.45; margin: 0 0 24px; max-width: 62ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 36px; }
.facts div { background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.facts dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 15.5px; }
.facts .count dd { font-weight: 600; }

ol.how { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0; }
ol.how li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); max-width: none; margin: 0; }
ol.how li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 13px; color: var(--accent); padding-top: 3px; }
ol.how li:last-child { border-bottom: 1px solid var(--line); }

ul.flags { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.flags li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin: 0; max-width: none; }
ul.flags li::before { content: "!"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); margin-top: 2px; }

.example { background: var(--tint); border-radius: 14px; padding: 18px 22px; margin: 8px 0; }
.example p { margin: 0 0 8px; } .example p:last-child { margin: 0; }
.example .label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

ol.now { padding-left: 22px; }
.report { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 12px 0; }
.report table { min-width: 520px; }

.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0 12px; }
@media (max-width: 600px) { .cta { grid-template-columns: 1fr; } }
.cta a, .cta span { display: grid; gap: 4px; padding: 18px 20px; border-radius: 14px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.cta a.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .cta a.primary { color: #0B1317; } }
.cta b { font-size: 17px; } .cta small { font-size: 14px; opacity: .8; }
.cta span { color: var(--muted); }
.reply { font-size: 14px; color: var(--muted); }

/* library index */
.cards { display: grid; gap: 14px; margin-top: 24px; }
.card { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--fg); }
.card:hover { border-color: var(--accent); }
.card .t { font-size: 19px; font-weight: 600; }
.card .m { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
