/* blockchainfraud.org house layer (2026-11-01). The UnyKorn house look as served on flashrouter.io and
   genesis402.com: light only, ink, one orange accent, silver hairlines, Archivo display, IBM Plex Sans body,
   IBM Plex Mono figures. Loaded after each page's own stylesheet; it re-points the legacy variables so the
   older pages render in the house palette, and it defines the shared header, navigation and footer. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.bunny.net/archivo/files/archivo-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url(https://fonts.bunny.net/archivo/files/archivo-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.bunny.net/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(https://fonts.bunny.net/ibm-plex-sans/files/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(https://fonts.bunny.net/ibm-plex-sans/files/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(https://fonts.bunny.net/ibm-plex-mono/files/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(https://fonts.bunny.net/ibm-plex-mono/files/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

/* 1. Tokens: house values, and the legacy names re-pointed. Dark mode is off: both selectors get the light set. */
:root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
  color-scheme: light;
  --uny-ink: #0e1621; --uny-ink2: #26324a; --uny-muted: #56637a; --uny-muted2: #5b6573; --uny-orange: #d9631f;
  --uny-silver: #b7bbbe; --uny-silver-lo: #7f8386; --uny-ok: #128a66; --uny-warn: #b7791f; --uny-bad: #c9362f;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f7f9fb; --sunk: #f7f9fb;
  --ink: #0e1621; --ink-2: #26324a; --muted: #56637a; --faint: #7f8386;
  --line: rgba(14, 22, 33, 0.1); --line-2: #b7bbbe;
  --graphite: #0e1621; --burgundy: #26324a;
  --red: #d9631f; --red-soft: #fbeee4; --amber: #b7791f; --amber-soft: #fbf3e4; --teal: #128a66; --teal-soft: #e4f3ed; --none: #7f8386;
  --shadow-sm: 0 1px 2px rgba(14, 22, 33, 0.05); --shadow: 0 2px 6px rgba(14, 22, 33, 0.05), 0 14px 40px rgba(14, 22, 33, 0.08); --shadow-lg: 0 8px 50px rgba(14, 22, 33, 0.14);
  --r-card: 8px; --r-panel: 6px; --r-pill: 6px;
  --serif: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1120px;
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .card h3, .gen h2, article h2, .cta h3 { font-family: var(--serif) !important; font-weight: 800 !important; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem) !important; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem) !important; }
a { color: var(--ink-2); text-decoration-color: var(--line-2); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--ink); }
code { font-family: var(--mono); }
.h-accent { color: var(--red); font-style: normal; }
.h-kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
.h-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.h-section { padding: 3.6rem 0; border-top: 1px solid var(--line); }
.h-section.tight { padding: 2.2rem 0; }
.h-section.alt { background: var(--surface-2); }
.h-lede { font-size: 1.1rem; color: var(--muted); max-width: 64ch; }
.h-muted { color: var(--muted); }
.h-small { font-size: 0.86rem; }

