/* just4nt.dev — site styles. No inline styles anywhere, so the CSP can stay strict. */

/* 1. COLORS: edit these to retheme the whole page */
:root {
  --bg: #fbfcfe; --ink: #1d2433; --mute: #5a6475; --line: #e6eaf0;
  --accent: #3a6ff7; --accent-ink: #2b5ad6; --card: #ffffff;
  color-scheme: light;
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lock, html:has(dialog.viewer[open]) { overflow: hidden; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(1200px 500px at 50% -120px, #eaf1ff, transparent), var(--bg);
  font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

/* 3. PROFILE HEADER */
main { max-width: 720px; margin: 0 auto; padding: 96px 24px 64px; text-align: center; }
/* Cursive "Just4nt" wordmark (justone4me, 30 Oct 2026 11:31 AM PT): self-hosted Yellowtail (Apache 2.0, google/fonts), subset to
   the glyphs of "Just4nt", first in the stack so every device shows the same mark; plain cursive generic as fallback. */
@font-face { font-family: "Just4nt Wordmark"; src: url("/assets/fonts/just4nt-wordmark.a43cd6a286.woff") format("woff"); font-style: normal; font-weight: 400; font-display: swap; }
.wordmark { font-family: "Just4nt Wordmark", cursive; font-style: normal; font-weight: 400; color: #2f57c8; letter-spacing: 0; text-decoration: none; }
.wm-hero { display: inline-block; margin: 0 0 18px; padding: 4px 8px; font-size: 64px; line-height: 1.25; }
a.wordmark:hover { color: var(--accent-ink); }
h1 { margin: 0 0 10px; font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.lead { margin: 0 auto 6px; max-width: 520px; color: var(--mute); font-size: 19px; }
.loc { margin: 0 0 28px; color: var(--mute); font-size: 15px; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: color .2s, border-color .2s, transform .2s;
}
.btn:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-1px); }

/* 4. PROJECTS */
section { margin-top: 88px; }
h2, h3 { margin: 0; font-weight: 600; text-transform: uppercase; }
h2 { margin-bottom: 36px; font-size: 13px; letter-spacing: .16em; color: var(--accent-ink); }
h3 { margin: 40px 0 18px; font-size: 12px; letter-spacing: .14em; color: var(--mute); }
h2 + p + h3 { margin-top: 0; }
.hint { margin: -24px 0 36px; color: var(--mute); font-size: 14px; }
/* 2-column grid. An odd last tile is centered, never left-aligned. */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; align-items: stretch; }
.grid > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 9px); }
.card {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-start;
  padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.shelved .card { background: #fdfdfe; }
.card:hover { border-color: #c9d6fb; box-shadow: 0 14px 30px -18px rgba(29, 36, 51, .3); }
.card .ct { display: block; margin: 0 28px 6px 0; font-size: 18px; font-weight: 600; }
.card .cp { display: block; margin: 0 0 12px; color: var(--mute); font-size: 15px; line-height: 1.55; }
.card .meta { display: block; margin-top: auto; color: var(--mute); font-size: 13px; }
.arrow { position: absolute; top: 24px; right: 20px; width: 16px; height: 16px; color: var(--mute); }
.card:hover .arrow { color: var(--accent); }

/* 4b. PROJECT PANEL (native <dialog>, about 2/3 of the window).
   Each project gets its own colours from a .t-SLUG class below. */
dialog.viewer {
  width: min(66vw, 1280px); height: 66vh; max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: var(--pbg, #0f172a); color: var(--pink, #fff);
  box-shadow: 0 40px 120px -30px rgba(15, 23, 42, .55);
}
dialog.viewer[open] { display: grid; grid-template-rows: auto 1fr; animation: grow .32s cubic-bezier(.2, .8, .2, 1); }
dialog.viewer::backdrop { background: rgba(240, 244, 250, .72); backdrop-filter: blur(6px); animation: fade .32s ease; }
@keyframes grow { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
.vh { display: flex; gap: 20px; align-items: flex-start; padding: 22px 26px 16px; }
.vh > div { flex: 1; min-width: 0; }
.vh h2 { margin: 0 0 4px; color: var(--pink); font-size: 22px; letter-spacing: -.01em; text-transform: none; }
.vh p { margin: 0; color: var(--pmute); font-size: 15px; line-height: 1.55; max-width: 72ch; }
.vmeta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--pmute); }
.vmeta a { color: var(--pacc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vclose {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--pink) 30%, transparent); border-radius: 50%;
  background: color-mix(in srgb, var(--pink) 10%, transparent); color: var(--pink);
}
.vclose:hover { background: color-mix(in srgb, var(--pink) 20%, transparent); }
.viewer :focus-visible { outline-color: var(--pacc); }
.vimg { min-height: 0; padding: 0 26px 26px; display: grid; grid-template-rows: minmax(0, 1fr); }
.vimg img { min-height: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; border-radius: 12px; background: rgba(0, 0, 0, .12); }

/* Per-project panel colours (taken from each product's own palette) */
.t-webindexer { --pbg: linear-gradient(160deg, #0b1b2e, #07111e 70%); --pink: #e6eef8; --pmute: #b6c6da; --pacc: #7dd3fc; }
.t-mac-updater { --pbg: linear-gradient(160deg, #1f2937, #0d1117 60%, #0b3b2e); --pink: #e6edf3; --pmute: #a8b3bf; --pacc: #3fb950; }
.t-reflection-health { --pbg: linear-gradient(135deg, #0f172a, #1e293b); --pink: #f8fafc; --pmute: #cbd5e1; --pacc: #38bdf8; }
.t-vmp { --pbg: linear-gradient(160deg, #151c26, #0f141b 70%); --pink: #dbe4ee; --pmute: #a9b8c9; --pacc: #3d9bff; }
/* weatherman: its dashboard's own palette (gray-900 / gray-800, blue-400) */
.t-weatherman { --pbg: linear-gradient(160deg, #1f2937, #111827 70%); --pink: #f3f4f6; --pmute: #c0c6cf; --pacc: #60a5fa; }
.t-gold-arbitrage { --pbg: radial-gradient(900px 500px at 80% 0, #3b2f0b, transparent), #0c0a07; --pink: #f5ecd7; --pmute: #cdbd96; --pacc: #f2c94c; }
.t-guard-suite { --pbg: linear-gradient(160deg, #1a1d24, #0f1115 70%); --pink: #e8eaed; --pmute: #b0b6bd; --pacc: #7c9cff; }
.t-hf-report { --pbg: linear-gradient(135deg, #ffd21e, #ff9d00); --pink: #1f2328; --pmute: #3d3420; --pacc: #6b3600; }

/* 4c. SUPPORT & REFERRALS (plain links; URLs live in build.py) */
.tip {
  display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.tip:hover { border-color: #c9d6fb; box-shadow: 0 14px 30px -18px rgba(29, 36, 51, .3); }
.tip .tt { display: flex; flex-direction: column; min-width: 0; }
.tip .ct { font-size: 18px; font-weight: 600; line-height: 1.3; }
.tip:hover .ct { color: var(--accent-ink); }
.tip .cp { color: var(--mute); font-size: 15px; line-height: 1.5; }
.tic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; }
.tic svg { width: 26px; height: 26px; }
.tic.bmc { background: #ffdd00; color: #1d2433; }   /* Buy Me a Coffee yellow; ink cup ~13:1 */
.tic.ghs { background: #fdf0f7; color: #bf3989; }   /* GitHub Sponsors pink; ~5:1 on the tint */
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.ref {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 48px; padding: 14px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
  transition: border-color .2s;
}
.ref:hover { border-color: var(--accent); }
.ref .rn { font-weight: 600; font-size: 16px; }
.ref:hover .rn { color: var(--accent-ink); }
.ref .rd { flex: 1; min-width: 12em; color: var(--mute); font-size: 15px; }
.ref .ext { width: 16px; height: 16px; color: var(--mute); }
.disc { margin: 14px 0 0; color: var(--mute); font-size: 13px; }

/* 5. FOOTER */
footer { margin-top: 88px; padding: 48px 24px 64px; border-top: 1px solid var(--line); text-align: center; color: var(--mute); font-size: 14px; }
footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
footer a:hover { color: var(--accent-ink); }

/* 404 page */
.nf { min-height: 70vh; display: grid; place-content: center; }
.nf .btn { margin: 24px auto 0; }

/* 5b. INDY LEGAL PAGES (/indy/privacy/, /indy/terms/; generated from src/indy/*.md) */
header.site { max-width: 820px; margin: 0 auto; padding: 22px 24px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; font-weight: 600; font-size: 16px; }
.brand .wordmark { font-size: 30px; line-height: 1.2; }
main.legal { max-width: 820px; padding: 40px 24px 24px; text-align: left; }
.legal .product { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 28px; }
.legal .pname { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.legal .pmark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; flex: none;
  background: #3f5b78; color: #fff; font-size: 20px; font-weight: 800;
}
.legal .pnav { display: flex; flex-wrap: wrap; gap: 8px; }
.legal .pnav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); text-decoration: none; font-size: 15px; font-weight: 500;
}
.legal .pnav a:hover { color: var(--accent-ink); border-color: var(--accent); }
.legal .pnav a[aria-current="page"] { background: #eaf1ff; border-color: #c9d6fb; color: #23479f; font-weight: 600; }
.legal .draft { margin: 0 0 32px; padding: 16px 20px; border: 1px solid #f0d58a; border-left: 4px solid #b7791f; border-radius: 12px; background: #fffaeb; font-size: 15px; }
.legal .draft p { margin: 0; }
.legal .draft .tbdcount { margin-top: 8px; color: #5b4206; }
.legal h1 { font-size: 38px; margin-bottom: 14px; }
.legal .eff { margin: 0 0 36px; color: var(--mute); font-size: 15px; }
.legal .eff strong { color: var(--ink); }
mark.tbd {
  background: #fff1a8; color: #1d2433; padding: .05em .3em; border-radius: 4px;
  outline: 1px dashed #a16207; outline-offset: -1px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.legal a:not(.anchor):not(.brand) { overflow-wrap: anywhere; }
.legal .doc a, .legal .eff a, .legal .draft a, .legal .xlink a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .toc { margin: 0 0 48px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.legal .toc h2 { margin: 0 0 12px; }
.legal .toc ol { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.5; }
.legal .toc > ol { list-style: none; padding-left: 0; }
.legal .toc ol ol { margin: 4px 0 6px; list-style: disc; color: var(--mute); }
.legal .toc li { margin: 0; padding: 4px 0; }
.legal .toc a { display: inline; text-decoration: none; color: var(--ink); }
.legal .toc ol ol a { color: var(--mute); }
.legal .toc a:hover { color: var(--accent-ink); text-decoration: underline; }
.legal .doc { font-size: 16px; }
.legal .doc h2 {
  margin: 48px 0 14px; font-size: 24px; line-height: 1.3; letter-spacing: -.01em; text-transform: none; color: var(--ink);
  scroll-margin-top: 20px;
}
.legal .doc h3 { margin: 30px 0 10px; font-size: 18px; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--ink); scroll-margin-top: 20px; }
.legal .doc h2:first-child { margin-top: 0; }
.legal .anchor { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; margin-left: 2px; padding: 0 2px; vertical-align: middle; color: var(--mute); text-decoration: none; font-weight: 500; }
.legal .anchor:hover, .legal .anchor:focus-visible, .legal :is(h2, h3):hover .anchor { color: var(--accent-ink); }
.legal .doc p, .legal .doc ul { margin: 0 0 14px; }
.legal .doc ul { padding-left: 1.3em; }
.legal .doc li { margin: 4px 0; }
.legal code { font: .88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #eef2f8; color: #1d2433; padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.legal .tbl { margin: 6px 0 20px; }
.legal table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; line-height: 1.5; }
.legal th, .legal td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { background: #f3f6fb; font-weight: 600; font-size: 14px; }
.legal tbody tr:last-child td { border-bottom: 0; }
.legal td:first-child { font-weight: 600; }
.legal .xlink { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mute); font-size: 15px; }
.legal-page footer { margin-top: 56px; }
footer .flinks { margin: 4px 0; }
footer .flinks a { padding: 0 4px; }

@media (max-width: 640px) {
  main.legal { padding: 24px 18px 16px; }
  header.site { padding: 14px 18px 0; }
  .legal h1 { font-size: 30px; }
  .legal .doc h2 { font-size: 21px; }
  .legal .toc { padding: 16px 18px; }
  /* tables become stacked cards: one card per row, each cell labelled */
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal table { border: 0; background: none; border-radius: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .legal tr { margin: 0 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
  .legal td { padding: 8px 14px; border-bottom: 1px solid var(--line); }
  .legal td:first-child { background: #f3f6fb; border-radius: 12px 12px 0 0; }
  .legal td:not(:first-child)::before { content: attr(data-label); display: block; color: var(--mute); font-size: 13px; font-weight: 600; }
  .legal tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  .legal tr td:last-child { border-bottom: 0; }
}
@media (max-width: 359px) {
  main.legal { padding-left: 14px; padding-right: 14px; }
  .legal h1 { font-size: 27px; }
}

/* 6. MOBILE (phones) */
@media (max-width: 640px) {
  main { padding-top: 64px; }
  h1 { font-size: 34px; }
  .links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .btn { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 6px; border-radius: 14px; font-size: 13px; }
  .grid { grid-template-columns: 1fr; }
  .grid > :last-child:nth-child(odd) { width: 100%; }
  dialog.viewer { width: calc(100vw - 20px); height: fit-content; max-height: calc(100dvh - 20px); border-radius: 18px; }
  dialog.viewer[open] { grid-template-rows: auto auto; overflow-y: auto; }
  .vh { padding: 18px 18px 12px; }
  .vh h2 { font-size: 19px; }
  .vh p { font-size: 14px; }
  .vimg { padding: 0 14px 16px; }
  .vimg img { height: auto; }
}
@media (max-width: 359px) {
  main { padding-left: 16px; padding-right: 16px; }
  .btn { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
  .btn:hover { transform: none; }
}

/* 7. TOOLS (/tools and /tools/<slug>). No JS on these pages. */
.vh-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
header.site.wide { max-width: 1040px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header.site a.brand { text-decoration: none; }
header.site a.brand:hover span:last-child { color: var(--accent-ink); }
.snav { display: flex; gap: 8px; }
.snav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); text-decoration: none; font-size: 15px; font-weight: 500;
}
.snav a:hover { color: var(--accent-ink); border-color: var(--accent); }
.snav a[aria-current="page"] { background: #eaf1ff; border-color: #c9d6fb; color: #23479f; font-weight: 600; }
.tools-page footer { margin-top: 64px; }

main.tools { max-width: 1040px; padding: 56px 24px 24px; text-align: left; }
main.tools h1 { font-size: 40px; }
main.tools > .lead { margin: 0 0 40px; max-width: 60ch; }
.tgrid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.tcard {
  display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s;
}
.tcard:hover { border-color: #c9d6fb; box-shadow: 0 14px 30px -18px rgba(29, 36, 51, .3); }
.tci { display: flex; gap: 16px; align-items: flex-start; flex: 1; }
.tmark { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #eaf1ff; color: #23479f; border: 1px solid #d6e0fa; }
.tmark svg { width: 28px; height: 28px; }
.tcard h3 { margin: 2px 0 6px; font-size: 20px; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.tcard h3 a { text-decoration: underline; text-decoration-color: #c9d6fb; text-underline-offset: 4px; }
.tcard h3 a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.tcp { margin: 0 0 10px; color: var(--mute); font-size: 15px; line-height: 1.55; }
.tcard .meta { margin: 0; color: var(--mute); font-size: 13px; }
.tcard.soon { justify-content: center; background: transparent; border-style: dashed; box-shadow: none; }
.tcard.soon .ct { margin: 0; font-size: 18px; font-weight: 600; }
.tcard.soon .tcp { margin: 0; }
.adnote { margin: 32px 0 0; color: var(--mute); font-size: 14px; max-width: 72ch; }
.adnote a, .tbody a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.tside { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* Example results (the partner box and Sponsored slot are styled in src/partners.css, appended by build.py) */
.exnote { color: var(--mute); font-size: 15px; }
.results { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.res { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; }
.res .rs { flex: none; min-width: 74px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.res .rx { display: flex; flex-direction: column; gap: 2px; }
.res .rx span { color: var(--mute); font-size: 14px; line-height: 1.5; }
.res.warn { border-left-color: #c2410c; } .res.warn .rs { background: #fdebdc; color: #8a2c07; }
.res.info { border-left-color: #a16207; } .res.info .rs { background: #fbf1d3; color: #6b4304; }
.res.ok { border-left-color: #15803d; } .res.ok .rs { background: #dcf3e4; color: #135c2f; }

/* Draft legal placeholders + 404 */
.nfl { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 0; }
.nf .nfl .btn { margin: 0; }
footer .flinks { margin: 0 0 4px; }

/* Tool page */
main.tool { max-width: 1040px; padding: 32px 24px 24px; text-align: left; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 32px; padding: 0; font-size: 14px; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #9aa3b2; }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--accent-ink); }
.tlayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.tside { position: sticky; top: 24px; }
.tlayout.solo { grid-template-columns: minmax(0, 1fr); }   /* no side column (no sold sponsor) */
.thead { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.thead .tmark { width: 64px; height: 64px; border-radius: 18px; }
.thead .tmark svg { width: 36px; height: 36px; }
.tool h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); }
.tsub { margin: 4px 0 0; color: var(--mute); font-size: 16px; font-weight: 500; }
.tool .lead { margin: 0 0 24px; max-width: 60ch; font-size: 19px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 48px; }
.btn.primary { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; padding: 12px 22px; font-size: 16px; font-weight: 600; }
.btn.primary:hover { background: #2349b3; border-color: #2349b3; color: #fff; }
.cta .host { color: var(--mute); font-size: 14px; }
.tbody h2 { margin: 48px 0 16px; font-size: 22px; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.tbody h2:first-of-type { margin-top: 0; }
.tbody p { max-width: 65ch; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.checks strong { font-size: 16px; }
.checks span { color: var(--mute); font-size: 14px; line-height: 1.5; }
.plain { margin: 0; padding-left: 1.3em; max-width: 65ch; }
.plain li { margin: 6px 0; }

@media (max-width: 860px) {
  .tlayout { grid-template-columns: 1fr; gap: 32px; }
  .tside { position: static; display: flex; justify-content: center; }
}
@media (max-width: 640px) {
  main.tools { padding: 32px 18px 16px; }
  main.tools h1 { font-size: 32px; }
  main.tool { padding: 20px 18px 16px; }
  .tgrid, .checks { grid-template-columns: 1fr; }
  .tcard { padding: 20px 16px; }
  .tool .lead { font-size: 17px; }
}
/* Map the portable partner component (src/partners.css, appended after this file) to this site's tokens; "main" outranks the component defaults. */
main .j4p { --j4p-ink: var(--ink); --j4p-mute: var(--mute); --j4p-line: var(--line); --j4p-card: var(--card); --j4p-link: var(--accent-ink); }
.tbody h3#sponsor-rules { margin: 28px 0 8px; font-size: 17px; }
/* Notice at Collection table (src/partials/notice-browser-check.html). Stacks under 600px so 320px never overflows. */
.nac-wrap { margin: 8px 0 12px; max-width: 100%; overflow-x: auto; }
.nac-wrap:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
.nac { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.nac th, .nac td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line, #e3e8f0); }
.nac thead th { font-weight: 600; color: var(--ink); border-bottom-width: 2px; white-space: nowrap; }
.nac tbody th { font-weight: 600; color: var(--ink); }
.nac td { color: var(--mute); }
.nac-after, .nac-line { font-size: 15px; color: var(--mute); margin: 0 0 8px; }
@media (max-width: 600px) {
  .nac thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nac, .nac tbody, .nac tr, .nac th, .nac td { display: block; width: auto; }
  .nac tr { border: 1px solid var(--line, #e3e8f0); border-radius: 8px; margin: 0 0 10px; padding: 4px 0; }
  .nac th, .nac td { border: 0; padding: 4px 12px; overflow-wrap: anywhere; }
  .nac td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
}
.legal .lead-legal { margin: 8px 0 6px; font-size: 17px; color: var(--ink); max-width: 62ch; }
.btn.soon, .btn.soon:hover { cursor: default; opacity: .7; transform: none; }

/* ==== PARTNERS: "Fix this leak" affiliate box + "Sponsored" slot (portable component) ====
   One stylesheet for just4nt.dev/tools/<slug> AND the check host (copied into the handoff by build.py --handoff).
   Security ruling 2026-10-30: self-hosted PNG/WebP images only, no inline styles, no scripts, no third-party anything.
   Class names avoid "ad"/"ads"/"banner" on purpose: blocker cosmetic filters would hide them, and the check host's own
   ad-blocking test uses ad-bait names. Everything is scoped under .j4p; colors come from --j4p-* with safe fallbacks,
   which each host maps to its own tokens (see the end of site.css, and handoff/browser-check-ads.css). */
.j4p {
  --j4p-ink: #1d2433; --j4p-mute: #5a6475; --j4p-line: #e1e6ef; --j4p-card: #ffffff;
  --j4p-link: #2b5ad6; --j4p-link-hover: #2349b3; --j4p-on-link: #ffffff;
  --j4p-box: #f5f8ff; --j4p-box-line: #d6e0fa; --j4p-for: #23479f;
  --j4p-tag-bg: #e3e8f0; --j4p-tag-ink: #3b4556; --j4p-slot: #f5f7fb;
  color: var(--j4p-ink); font-size: 16px; line-height: 1.5;
}
.j4p *, .j4p *::before, .j4p *::after { box-sizing: border-box; }
.j4p a:focus-visible { outline: 3px solid var(--j4p-link); outline-offset: 2px; }

/* Affiliate box: always rendered AFTER the findings and their free fixes, in its own tinted box. */
.j4p-fix { margin: 24px 0 8px; padding: 22px 22px 16px; background: var(--j4p-box); border: 1px solid var(--j4p-box-line); border-radius: 16px; }
.j4p .j4p-h { margin: 0 0 6px; font-size: 20px; line-height: 1.3; color: var(--j4p-ink); }
.j4p .j4p-intro { margin: 0 0 16px; color: var(--j4p-mute); font-size: 15px; }
.j4p .j4p-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.j4p .j4p-list li { margin: 0; }
.j4p .j4p-list li[hidden] { display: none; }
.j4p a.j4p-item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--j4p-card); border: 1px solid var(--j4p-line); border-radius: 12px; color: inherit; text-decoration: none; }
.j4p a.j4p-item:hover { border-color: var(--j4p-link); }
.j4p a.j4p-item img { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.j4p .j4p-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 64px; }
.j4p .j4p-name { font-weight: 700; font-size: 16px; color: var(--j4p-link); text-decoration: underline; text-underline-offset: 3px; }
.j4p a.j4p-item:hover .j4p-name { color: var(--j4p-link-hover); }
.j4p .j4p-for { color: var(--j4p-for); font-size: 13px; font-weight: 600; }
.j4p .j4p-copy { color: var(--j4p-mute); font-size: 14px; line-height: 1.45; }
.j4p .j4p-tag, .j4p .j4p-label {
  padding: 1px 6px; border-radius: 4px; background: var(--j4p-tag-bg); color: var(--j4p-tag-ink);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
}
.j4p .j4p-tag { position: absolute; top: 12px; right: 12px; }
.j4p .j4p-disc { margin: 14px 0 0; color: var(--j4p-mute); font-size: 13px; }
.j4p .j4p-disc a { color: var(--j4p-link); text-decoration: underline; text-underline-offset: 3px; }

/* Sponsored slot: fixed 300x250 reserved box (no layout shift); the label is always inside the box. */
.j4p-sp { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.j4p .j4p-slot { position: relative; flex: none; width: 300px; height: 250px; max-width: 100%; overflow: hidden; contain: strict; border: 1px solid var(--j4p-line); border-radius: 12px; background: var(--j4p-slot); }
.j4p .j4p-label { position: absolute; top: 8px; left: 10px; z-index: 1; }
.j4p .j4p-body { position: absolute; inset: 0; }
.j4p .j4p-body img { position: absolute; inset: 0; width: 100%; height: 100%; }
.j4p .j4p-body.j4p-empty { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 20px 22px; text-align: center; }
.j4p .j4p-empty > span, .j4p .j4p-empty > a { position: relative; }
.j4p .j4p-t { font-weight: 700; font-size: 18px; line-height: 1.3; color: #1d2433; }
.j4p .j4p-c { color: #5a6475; font-size: 13px; line-height: 1.4; }
.j4p a.j4p-cta { display: inline-flex; align-items: center; min-height: 36px; margin-top: 6px; padding: 4px 14px; border-radius: 999px; background: #2b5ad6; color: #ffffff; font-size: 14px; font-weight: 600; text-decoration: none; }
.j4p a.j4p-cta:hover { background: #2349b3; color: #ffffff; }
.j4p a.j4p-body:focus-visible { outline-offset: -4px; }
.j4p .j4p-contact { margin: 0; font-size: 13px; }
.j4p .j4p-contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--j4p-link); }

@media (max-width: 640px) {
  .j4p-fix { padding: 18px 14px 12px; }
  .j4p .j4p-tx { padding-right: 0; }
  .j4p .j4p-name { padding-right: 76px; }
}
/* Narrow phones: keep the reserved box; scale it down by aspect ratio instead of overflowing. */
@media (max-width: 359px) {
  .j4p .j4p-slot { width: 100%; height: auto; aspect-ratio: 300 / 250; }
}
