/* /tools/confirmed-scammers (src/pages/scams.js). Phone redesign, owner 7 Nov 2026 (mockup asicprofit-admin/preview/mobile-calcs/scam-report):
   a red header band ("red element in the header, not the H1"), two doors, verdict cards, the victim steps, a one-screen
   report form and the list as cards on a phone / a table on a wide column. Fields and buttons 48px, chips 44px. */
:root {
  --scm-red: #c8233f; --scm-red-btn: #c8233f; --scm-red-bg: #fff1f3; --scm-red-line: #f5c2cb; --scm-band1: #ffe3e8; --scm-crumb: #7a3a46;
  --scm-amber: #9a5a00; --scm-amber-bg: #fff8e6; --scm-amber-line: #f6d58b;
  --scm-navy: #13243a; --scm-navy-fg: #fff; --scm-ok: #166534; --scm-ok-bg: #ecfdf3; --scm-tap: 48px;
}
:root[data-theme="dark"] {
  --scm-red: #f87171; --scm-red-btn: #c42a43; --scm-red-bg: #2a1214; --scm-red-line: #5c2328; --scm-band1: #3b1418; --scm-crumb: #f0b4bd;
  --scm-amber: #fbbf24; --scm-amber-bg: #2b220d; --scm-amber-line: #5a4413;
  --scm-navy: #e8e6e1; --scm-navy-fg: #14161a; --scm-ok: #86efac; --scm-ok-bg: #0f2d1c;
}
.scm { padding-bottom: 32px; }
.scm :is(#pCheck, #pHelp, #report, #scListSec, #scDoors) { scroll-margin-top: calc(var(--hdr-h, 64px) + 12px); }
.scm-head, .scm-panel, .scm-sec { max-width: 920px; }

/* header band */
.scm-head { margin: 0 0 14px; padding: 0 20px 16px; background: linear-gradient(180deg, var(--scm-band1) 0%, var(--scm-red-bg) 100%); border-top: 4px solid var(--scm-red-btn); border-bottom: 1px solid var(--scm-red-line); border-radius: 0 0 16px 16px; }
.scm-head .crumbs { margin: 0; padding-top: 14px; color: var(--scm-crumb); }
.scm-flag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--scm-red-btn); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.scm-head h1 { margin: 8px 0 6px; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: hsl(var(--foreground)); }
.scm-lead { margin: 0 0 16px; max-width: 70ch; font-size: 16px; color: hsl(var(--foreground) / .85); }
.scm-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 560px; padding: 4px; border-radius: 14px; background: rgb(200 35 63 / .12); }
.scm-doors button { min-height: var(--scm-tap); padding: 6px 8px; border: 0; border-radius: 11px; background: none; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; color: hsl(var(--foreground)); }
.scm-doors button small { display: block; font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.scm-doors button[aria-selected="true"] { background: hsl(var(--card)); color: var(--scm-red); box-shadow: 0 1px 2px rgb(17 22 19 / .08), 0 2px 8px rgb(17 22 19 / .06); }
.scm-doors button[aria-selected="true"] small { color: var(--scm-crumb); }
.scm-doors button:focus-visible { outline: 3px solid var(--scm-red); outline-offset: 1px; }

/* cards, labels, fields, buttons */
.scm-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 16px; padding: 18px; }
.scm-card + .scm-card { margin-top: 12px; }
.scm-card h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; font-weight: 700; }
.scm-lbl { display: block; margin: 0 0 6px; font-weight: 600; font-size: 15px; }
.scm-hint { margin: 6px 0 0; font-size: 14px; color: hsl(var(--muted-foreground)); }
.scm-hint.scm-above { margin: 0 0 6px; }
.scm-replead { margin: 0 0 14px; max-width: 70ch; }
.scm-inp { display: block; width: 100%; min-height: var(--scm-tap); padding: 10px 14px; border: 1.5px solid hsl(var(--field-border)); border-radius: 12px; background: hsl(var(--card)); font-size: 16px; color: hsl(var(--foreground)); }
.scm-inp:focus { outline: 3px solid hsl(var(--primary) / .35); outline-offset: 1px; border-color: hsl(var(--primary)); }
textarea.scm-inp { min-height: 140px; resize: vertical; line-height: 1.45; }
.scm-inp[aria-invalid="true"] { border-color: var(--scm-red); background: var(--scm-red-bg); }
.scm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--scm-tap); padding: 0 20px; border: 1.5px solid var(--scm-navy); border-radius: 999px; background: var(--scm-navy); color: var(--scm-navy-fg); font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center; cursor: pointer; text-decoration: none; }
.scm-btn:hover { color: var(--scm-navy-fg); filter: brightness(1.08); }
.scm-btn.red { background: var(--scm-red-btn); border-color: var(--scm-red-btn); color: #fff; }
.scm-btn.red:hover { color: #fff; }
.scm-btn.ghost { background: hsl(var(--card)); color: hsl(var(--foreground)); border-color: hsl(var(--field-border)); }
.scm-btn.ghost:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); filter: none; }
.scm-btn.block { width: 100%; }
.scm-btn:focus-visible { outline: 3px solid hsl(var(--primary) / .5); outline-offset: 2px; }