/* 2. Header and navigation: five items, one call to action, the help line, a thumb-sized menu on phones. */
header.h-header, .h-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.h-header .bar, .h-header .h-bar { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.h-brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); min-width: 0; }
.h-brand .h-mark { width: 30px; height: 30px; flex: none; }
.h-brand b { font-family: var(--serif); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; display: block; line-height: 1.05; white-space: nowrap; }
.h-brand b span { color: var(--red); }
.h-brand i { font-style: normal; font-family: var(--mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; display: block; line-height: 1.2; }
.h-nav { display: flex; align-items: center; gap: 1.3rem; }
.h-nav a { color: var(--muted); font-size: 0.93rem; text-decoration: none; white-space: nowrap; }
.h-nav a:hover, .h-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.35em; }
.h-nav a.h-cta { background: var(--red); color: #fff; padding: 0.55rem 0.95rem; border-radius: 6px; font-weight: 600; }
.h-nav a.h-cta:hover { text-decoration: underline; text-decoration-color: #fff; color: #fff; }
.h-nav a.h-tel { font-family: var(--mono); font-size: 0.8rem; }
.h-menu { display: none; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 6px; padding: 0.5rem 0.7rem; font: inherit; font-size: 0.9rem; min-height: 44px; min-width: 44px; cursor: pointer; }
@media (max-width: 900px) {
  .h-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.4rem 1.25rem 1rem; box-shadow: var(--shadow); }
  .h-nav.open { display: flex; }
  .h-nav a { padding: 0.8rem 0; font-size: 1.02rem; border-bottom: 1px solid var(--line); min-height: 44px; display: flex; align-items: center; }
  .h-nav a:last-child { border-bottom: 0; }
  .h-nav a.h-cta { margin-top: 0.6rem; justify-content: center; border-bottom: 0; }
  .h-menu { display: inline-flex; align-items: center; justify-content: center; }
  .h-brand i { display: none; }
}

/* 3. Shared components on the rebuilt pages */
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; padding: 0.65rem 1.1rem; border-radius: 6px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); cursor: pointer; font-family: inherit; font-size: 0.95rem; text-decoration: none; }
.h-btn:hover { border-color: var(--ink); text-decoration: none; }
.h-btn.primary { background: var(--red); color: #fff; border-color: var(--red); }
.h-btn.primary:hover { text-decoration: underline; text-decoration-color: #fff; }
.h-arrow { color: var(--red); }
.h-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 860px) { .h-cards { grid-template-columns: 1fr; } }
.h-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem 1.3rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.h-card h3 { margin: 0; font-size: 1.15rem; }
.h-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.h-card .h-foot { margin-top: auto; padding-top: 0.6rem; }
.h-card .h-n { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.h-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.h-rows li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 56px; }
.h-rows li a:hover h3 { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.3em; }
.h-rows h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.h-rows p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.h-rows .h-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; display: block; margin-bottom: 0.25rem; }
.h-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.h-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.h-pill.live::before { background: var(--teal); }
.h-pill.warn::before { background: var(--amber); }
.h-stat { display: grid; gap: 0.15rem; padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; min-width: 0; }
.h-stat .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.h-stat .v { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.h-stat .s { color: var(--muted); font-size: 0.8rem; }
.h-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
@media (max-width: 860px) { .h-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.h-callout { border-left: 2px solid var(--red); background: var(--surface-2); padding: 1rem 1.2rem; border-radius: 0 6px 6px 0; }
.h-callout p:last-child { margin-bottom: 0; }
.h-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.h-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.h-table th, .h-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.h-table th { color: var(--muted); font-weight: 600; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; background: var(--surface-2); }
.h-table tr:last-child td { border-bottom: 0; }
.h-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.h-feed li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.95rem 1.1rem; display: grid; gap: 0.3rem; min-width: 0; }
.h-feed .h-meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 0.8rem; flex-wrap: wrap; }
.h-feed h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.h-feed h3 a { color: var(--ink); text-decoration: none; }
.h-feed h3 a:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
.h-feed p { margin: 0; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.h-feed .empty { color: var(--muted); font-style: italic; }

/* 4. Footer */
.h-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 2.4rem 0 2.6rem; color: var(--muted); font-size: 0.88rem; }
.h-footer .h-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.6rem; }
@media (max-width: 860px) { .h-footer .h-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .h-footer .h-cols { grid-template-columns: 1fr; } }
.h-footer h4 { margin: 0 0 0.5rem; color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.h-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.h-footer a { color: var(--muted); }
.h-footer a:hover { color: var(--ink); }
.h-footer .h-perimeter { border-top: 1px solid var(--line); padding-top: 1.2rem; max-width: 96ch; line-height: 1.55; font-size: 0.82rem; }
.h-footer .h-perimeter strong { color: var(--ink); }

/* 5. Legacy pages: soften their rounded cards and pills to the house radius and hide old dark-mode leftovers */
.card, .gen, .cta, .tldr, .linkbox { border-radius: 8px !important; }
.btn, input[type=text] { border-radius: 6px !important; }
.cta { background: var(--ink) !important; }
header:not(.h-header) .wm-row .b { color: var(--ink); }
header:not(.h-header) nav.links a.cta { background: var(--red) !important; color: #fff !important; }
img, svg, video { max-width: 100%; }
* { min-width: 0; }
body { overflow-x: hidden; }

/* 6. Legacy headers on phones: the old pages hid every link but the call to action below 720 px and had no
   menu button; show the five links as a wrapped row under the wordmark instead. */
@media (max-width: 720px) {
  header:not(.h-header) .bar { height: auto !important; flex-wrap: wrap; padding: 8px 0 6px; gap: 2px 16px; }
  header:not(.h-header) nav.links { width: 100%; display: flex !important; flex-wrap: wrap; gap: 4px 14px; }
  header:not(.h-header) nav.links a { display: inline-flex !important; align-items: center; font-size: 14px; padding: 6px 0; min-height: 34px; }
  header:not(.h-header) nav.links a.cta { padding: 6px 10px !important; font-size: 13px; }
  header:not(.h-header) .wm-sub { display: none; }
}
