/* KillDupe skin v3: Bustem-style colour system, improved.
   Learned from bustem.com (2026-10-08): off-white page #F9F9F9, white 24px cards,
   black gradient buttons, floating white pill nav, pale-blue highlight chip with
   navy text, navy check circles, one blue for links, red only for alerts.
   Improvements: AA-contrast cobalt for links (theirs #296CF0 is 4.4:1 on white),
   hairline card borders, one job per colour, and a real dark mode.
   Our storytelling, mark and case-file mono labels are unchanged.
   Earlier skins: killdupe-mono.css (v2), killdupe-teal.css (v1). */
:root {
  --bg: #F9F9F9;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --surface-3: #E9EBEF;
  --ink: #0A0A0A;
  --ink-2: #333E5A;              /* Bustem's slate navy, for secondary text */
  --muted: #5F6779;
  --line: #E8E9EC;
  --line-strong: #D3D6DD;

  --accent: #0A0A0A;             /* primary actions stay black, like Bustem */
  --accent-ink: #FFFFFF;
  --accent-soft: #EFF4FF;        /* pale blue tint */
  --accent-deep: #000000;

  --blue: #1D4ED8;               /* links and proof highlights. 6.7:1 on white */
  --navy: #172554;               /* checks, cleaned, highlight text */
  --chip: #EAF1FF;               /* headline highlight chip */
  --swipe: #C9D8FF;

  --ok: #172554;
  --ok-soft: #E6ECFA;
  --warn: #5F6779;
  --warn-soft: #F1F2F5;
  --bad: #DC2626;                /* live dupes and money at risk only */
  --bad-soft: #FDECEC;

  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -14px rgba(16, 24, 40, .14);
  --redact: #0A0A0A;
  --btn-grad: linear-gradient(#323232, #0A0A0A);

  --f-body: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090B10; --surface: #11141B; --surface-2: #171B24; --surface-3: #1F2430;
    --ink: #F4F6FA; --ink-2: #B8C0D4; --muted: #8790A6; --line: #232836; --line-strong: #323949;
    --accent: #F4F6FA; --accent-ink: #0A0A0A; --accent-soft: #141C33; --accent-deep: #FFFFFF;
    --blue: #7FA2FF; --navy: #A9BFFF; --chip: #18244A; --swipe: #2A3C78;
    --ok: #A9BFFF; --ok-soft: #141C33; --warn: #8790A6; --warn-soft: #171B24; --bad: #FF5A5A; --bad-soft: #2A1416;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px -16px rgba(0,0,0,.7); --redact: #F4F6FA;
    --btn-grad: linear-gradient(#FFFFFF, #E4E7EE);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090B10; --surface: #11141B; --surface-2: #171B24; --surface-3: #1F2430;
  --ink: #F4F6FA; --ink-2: #B8C0D4; --muted: #8790A6; --line: #232836; --line-strong: #323949;
  --accent: #F4F6FA; --accent-ink: #0A0A0A; --accent-soft: #141C33; --accent-deep: #FFFFFF;
  --blue: #7FA2FF; --navy: #A9BFFF; --chip: #18244A; --swipe: #2A3C78;
  --ok: #A9BFFF; --ok-soft: #141C33; --warn: #8790A6; --warn-soft: #171B24; --bad: #FF5A5A; --bad-soft: #2A1416;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px -16px rgba(0,0,0,.7); --redact: #F4F6FA;
  --btn-grad: linear-gradient(#FFFFFF, #E4E7EE);
  color-scheme: dark;
}

body { font-size: 16px; line-height: 1.6; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, h4 { letter-spacing: -0.035em; }
.display { font-weight: 600; letter-spacing: -0.04em; }
a { color: var(--blue); }

/* Case-file labels (ours, from Keeper): mono, uppercase, quiet */
.eyebrow, .act-no {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* Floating pill nav (Bustem pattern), with our mark */
.km-top { background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 10px; }
.km-top .wrap { background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  min-height: 54px; padding-inline: 14px; max-width: calc(1240px - 24px); }
@media (max-width: 720px) { .km-top { padding-top: 6px; } .km-top .wrap { margin-inline: 10px; } }
.km-journey a { border-radius: 10px; }
.km-journey a[aria-current="page"] { background: var(--btn-grad); color: var(--accent-ink); }
.km-journey a[aria-current="page"] span { color: color-mix(in srgb, var(--accent-ink) 60%, transparent); }
.km-theme { border-radius: 10px; }

/* Buttons: Bustem's black gradient, plus a hairline top highlight */
.btn { border-radius: 12px; }
.btn-sm { border-radius: 10px; }
.btn-primary, .btn-ink, .btn.pri, .mk-btn.acc, .paybtn {
  background: var(--btn-grad) !important; border-color: transparent !important; color: var(--accent-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(16,24,40,.12);
}
.btn-primary:hover, .btn-ink:hover, .btn.pri:hover { filter: brightness(1.12); }

/* Wordmark: original + dashed copy, then "Dupe" bold + "Cleaner" regular */
.dc-mark { --f-wordmark: "Schibsted Grotesk", "Geist", ui-sans-serif, system-ui, sans-serif; --dc-gap: 9px; display: inline-flex; align-items: center; gap: var(--dc-gap); color: var(--ink); text-decoration: none;
  font-family: var(--f-wordmark); font-size: 19px; letter-spacing: -0.04em; line-height: 1; }
.dc-mark svg { width: 22px; height: 22px; flex: none; }
.dc-mark b { font-weight: 700; }
.dc-mark span { font-weight: 400; }
.dc-mark b + span { margin-left: calc(-1 * var(--dc-gap)); }
.km-brand.dc-mark { --f-wordmark: "Schibsted Grotesk", "Geist", ui-sans-serif, system-ui, sans-serif; --dc-gap: 9px; gap: var(--dc-gap); }
.km-brand.dc-mark svg { width: 22px; height: 22px; color: var(--ink); }
.km-brand.dc-mark small { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; }

/* Highlight chip (Bustem pattern): pale blue box, navy text */
.swipe { color: var(--navy); padding: 0 .1em; border-radius: .16em;
  background: linear-gradient(transparent 14%, var(--chip) 14%, var(--chip) 94%, transparent 94%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wiped { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 1.5px; color: var(--muted); }

/* Cards: white on off-white, hairline border, soft shadow */
.card, .panel { border-color: var(--line); }

/* The hidden attribute always wins over component display rules (e.g. .btn inline-flex) */
[hidden] { display: none !important; }
