/* Scam Map (/scam-radar/map/). Generated by tools/build-scam-map-page.py from Scam Finder's viewer
   (MIT, see tools/scam-radar/NOTICE.md). Do not edit: change the viewer or the theme in the generator. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.3100e775.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.34b9c504.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin.d80df8ff.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-ext.cfa9a397.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Layout: a survey sheet. Summary strip on top, the chart with its record card beside it, ledgers below. */
:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #e8ecf3;
  --line: #cfd6e2;
  --line-soft: #e2e7ef;
  --ink: #0f1726;
  --ink-2: #414d66;
  --ink-3: #68748d;
  --accent: #1f5fae;
  --accent-soft: #dce8f8;
  --critical: #d03b3b;
  --high: #ec835a;
  --medium: #fab219;
  --low: #8791a6;
  --font-sans:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:
    ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono',
    monospace;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b101a;
    --surface: #131a28;
    --surface-2: #1b2435;
    --line: #2c374d;
    --line-soft: #202a3d;
    --ink: #e9edf5;
    --ink-2: #aeb8cc;
    --ink-3: #8390a8;
    --accent: #72b3ff;
    --accent-soft: #1a2c47;
    --low: #77839b;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0b101a;
  --surface: #131a28;
  --surface-2: #1b2435;
  --line: #2c374d;
  --line-soft: #202a3d;
  --ink: #e9edf5;
  --ink-2: #aeb8cc;
  --ink-3: #8390a8;
  --accent: #72b3ff;
  --accent-soft: #1a2c47;
  --low: #77839b;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Layout rules below set display, so make sure the hidden attribute still wins */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 1320px;
  margin: 0 auto;
  padding-block: 24px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.93em;
  overflow-wrap: anywhere;
}

/* Masthead */
.masthead {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.stamp {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.target {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.target.plain {
  font-family: var(--font-sans);
}

.target-link {
  max-width: 100ch;
  font-size: 12px;
  color: var(--ink-3);
}

.lede {
  max-width: 72ch;
  font-size: 15px;
  color: var(--ink-2);
}

/* Lookup form (hosted page only) */
.lookup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 760px;
}

.lookup label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.lookup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lookup input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-mono);
}

.lookup button {
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.lookup button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.lookup button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.hint {
  font-size: 13px;
  color: var(--ink-3);
  min-height: 1.5em;
}

.hint.error {
  color: var(--ink);
}

/* Summary strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--surface);
  min-width: 0;
}

.stat-label {
  font-size: 12px;
  color: var(--ink-3);
}

.stat-value {
  font-size: 24px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.stat-note {
  font-size: 12px;
  color: var(--ink-2);
}

/* Risk marks: a shape as well as a colour, so level never depends on colour alone */
.mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
  vertical-align: baseline;
}

.mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Controls */
.board {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.segmented button {
  padding: 6px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
}

.segmented button + button {
  border-left: 1px solid var(--line);
}

.segmented button[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}

.field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  min-width: 0;
}

.field.grow {
  flex: 1 1 200px;
}

.field select,
.field input {
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field input {
  width: 100%;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}

.chip[aria-pressed='false'] {
  background: transparent;
  color: var(--ink-3);
  text-decoration: line-through;
}

.chip[aria-pressed='false'] .mark {
  opacity: 0.35;
}

.chip-count {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.focus-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 13px;
}

.focus-note button {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

/* Chart and record card */
.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 16px;
  align-items: start;
}

.chart {
  position: relative;
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

#map {
  display: block;
  width: 100%;
  height: min(72vh, 680px);
  min-height: 340px;
  touch-action: none;
  cursor: grab;
}

#map.dragging {
  cursor: grabbing;
}

#map.pointing {
  cursor: pointer;
}

.tooltip {
  position: absolute;
  z-index: 2;
  max-width: min(300px, 80%);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.18);
  font-size: 12px;
  pointer-events: none;
}

.tooltip strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tooltip span {
  display: block;
  color: var(--ink-2);
}

.zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.zoom button {
  min-width: 34px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
}

.zoom button + button {
  border-top: 1px solid var(--line);
}

.zoom #zoom-fit,
.zoom #spin {
  font-size: 11px;
}

.zoom #spin[aria-pressed='true'] {
  background: var(--accent-soft);
  font-weight: 600;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 8px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-2);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-hint {
  margin-left: auto;
  color: var(--ink-3);
}