/* the check and its verdict */
.scm-qrow { display: flex; gap: 8px; }
.scm-qrow .scm-inp { flex: 1; min-width: 0; }
.scm-qrow .scm-btn { flex: none; }
.scm-res { margin-top: 14px; padding: 14px; border: 1.5px solid; border-radius: 14px; }
.scm-res h2 { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 4px; font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.scm-res h2 svg { flex: none; margin-top: 2px; }
.scm-res p { margin: 0 0 10px; }
.scm-res.bad { background: var(--scm-red-bg); border-color: var(--scm-red-line); }
.scm-res.bad h2 { color: var(--scm-red); }
.scm-res.sus, .scm-res.miss { background: var(--scm-amber-bg); border-color: var(--scm-amber-line); }
.scm-res.sus h2, .scm-res.miss h2 { color: var(--scm-amber); }
.scm-kind { font-weight: 600; }
.scm-why { margin: 10px 0 12px; padding: 12px; border-radius: 12px; background: hsl(var(--card)); font-size: 15px; }
.scm-why > b { display: block; margin-bottom: 6px; }
.scm-why p { margin: 8px 0; }
.scm-why dl { margin: 8px 0 0; display: grid; gap: 4px; }
.scm-why dl div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.scm-why dt { font-size: 14px; color: hsl(var(--muted-foreground)); }
.scm-why dd { margin: 0; }
.scm-acts { display: grid; gap: 8px; }
.scm-chk { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 6px; }
.scm-chk label { display: flex; gap: 12px; align-items: flex-start; min-height: var(--scm-tap); padding: 12px; border-radius: 12px; background: hsl(var(--card)); font-size: 15px; line-height: 1.35; cursor: pointer; }
.scm-chk input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--scm-red-btn); }
.scm-verdict { margin: 0 0 12px !important; font-weight: 600; }
.scm-verdict.bad { color: var(--scm-red); }

