/* Best Evangelism Tools. Layout idea: a plain reading column, with one wide scorecard table. */
:root {
  --paper: #f6f7f4;
  --card: #ffffff;
  --ink: #17222b;
  --muted: #55636e;
  --line: #d9dedb;
  --accent: #0d5c63;
  --accent-ink: #ffffff;
  --yes: #1f7a4d;   --yes-bg: #e2f2e9;
  --part: #8a5a00;  --part-bg: #fbefd2;
  --no: #a23b2c;    --no-bg: #f8e3df;
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12191e; --card: #1a242b; --ink: #e8ecea; --muted: #a3b0b8; --line: #2f3c45;
    --accent: #6cc5c9; --accent-ink: #0c1a1d;
    --yes: #7fd3a4; --yes-bg: #173826; --part: #f0c36a; --part-bg: #3d2f0d; --no: #f0a093; --no-bg: #44201a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12191e; --card: #1a242b; --ink: #e8ecea; --muted: #a3b0b8; --line: #2f3c45;
  --accent: #6cc5c9; --accent-ink: #0c1a1d;
  --yes: #7fd3a4; --yes-bg: #173826; --part: #f0c36a; --part-bg: #3d2f0d; --no: #f0a093; --no-bg: #44201a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.1rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; text-wrap: balance; margin: 0 0 0.6rem; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
main > section, .page > section { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
main section > p, main section > ol, main section > ul, main section > h2, main section > h3,
main section > blockquote, .quotes, .levels { max-width: 42rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

.draft { background: var(--part-bg); color: var(--part); text-align: center; padding: 0.5rem 1rem; font-size: 0.92rem; }
header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: center; justify-content: space-between; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
nav a { color: var(--muted); text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
footer.site { color: var(--muted); font-size: 0.9rem; padding: 1.6rem 0 2.5rem; }
footer.site p { margin-bottom: 0.4rem; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 0.5rem; }
.lead .big { font-size: 1.15rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.3rem; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1.1rem; border-radius: 6px; text-decoration: none; font-weight: 600; border: 2px solid var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.note { color: var(--muted); }
.note h2 { color: var(--ink); font-size: 1.2rem; }
.small { font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; }

.qlist { list-style: none; counter-reset: q; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.7rem; max-width: none !important; }
.qlist li { counter-increment: q; }
.qlist a { display: grid; grid-template-columns: 2rem 1fr; gap: 0 0.4rem; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0.8rem 0.9rem; text-decoration: none; color: var(--ink); }
.qlist a::before { content: counter(q); grid-row: span 2; font-family: var(--display); font-size: 1.5rem; color: var(--accent); line-height: 1.2; }
.qlist span { color: var(--muted); font-size: 0.95rem; grid-column: 2; }

/* score chips */
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.1rem 0.55rem 0.1rem 0.45rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.chip.sm { font-size: 0.8rem; }
.chip .dot, .ticks .dot { width: 0.7em; height: 0.7em; border-radius: 50%; border: 2px solid currentColor; flex: none; display: inline-block; }
.s2 { color: var(--yes); background: var(--yes-bg); }   .s2 .dot { background: currentColor; }
.s1 { color: var(--part); background: var(--part-bg); } .s1 .dot { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.s0 { color: var(--no); background: var(--no-bg); }
.scale { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.scale li { display: flex; gap: 0.7rem; align-items: baseline; }
.scale li span:last-child { color: var(--muted); }

/* tables */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; background: var(--card); }
thead th a { color: inherit; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.of { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.matrix thead th { white-space: normal; min-width: 6.2rem; vertical-align: bottom; line-height: 1.25; }
.matrix tbody th { font-weight: 600; min-width: 11rem; position: sticky; left: 0; background: var(--card); }
.matrix .by { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.glance { max-width: 30rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.8rem; }
.legend .when { color: var(--muted); font-size: 0.85rem; margin-left: auto; }
.levels { margin-top: 0.5rem; }
.levels td:first-child { width: 7rem; }
.matrix td .chip { min-width: 2.9em; font-variant-numeric: tabular-nums; }
.levels td { border-bottom: 1px solid var(--line); padding-left: 0; }

/* criteria page */
.criterion .question { font-family: var(--display); font-size: 1.2rem; font-style: italic; color: var(--muted); }
.criterion h3 { margin-top: 1.4rem; }
.quotes { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; margin: 1.2rem 0; }
blockquote { margin: 0 0 0.7rem; font-family: var(--display); font-size: 1.08rem; }
blockquote p { margin: 0; }
blockquote p::before { content: "\201C"; } blockquote p::after { content: "\201D"; }
.cite { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* tool cards */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem; margin: 0 0 1.2rem; max-width: 52rem; }
.tool header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.tool h3 { font-size: 1.3rem; margin: 0; }
.tool .score { font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.tool .meta { color: var(--muted); font-size: 0.88rem; margin: 0.2rem 0 0.8rem; }
.tool .read { font-size: 0.92rem; color: var(--muted); }
.reasons { margin: 0; display: grid; gap: 0; }
.reasons .row { display: grid; grid-template-columns: 13rem 1fr; gap: 0.3rem 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.reasons dt { font-weight: 600; display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; }
.reasons dt a { color: var(--ink); }
.reasons dd { margin: 0; font-size: 0.96rem; }
.ticks { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.85rem; }
.ticks li { display: inline-flex; align-items: center; gap: 0.3rem; }
.ticks .y { color: var(--yes); } .ticks .y .dot { background: currentColor; }
.ticks .p { color: var(--part); } .ticks .p .dot { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.ticks .n { color: var(--no); text-decoration: line-through; }
.unv { font-size: 0.9rem; background: var(--part-bg); color: var(--part); padding: 0.5rem 0.7rem; border-radius: 6px; margin: 0.6rem 0; }
details { margin-top: 0.6rem; font-size: 0.9rem; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.src { padding-left: 1.1rem; margin: 0.4rem 0 0; word-break: break-word; }

@media (max-width: 40rem) {
  body { font-size: 16px; }
  .reasons .row { grid-template-columns: 1fr; }
  .reasons dt { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
  .matrix tbody th { min-width: 8.5rem; }
  th, td { padding: 0.5rem 0.5rem; }
}
@media print { .draft, nav, .actions { display: none; } body { background: #fff; } }

/* tool pages */
.rhead { display: flex; justify-content: space-between; gap: 1.2rem; align-items: flex-start; }
.bigmark { font-family: var(--display); font-size: 2rem; font-weight: 700; margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bigmark.b2 { color: var(--yes); } .bigmark.b1 { color: var(--part); } .bigmark.b0 { color: var(--no); }
.lead .meta { color: var(--muted); font-size: 0.92rem; }
.lead .read { color: var(--muted); font-size: 0.95rem; }
.marks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.4rem 1.5rem; max-width: none !important; }
.marks li { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; border-bottom: 1px solid var(--line); padding: 0.35rem 0; }
.rating { max-width: 46rem; }
.rating h2 { margin-bottom: 0.2rem; }
.rating .question { font-family: var(--display); font-style: italic; color: var(--muted); }
.ticks.long { display: grid; gap: 0.3rem; font-size: 0.93rem; }
.ticks.long .n { text-decoration: none; }
.ticks.long em { font-style: normal; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; max-width: none !important; }

/* drawings on the criteria page */
.chead { display: grid; grid-template-columns: 1fr 15rem; gap: 1.5rem; align-items: center; max-width: 58rem; }
.art { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem; }
.art svg { display: block; width: 100%; height: auto; }
.art .af { fill: var(--accent); }
.art .as { fill: var(--yes-bg); }
.art .ad { fill: var(--ink); }
.art .al { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.art .aa { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .aa.thin { stroke-width: 1.5; }
.art .am { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; }
.art .an { fill: none; stroke: var(--no); stroke-width: 3; stroke-linecap: round; }
.art .aw { fill: none; stroke: var(--accent-ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.art .at { fill: var(--muted); font: 600 22px var(--display); }
.art .at.sm { font: 700 13px var(--body); fill: var(--accent); }
.ingredients { padding-left: 1.2rem; }
.ingredients li { margin-bottom: 0.2rem; }
@media (max-width: 44rem) { .chead { grid-template-columns: 1fr; } .art { max-width: 15rem; order: -1; } }

/* clean sans headings */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
h1 { font-weight: 800; letter-spacing: -0.03em; }
.brand { letter-spacing: -0.02em; }
.criterion .question, .rating .question { font-style: normal; font-weight: 500; }
.bigmark, .tool .score { letter-spacing: -0.02em; }
/* home page pictures */
.art.bare { border: 0; padding: 0; background: none; }
.art .ac { fill: var(--card); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.art .atk { fill: none; stroke: var(--line); stroke-width: 10; stroke-linecap: round; }
.art .ab { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
.art .ap { fill: none; stroke: var(--part); stroke-width: 10; stroke-linecap: round; }
.art .ah { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: round; }
main > section.hero, .page > section.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center;
  background: var(--yes-bg); border: 0; border-radius: 16px; padding: 2.2rem 2rem; margin: 1.5rem 0 0; }
.hero .big { color: var(--ink); }
.hero p, .hero h1 { max-width: none; }
.split { display: grid; grid-template-columns: 1fr 17rem; gap: 2.5rem; align-items: center; }
.split > div > p, .split > div > h2 { max-width: 42rem; }
.qlist a { grid-template-columns: 4.6rem 1fr; gap: 0 0.8rem; align-items: center; padding: 0.9rem 1rem; transition: border-color .15s, transform .15s; }
.qlist a:hover { border-color: var(--accent); transform: translateY(-1px); }
.qlist a::before { content: none; }
.qlist .qi { grid-row: span 2; display: block; }
.qlist .qi svg { display: block; width: 100%; height: auto; }
.qlist strong { align-self: end; }
.qlist span:last-child { align-self: start; }
.glance { max-width: none; }
.barcell { width: 45%; }
.bar { display: block; height: 0.6rem; background: var(--line); border-radius: 999px; overflow: hidden; min-width: 4rem; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
@media (max-width: 44rem) {
  main > section.hero, .page > section.hero { grid-template-columns: 1fr; padding: 1.5rem 1.2rem; }
  .hero .art { max-width: 17rem; order: -1; }
  .split { grid-template-columns: 1fr; } .split .art { max-width: 15rem; }
  .barcell { width: 30%; }
}
@media (prefers-reduced-motion: reduce) { .qlist a { transition: none; } }
.qlist a { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.qlist .qi { width: 7.5rem; margin-bottom: 0.4rem; }
.qlist strong { align-self: auto; font-size: 1.05rem; }
.qlist span:last-child { align-self: auto; }

/* evaluation page pictures */
.art .fy { fill: var(--yes); } .art .fp { fill: var(--part); } .art .fn { fill: var(--no); }
.art .as2 { fill: var(--muted); }
.matrix thead th { vertical-align: bottom; }
.matrix .hi { display: block; width: 3.4rem; margin-bottom: 0.35rem; }
.matrix .hi svg { display: block; width: 100%; height: auto; }
.matrix thead th a { text-decoration: none; display: block; }
.matrix thead th { vertical-align: top; }
.matrix thead th:first-child, .matrix thead th:last-child { vertical-align: bottom; }

.srch { font-size: 1.1rem; margin-top: 1.4rem; }
.hero .src, .lead .src { max-width: none; }

.srch.crit { margin-top: 1.8rem; }
.srch + .marks { margin-top: 0.5rem; }
.srch + .src { margin-top: 0.3rem; }