.record {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-height: calc(min(72vh, 680px) + 38px);
  overflow-y: auto;
  padding: 14px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.record-kicker {
  font-size: 12px;
  color: var(--ink-3);
}

.record h3 {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.record h3.plain {
  font-family: var(--font-sans);
}

.score {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.score-number {
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
}

.score-of {
  color: var(--ink-3);
  font-size: 13px;
}

.record-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.record-block h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.record-title {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.reasons,
.plain-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reasons li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

/* Three ticks: how much one reason weighs in the score */
.weight {
  display: inline-flex;
  gap: 2px;
  padding-top: 6px;
}

.weight i {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--line);
}

.weight i.on {
  background: var(--ink-2);
}

.reason-detail {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

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

.facts dt {
  color: var(--ink-3);
  font-size: 13px;
}

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

.record a,
.ledger a {
  color: var(--accent);
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.quiet {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
  cursor: pointer;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0 0;
  padding: 0 0 0 10px;
  border-left: 2px solid var(--line);
  list-style: none;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.timeline .when {
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

/* Ledgers */
.ledger {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
}

.ledger h2 {
  font-size: 16px;
  font-weight: 650;
}

.ledger-note {
  color: var(--ink-3);
  font-size: 13px;
  flex: 1 1 auto;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 7px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  position: sticky;
  top: 0;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
}

th button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

th[aria-sort='ascending'] button::after {
  content: ' ↑';
}

th[aria-sort='descending'] button::after {
  content: ' ↓';
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

td.lure {
  min-width: 180px;
  max-width: 380px;
  overflow-wrap: anywhere;
}

tbody tr.selectable {
  cursor: pointer;
}

tbody tr.selectable:hover,
tbody tr.current {
  background: var(--accent-soft);
}

.more {
  align-self: flex-start;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.links button[aria-pressed='true'] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.link-kind {
  font-size: 12px;
  color: var(--ink-3);
}

.link-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.link-count {
  font-size: 12px;
  color: var(--ink-2);
}

.notes {
  max-width: 86ch;
  color: var(--ink-2);
  font-size: 13px;
}

.notes ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.notes p + p {
  margin-top: 8px;
}

@media (max-width: 900px) {
  #map {
    height: min(62vh, 520px);
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat {
    padding: 10px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label,
  .stat-note {
    font-size: 11px;
  }

  /* The drawing is round, so on a phone the chart only needs to be about as tall as it is wide */
  #map {
    height: min(96vw, 62vh);
  }
}

@media (max-width: 900px) {
  .board-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .record {
    max-height: none;
  }

  .legend-hint {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* ---- CorX Labs: this site's fonts and colours over the viewer's own. Generated; edit tools/build-scam-map-page.py ---- */
:root {
  --bg: #f4f2ec; --surface: #faf9f5; --surface-2: #edeae1; --line: rgba(33, 26, 19, .20); --line-soft: rgba(33, 26, 19, .11);
  --ink: #100c08; --ink-2: #4a4036; --ink-3: #6d6357; --accent: #3d3025; --accent-soft: #e6e0d4;
  --critical: #b3321e; --high: #c96a1b; --medium: #b08a1a; --low: #8a8073;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #14100c; --surface: #1c1712; --surface-2: #261f18; --line: rgba(242, 238, 230, .22); --line-soft: rgba(242, 238, 230, .12);
    --ink: #fffdf8; --ink-2: #cfc6b8; --ink-3: #a89c8c; --accent: #d8c9b6; --accent-soft: #33291f;
    --critical: #f0907c; --high: #e7a866; --medium: #d6c377; --low: #8a7f70;
  }
}
.cx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 1320px; margin: 0 auto;
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); font-size: 14px; color: var(--ink-3); }
.cx-bar a { color: var(--ink-2); text-decoration: none; }
.cx-bar a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cx-bar .cx-brand { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--ink); }
.cx-bar [aria-current] { color: var(--ink); }
.cx-skip { position: absolute; left: -9999px; }
.cx-skip:focus { left: 16px; top: 12px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.cx-note { max-width: 1320px; margin: 0 auto; padding: 0 16px 40px; font-size: 13px; color: var(--ink-3); }
.cx-note a { color: var(--ink-2); }