/* "I was scammed": the steps and the report form */
.scm-steps { counter-reset: s; list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.scm-steps li { counter-increment: s; position: relative; padding-left: 42px; min-height: 32px; }
.scm-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--scm-navy); color: var(--scm-navy-fg); font-weight: 700; font-size: 15px; }
.scm-steps b { display: block; }
.scm-steps span { display: block; font-size: 15px; color: hsl(var(--foreground) / .82); }
.scm-warnbox { margin: 14px 0 0; padding: 12px; border: 1px solid var(--scm-red-line); border-radius: 12px; background: var(--scm-red-bg); font-size: 15px; }
.scm-f { margin: 0 0 16px; }
.scm-f.scm-last { margin: 0; }
.scm-opt { font-weight: 400; color: hsl(var(--muted-foreground)); }
.scm-count { margin-top: 4px; font-size: 13px; text-align: right; color: hsl(var(--muted-foreground)); }
.scm-count.ok { color: var(--scm-ok); }
.scm-err { margin: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--scm-red); }
.scm-stat { margin: 6px 0 0; font-size: 14px; font-weight: 500; }
.scm-stat:empty { display: none; }
.scm-stat.bad { color: var(--scm-red); }
.scm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scm-chips.scm-unit { margin-top: 8px; }
.scm-chips label { position: relative; }
.scm-chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.scm-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid hsl(var(--border)); border-radius: 999px; background: hsl(var(--card)); font-size: 15px; cursor: pointer; }
.scm-chips input:checked + span { background: var(--scm-navy); border-color: var(--scm-navy); color: var(--scm-navy-fg); }
.scm-chips input:focus-visible + span { outline: 3px solid hsl(var(--primary) / .5); outline-offset: 1px; }
.scm-md { margin: 0 0 16px; border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--muted) / .5); }
.scm-md > summary { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 10px 44px 10px 14px; list-style: none; cursor: pointer; }
.scm-md > summary::-webkit-details-marker { display: none; }
.scm-md > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 24px; line-height: 1; color: hsl(var(--muted-foreground)); }
.scm-md[open] > summary::after { content: "\2212"; }
.scm-mdt { font-weight: 600; }
.scm-mds { font-size: 14px; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.scm-mdb { padding: 4px 14px 16px; }
.scm-next { margin: 0 0 14px; padding: 12px; border-radius: 12px; background: var(--scm-ok-bg); font-size: 15px; }
.scm-next b { display: block; color: var(--scm-ok); }
.scm-rf .cf-turnstile { margin: 0 0 14px; }
.scm-done { padding: 12px 4px; text-align: center; color: hsl(var(--foreground)); }
.scm-done svg { display: block; margin: 0 auto 8px; color: var(--scm-ok); }
.scm-done p { margin: 0 0 6px; }
.scm-done:focus { outline: none; }

/* the list */
.scm-sec { margin-top: 32px; }
.scm-sec > h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.scm-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 10px; }
.scm-types { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.scm-types::-webkit-scrollbar { display: none; }
.scm-types button { flex: none; min-height: 44px; padding: 0 14px; border: 1.5px solid hsl(var(--border)); border-radius: 999px; background: hsl(var(--card)); font-size: 15px; font-weight: 500; cursor: pointer; color: hsl(var(--foreground)); }
.scm-types button small { font-size: 13px; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.scm-types button[aria-pressed="true"] { background: var(--scm-navy); border-color: var(--scm-navy); color: var(--scm-navy-fg); }
.scm-types button[aria-pressed="true"] small { color: inherit; opacity: .8; }
.scm-sel { min-width: 0; min-height: 44px; padding: 0 10px; border: 1.5px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); font-size: 15px; color: hsl(var(--foreground)); }
.scm-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: 12px; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); }
.scm-seg button { min-height: 44px; padding: 0 4px; border: 0; border-radius: 9px; background: none; font-size: 15px; font-weight: 500; cursor: pointer; color: hsl(var(--foreground)); }
.scm-seg button[aria-pressed="true"] { background: hsl(var(--card)); box-shadow: 0 1px 2px rgb(17 22 19 / .12); font-weight: 600; }
.scm-types button:focus-visible, .scm-seg button:focus-visible, .scm-sel:focus-visible { outline: 3px solid hsl(var(--primary) / .5); outline-offset: 1px; }
.scm-shown { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 28px; margin: 0 0 8px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.scm-clr { min-height: 44px; padding: 0 8px; border: 0; background: none; font-weight: 600; font-size: 14px; color: hsl(var(--foreground)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.scm-th { display: none; }
.scm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.scm-row details { border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); }
.scm-row summary { position: relative; display: grid; gap: 4px 6px; justify-items: start; min-height: 56px; padding: 12px 44px 12px 14px; list-style: none; cursor: pointer; }
.scm-row summary::-webkit-details-marker { display: none; }
.scm-row summary::after { content: ""; position: absolute; right: 18px; top: 20px; width: 8px; height: 8px; border-right: 2px solid hsl(var(--muted-foreground)); border-bottom: 2px solid hsl(var(--muted-foreground)); transform: rotate(45deg); transition: transform .15s ease-out; }
.scm-row details[open] summary::after { transform: rotate(-135deg); top: 24px; }
.scm-row summary:focus-visible { outline: 3px solid hsl(var(--primary) / .5); outline-offset: 1px; border-radius: 14px; }
.scm-d { font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.scm-t { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.scm-t-s, .scm-t-c { color: var(--scm-red); }
.scm-t-x { color: var(--scm-amber); }
.scm-r { display: flex; flex-wrap: wrap; gap: 6px; }
.scm-r:empty { display: none; }
.scm-r > span { padding: 3px 8px; border-radius: 8px; background: hsl(var(--muted)); font-size: 13px; line-height: 1.4; color: hsl(var(--foreground)); }
.scm-case { padding: 0 14px 6px; font-size: 15px; }
.scm-case p { margin: 0 0 8px; max-width: 70ch; line-height: 1.55; }
.scm-case dl { margin: 0 0 4px; display: grid; gap: 4px; }
.scm-case dl div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; }
.scm-case dt { padding-top: 1px; font-size: 14px; color: hsl(var(--muted-foreground)); }
.scm-case dd { margin: 0; }
.scm-disp { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: hsl(var(--muted-foreground)); text-decoration: underline; text-underline-offset: 3px; }
.scm-disp:hover { color: hsl(var(--foreground)); }
.scm-row.on details { border-color: var(--scm-red); box-shadow: 0 0 0 2px var(--scm-red-line); }
.scm-none { padding: 14px 4px; color: hsl(var(--muted-foreground)); }
.scm-more { margin-top: 10px; }
.scm-legend { display: grid; gap: 8px; margin: 16px 0 0; }
.scm-legend > div { padding: 12px; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); }
.scm-legend dt { margin-bottom: 2px; }
.scm-legend dd { margin: 0; font-size: 14.5px; color: hsl(var(--muted-foreground)); line-height: 1.5; }

/* how these scams work */
.scm-accg { display: grid; gap: 8px; }
.scm-acc details { border: 1px solid hsl(var(--border)); border-radius: 14px; background: hsl(var(--card)); }
.scm-acc summary { min-height: var(--scm-tap); padding: 12px 14px; font-weight: 600; cursor: pointer; }
.scm-acc details > div { padding: 0 14px 14px; font-size: 15px; }
.scm-acc details p { margin: 0; max-width: 70ch; }
.scm-acc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.scm-src { margin: 16px 0 0; font-size: 13.5px; color: hsl(var(--muted-foreground)); max-width: 75ch; }
@media (prefers-reduced-motion: reduce) { .scm-row summary::after { transition: none; } }

/* the list as a table and two-column cards once the column is wide enough (desktop, tablet) */
@container (min-width: 700px) {
  .scm-acts { grid-template-columns: max-content max-content; }
  .scm-filters { display: flex; flex-wrap: wrap; align-items: center; }
  .scm-types { flex: 1 1 100%; flex-wrap: wrap; overflow: visible; }
  .scm-sel { flex: 0 0 200px; }
  .scm-seg { flex: 0 0 250px; }
  .scm-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scm-accg { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .scm-th { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 8.5em; gap: 18px; padding: 0 44px 6px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--muted-foreground)); }
  .scm-row summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 8.5em; align-items: start; gap: 6px 18px; }
  .scm-row .scm-d { grid-column: 1; grid-row: 1; }
  .scm-row .scm-r { grid-column: 2; grid-row: 1; display: flex; }
  .scm-row .scm-t { grid-column: 3; grid-row: 1; }
  .scm-row summary:hover { background: hsl(var(--muted) / .5); border-radius: 14px; }
}
@media (min-width: 901px) { .scm-head h1 { font-size: 40px; } }
/* phones and tablets: the Knowledge Base panel goes under the tool, the tool comes first (mockup L1) */
@media (max-width: 900px) {
  .scm .hw-aside { order: 2; }
  .scm .hw-main { order: 1; }
}
@media (max-width: 640px) {
  .scm-head { margin: 0 -16px 14px; padding: 0 16px 14px; border-radius: 0; }
  .scm-head h1 { font-size: 30px; }
  .scm-card { padding: 16px; }
}
