/* users.land: a light page on warm off-white (for everyone, whatever their system's setting), with one blue accent.
   Everything here is self-contained: system fonts, no images but the icons. */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f2f2ef;
  --surface-3: #e9e9e4;
  --fg: #14161a;
  --fg-2: #353941;
  --muted: #5d636e;
  --line: #e2e2dd;
  --line-strong: #d1d1ca;
  --accent: #3a5bd9;
  --accent-hover: #2f4dc2;
  --accent-ink: #ffffff;
  --accent-soft: rgba(58, 91, 217, .1);
  --accent-glow: rgba(58, 91, 217, .14);
  --good: #1b7a43;
  --good-soft: rgba(27, 122, 67, .11);
  --bad: #c0352e;
  --bad-soft: rgba(192, 53, 46, .1);
  --warn: #935c00;
  --warn-soft: rgba(176, 112, 0, .12);
  --github: #1f2328;
  --github-ink: #ffffff;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 6px 20px rgba(20, 22, 26, .04);
  --shadow-lift: 0 2px 6px rgba(20, 22, 26, .06), 0 14px 34px rgba(20, 22, 26, .08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ink: #202122;
  --ink-3: #54595d;
  --rule: #a2a9b1;
  --box: #f8f9fa;
  --box-line: #c8ccd1;
  --serif: "Linux Libertine", Georgia, "Noto Serif", "Times New Roman", serif;
  --gutter: 24px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
img, svg, canvas { display: block; }
button, input { font: inherit; color: inherit; }
button { margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 30; padding: 8px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); font-weight: 600; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.i { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
.i-fill { fill: currentColor; stroke: none; }

.eyebrow { margin-bottom: 14px; color: var(--accent); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.55; }

/* ---------- Buttons and fields ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease);
}
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .button-primary:hover { background: var(--accent-hover); } }
.button-outline { border-color: var(--line-strong); background: var(--surface); color: var(--fg); }
@media (hover: hover) { .button-outline:hover { border-color: var(--muted); } }
.button-outline .i { color: var(--muted); }
.button-small { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 550; }
.button-large { min-height: 50px; padding: 0 22px; border-radius: 14px; font-size: 16px; }
.button-github { background: var(--github); color: var(--github-ink); }
@media (hover: hover) { .button-github:hover { opacity: .88; } }

.field {
  display: flex; align-items: center; gap: 4px;
  height: 56px; padding: 0 6px 0 16px;
  border: 1px solid var(--line-strong); border-radius: 15px;
  background: var(--surface); box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.field input {
  flex: 1; min-width: 0; height: 100%; padding: 0 8px; border: 0; outline: 0; background: none;
  font-size: 17px; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--muted); opacity: .75; }
.field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.field .button { min-height: 44px; padding: 0 18px; }
.field-icon { color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--fg-2); font-size: 14px; font-weight: 500;
  transition: border-color .15s, color .15s, background-color .15s;
}
@media (hover: hover) { .chip:hover { border-color: var(--accent); color: var(--accent); } }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.examples:empty { display: none; }

/* ---------- Header and footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 245, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 550; transition: color .15s, background-color .15s; }
@media (hover: hover) { .site-nav a:hover { color: var(--fg); background: var(--surface-2); } }
.site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav .nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: 4px; padding: 0; color: var(--fg-2); }

main { flex: 1; outline: 0; }
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 36px; }
.footer-about { flex: 1 1 360px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); font-weight: 550; transition: color .15s; }
@media (hover: hover) { .footer-links a:hover { color: var(--accent); } }

/* ---------- The front page: the tools or ign.land ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -240px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 22% 40%, var(--accent-glow), transparent 70%);
}
.hero-inner { padding-top: 112px; padding-bottom: 32px; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 760; }
.hero .lede { margin-top: 18px; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin-top: 48px; }
.choice { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.choice-icon { flex: none; width: 52px; height: 52px; border-radius: 13px; }
.choice-text { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.choice-text strong { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.choice-text span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.choice-arrow { color: var(--muted); transition: transform .2s var(--ease), color .15s; }
@media (hover: hover) {
  .choice:hover { border-color: var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
  .choice:hover .choice-arrow { color: var(--accent); transform: translateX(3px); }
}
.choice:focus-visible { outline-offset: 3px; }
/* Who makes it: their GitHub profile, as a card under the two choices. */
.maker { position: relative; display: flex; align-items: center; gap: 28px; max-width: 880px; margin-top: 16px; padding: 28px 32px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.maker::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 140% at 0% 50%, var(--accent-glow), transparent 65%); }
.maker > * { position: relative; }
.maker-avatar { flex: none; width: 88px; height: 88px; border-radius: 50%; background: var(--surface-2); object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line-strong); }
.maker-text { flex: 1; min-width: 0; }
.maker .eyebrow { margin-bottom: 6px; }
.maker h2 { font-size: 28px; font-weight: 750; letter-spacing: -.025em; line-height: 1.1; }
.maker-handle { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font: 14px var(--mono); }
.maker-text p:last-child { max-width: 60ch; margin-top: 10px; color: var(--fg-2); }

/* ---------- The Tools page: a wiki of every tool ---------- */
/* It reads like a wiki article: serif titles over a thin rule, plain near-black text at a comfortable size and line
   length, an infobox beside each entry, and a numbered Contents list down the side. On phones and tablets the sections
   fold away under their headings, as on Wikipedia's mobile site. The page itself is white. */
body:has(#view-tools:not([hidden])) { background: #fff; }
body:has(#view-tools:not([hidden])) .site-header { background: rgba(255, 255, 255, .9); }
.wiki { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 52px; padding-top: 36px; }
/* The content comes first in the page (so the skip link and Tab reach the search before the Contents list); the grid
   puts the Contents on its left. */
.wiki-main { grid-column: 2; grid-row: 1; min-width: 0; max-width: 800px; color: var(--ink); font-size: 17px; line-height: 1.7; }
.wiki-side { grid-column: 1; grid-row: 1; position: relative; }
/* Long examples, links and IDs wrap rather than push the page sideways. */
.wiki-entry, .tool-about, .wiki-status { overflow-wrap: anywhere; }

.wiki-head h1 { padding-bottom: 6px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(2.1rem, 4.4vw, 2.6rem); font-weight: 400; line-height: 1.25; letter-spacing: 0; }
.wiki-tagline { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.wiki-lead { max-width: 68ch; margin: 18px 0 24px; font-size: 18.5px; line-height: 1.7; }

/* The Contents list: every section and tool, numbered as a wiki numbers them. */
.wiki-nav { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 28px 0; font-size: 15px; line-height: 1.45; scrollbar-width: thin; }
.wiki-toc-title { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; }
.wiki-toc-top { display: block; padding: 4px 0; color: var(--accent); }
.wiki-toc, .wiki-toc ol { margin: 0; padding: 0; list-style: none; }
.wiki-nav-group { margin-top: 6px; }
.wiki-nav-head, .wiki-toc ol a { display: flex; gap: 8px; padding: 4px 6px; border-radius: 6px; color: var(--accent); }
.wiki-nav-head { color: var(--ink); font-weight: 650; }
.wiki-toc ol a { padding-left: 22px; }
.wiki-toc-num { flex: none; min-width: 1.1em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wiki-toc ol .wiki-toc-num { min-width: 2.1em; }
@media (hover: hover) { .wiki-nav-head:hover, .wiki-toc ol a:hover, .wiki-toc-top:hover { text-decoration: underline; text-underline-offset: 3px; } }
.wiki-toc ol a.is-current { background: var(--box); color: var(--ink); font-weight: 700; }

/* The search: it narrows the entries as you type, and for a name, link or ID suggests the tools that can look it up. */
.wiki-search { position: relative; margin-bottom: 18px; }
.field-key { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; margin-right: 8px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface-2); color: var(--muted); font: 600 13px var(--mono); }
.field:focus-within .field-key { display: none; }
@media (hover: none) { .field-key { display: none; } }
.wiki-suggest { margin-top: 10px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lift); animation: rise .2s var(--ease); transition: opacity .15s; }
/* The last answer, while the next is on its way. */
.wiki-suggest.is-stale { opacity: .6; }
.wiki-suggest-title { padding: 8px 10px 6px; color: var(--ink-3); font-size: 15px; overflow-wrap: anywhere; }
.wiki-suggest-title strong { color: var(--ink); font-weight: 650; }
.wiki-suggest-list { margin: 0; padding: 0; list-style: none; }
.wiki-suggest-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink); }
.wiki-suggest-list a img { flex: none; width: 34px; height: 34px; border-radius: 9px; }
.wiki-suggest-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.4; }
.wiki-suggest-text strong { font-size: 16px; font-weight: 650; }
.wiki-suggest-text span { color: var(--ink-3); font-size: 15px; overflow-wrap: anywhere; }
.wiki-suggest-list .i { color: var(--muted); transition: transform .15s var(--ease), color .15s; }
.wiki-suggest-list a.is-active, .wiki-suggest-list a:focus-visible { background: var(--accent-soft); outline: 0; }
.wiki-suggest-list a.is-active strong { color: var(--accent); }
.wiki-suggest-list a.is-active .i { color: var(--accent); transform: translateX(2px); }
@media (hover: hover) { .wiki-suggest-list a:hover { background: var(--surface-2); } .wiki-suggest-list a.is-active:hover { background: var(--accent-soft); } }
.wiki-profiles { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 4px; padding: 12px 10px 8px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 15px; }
.wiki-profiles > span { margin-right: 4px; }
.wiki-profiles .chip { gap: 7px; padding: 0 11px 0 7px; font-size: 14.5px; }
.wiki-profiles .chip img { width: 18px; height: 18px; border-radius: 5px; }

/* Lookups made in this browser, to go back to. */
.wiki-recent { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: -4px 0 22px; color: var(--ink-3); font-size: 15px; line-height: 1.4; }
.wiki-recent > span { margin-right: 3px; font-weight: 650; }
.wiki-recent .chip { gap: 7px; max-width: 100%; padding: 0 11px 0 7px; font-size: 14.5px; }
.wiki-recent .chip img { flex: none; width: 18px; height: 18px; border-radius: 5px; }
.wiki-recent .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiki-recent-clear { margin-left: 4px; color: var(--ink-3); font-size: 14.5px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (hover: hover) { .wiki-recent-clear:hover { color: var(--ink); } }
.wiki-status { margin: -4px 0 18px; color: var(--ink-3); font-size: 16px; }
.wiki-status strong { color: var(--ink); font-weight: 650; }

/* A section: its title over a rule, how many tools it has, and a line about them. */
.wiki-section { margin-top: 40px; }
.wiki-section-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); list-style: none; cursor: default; }
.wiki-section-head::-webkit-details-marker { display: none; }
.wiki-section-head::marker { content: ''; }
.wiki-section-head h2 { font-family: var(--serif); font-size: 1.85rem; font-weight: 400; line-height: 1.3; }
.wiki-section-count { margin-left: auto; color: var(--ink-3); font-size: 15px; white-space: nowrap; }
.wiki-section-chevron { display: none; }
.wiki-section-blurb { max-width: 68ch; margin-top: 12px; }

/* An entry: its name, an infobox beside it, what it's for, what you can enter and what it shows, and a box to try it. */
.wiki-entry { margin-top: 34px; }
.wiki-entry::after { content: ''; display: table; clear: both; }
.wiki-entry-title { display: flex; align-items: baseline; gap: 10px; font-size: 1.4rem; font-weight: 700; line-height: 1.35; letter-spacing: -.005em; }
.wiki-entry-title a:first-child { color: var(--ink); }
@media (hover: hover) { .wiki-entry-title a:first-child:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.wiki-anchor { color: var(--ink-3); font-size: 1.1rem; font-weight: 400; opacity: .45; transition: opacity .15s, color .15s; }
.wiki-entry:hover .wiki-anchor, .wiki-anchor:focus-visible { opacity: 1; }
@media (hover: hover) { .wiki-anchor:hover { color: var(--accent); } }
.wiki-entry:target > .wiki-entry-title { animation: target 2s var(--ease); }
@keyframes target { 0%, 35% { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); } }
.wiki-infobox { float: right; width: 252px; margin: 6px 0 16px 28px; padding: 14px 14px 10px; border: 1px solid var(--box-line); background: var(--box); font-size: 15px; line-height: 1.5; }
.wiki-infobox .wiki-entry-icon { display: block; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 13px; }
.wiki-infobox dl { margin: 0; }
.wiki-infobox dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--box-line); }
.wiki-infobox dt { color: var(--ink); font-weight: 650; }
.wiki-infobox dd { margin: 0; color: var(--ink); }
.wiki-infobox a, .wiki-main p a, .wiki-source a { color: var(--accent); }
@media (hover: hover) { .wiki-infobox a:hover, .wiki-source a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.wiki-entry-blurb { margin-top: 10px; font-size: 18px; }
.wiki-entry-about, .tool-about-text { max-width: 68ch; margin-top: 10px; color: var(--ink); }
.wiki-fact h4 { margin: 18px 0 4px; color: var(--ink); font-size: 17px; font-weight: 700; }
.wiki-fact ul { margin: 0; padding-left: 1.3em; list-style: disc; }
.wiki-fact li { margin: 3px 0; padding-left: 2px; color: var(--ink); }
.wiki-fact li::marker { color: var(--ink-3); }
.wiki-source { margin-top: 16px; color: var(--ink-3); font-size: 16px; }

/* Try it: a box for the tool, its examples underneath. */
.wiki-try { clear: both; margin-top: 22px; padding: 16px 18px 14px; border: 1px solid var(--box-line); border-radius: 8px; background: var(--box); }
.wiki-try-label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 16px; font-weight: 700; }
.wiki-try-label span { margin-left: 6px; color: var(--ink-3); font-weight: 400; }
.field-small { height: 50px; max-width: 600px; padding-left: 6px; border-radius: 10px; box-shadow: none; background: var(--surface); }
.field-small input { font-size: 16.5px; }
.field-small .button { min-height: 40px; padding: 0 16px; border-radius: 8px; font-size: 15px; }
.wiki-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-3); font-size: 15px; line-height: 1.4; }
.wiki-examples > span { margin-right: 2px; }
.wiki-examples .chip { min-height: 32px; font-size: 14.5px; }
/* An example too long for the line ends in "…" (its whole text is its title). */
.wiki-examples .chip, .examples .chip { max-width: 100%; min-width: 0; }
.wiki-examples .chip > span, .examples .chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A tool's page: what it's for, under the result, in the same words and type as its entry. */
.tool-about { max-width: 800px; margin-top: 44px; padding: 26px 28px 24px; border: 1px solid var(--box-line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 17px; line-height: 1.7; }
.tool-about h2 { padding-bottom: 6px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.6rem; font-weight: 400; line-height: 1.3; }
.tool-about-text { margin-top: 14px; }
.tool-about-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 16px; font-weight: 600; }
.tool-about-more .i { transition: transform .15s var(--ease); }
@media (hover: hover) { .tool-about-more:hover .i { transform: translateX(2px); } }

/* ---------- A tool's page ---------- */
.tool-page { padding-top: 32px; }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--fg-2); font-weight: 500; }
@media (hover: hover) { .crumbs a:hover { color: var(--accent); } }
.crumbs .i { opacity: .6; }
.tool-head { display: flex; align-items: flex-start; gap: 18px; max-width: 780px; }
.tool-head-icon { flex: none; width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--shadow); }
.tool-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 740; }
.tool-head p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.tool-form { max-width: 720px; margin: 30px 0 32px; }
.tool-label { display: block; margin-bottom: 10px; color: var(--fg-2); font-size: 14px; font-weight: 600; }
.tool-result:empty { display: none; }

.tool-loading, .tool-problem {
  display: flex; align-items: center; gap: 14px; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg-2); box-shadow: var(--shadow);
}
.tool-problem { flex-wrap: wrap; }
.tool-problem p { flex: 1 1 260px; }
.tool-problem .i { color: var(--muted); }
.tool-problem.is-warn { border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.tool-problem.is-warn .i { color: var(--warn); }
.spinner { flex: none; width: 20px; height: 20px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tool-loading .loading-text { display: flex; flex-direction: column; gap: 2px; }
.tool-loading small { color: var(--muted); font-size: 13px; }

/* ---------- What a lookup found ---------- */
.tool-output { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.tool-output-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tool-avatar { flex: none; width: 72px; height: 72px; border-radius: 16px; background: var(--surface-2); object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.tool-avatar.is-round { border-radius: 50%; }
.is-pixel { image-rendering: pixelated; }
.tool-output-title { flex: 1 1 260px; min-width: 0; }
.tool-output-title h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; font-weight: 720; overflow-wrap: anywhere; }
.tool-output-title p { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tool-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-3); color: var(--fg-2); font-size: 12.5px; font-weight: 600; }
.tool-badge.is-good { background: var(--good-soft); color: var(--good); }
.tool-badge.is-bad { background: var(--bad-soft); color: var(--bad); }
.tool-badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.tool-badge.is-info { background: var(--accent-soft); color: var(--accent); }
.tool-badge.is-muted { color: var(--muted); }
.tool-output-links { display: flex; flex-wrap: wrap; gap: 8px; }

.tool-section { padding-top: 28px; }
.tool-section h3 { margin-bottom: 12px; color: var(--muted); font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.tool-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tool-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); }
.tool-stat-label { color: var(--muted); font-size: 13.5px; }
.tool-stat-value { font-size: 28px; font-weight: 720; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tool-stat small { color: var(--muted); font-size: 12.5px; }
.tool-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 0 40px; }
.tool-field { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tool-field dt { flex: none; color: var(--muted); font-size: 14.5px; }
.tool-field dd { min-width: 0; font-size: 14.5px; font-weight: 550; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .tool-field dt { flex: 1 1 auto; min-width: 0; }
  .tool-field dd { flex: 0 0 auto; max-width: 62%; }
}
.tool-output code { font-family: var(--mono); font-size: 13.5px; }
.tool-output a:not(.button):not(.tool-check-link):not(.tool-download) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (hover: hover) { .tool-output a:not(.button):not(.tool-check-link):not(.tool-download):hover { color: var(--accent); text-decoration-color: currentColor; } }
.tool-none, .tool-ago { color: var(--muted); font-weight: 400; }
.tool-value-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.tool-tone.is-good { color: var(--good); }
.tool-tone.is-bad { color: var(--bad); }
.tool-tone.is-warn { color: var(--warn); }
.tool-tone.is-info { color: var(--accent); }
.tool-tone.is-muted { color: var(--muted); }
.tool-copy { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -4px 0 -4px 6px; border-radius: 8px; color: var(--muted); vertical-align: middle; transition: background-color .15s, color .15s; }
@media (hover: hover) { .tool-copy:hover { background: var(--surface-2); color: var(--fg); } }
.tool-copy.is-copied { color: var(--good); }
.tool-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tool-table th, .tool-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tool-table th:first-child, .tool-table td:first-child { padding-left: 0; }
.tool-table th:last-child, .tool-table td:last-child { padding-right: 0; }
.tool-table thead th { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tool-table tbody tr:last-child td { border-bottom: 0; }
/* Figures take only the width they need, leaving the rest to names and text. */
.tool-table .num { width: 1%; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tool-table td code { overflow-wrap: anywhere; }
.tool-table-note { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.tool-checks, .tool-tags, .tool-link-list { margin: 0; padding: 0; list-style: none; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tool-tags li { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--fg-2); font-size: 13.5px; }
.tool-tags li.is-good { color: var(--good); }
.tool-tags li.is-bad { color: var(--bad); }
.tool-tags li.is-warn { color: var(--warn); }
.tool-tags li.is-info { color: var(--accent); }
.tool-text { max-width: 75ch; color: var(--fg-2); line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.tool-images { display: flex; flex-wrap: wrap; gap: 16px; }
.tool-image { display: flex; flex-direction: column; gap: 8px; }
.tool-image-frame { display: flex; align-items: center; justify-content: center; width: 176px; height: 176px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.tool-image-frame img { width: 100%; height: 100%; object-fit: contain; }
.tool-image-frame img.is-round { border-radius: 50%; object-fit: cover; }
.tool-image figcaption { display: flex; flex-direction: column; gap: 2px; max-width: 176px; color: var(--muted); font-size: 13.5px; }
.tool-download { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 550; }
@media (hover: hover) { .tool-download:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* The username checker's answer for each platform. */
.tool-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tool-check-link { display: flex; align-items: center; gap: 12px; height: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
@media (hover: hover) { a.tool-check-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); transform: translateY(-1px); } }
.tool-check.is-free .tool-check-link { border-color: color-mix(in srgb, var(--good) 38%, var(--line)); background: color-mix(in srgb, var(--good) 5%, var(--surface)); }
.tool-check-icon { flex: none; width: 32px; height: 32px; border-radius: 8px; }
.tool-check-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.tool-check-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.tool-check-text small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.tool-check-status { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.tool-check.is-taken .tool-check-status { background: var(--bad-soft); color: var(--bad); }
.tool-check.is-free .tool-check-status, .tool-check.is-allowed .tool-check-status { background: var(--good-soft); color: var(--good); }
.tool-check.is-invalid .tool-check-status { background: var(--warn-soft); color: var(--warn); }
.tool-link-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tool-link-list a { display: inline-flex; align-items: center; gap: 4px; }
.tool-note { display: flex; align-items: flex-start; gap: 9px; max-width: 70ch; margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.tool-note .i { margin-top: 2px; }
.tool-note.is-warn { max-width: none; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--fg-2); }
.tool-note.is-warn .i { color: var(--warn); }
.tool-skin { display: flex; flex-wrap: wrap; gap: 16px; }
.tool-skin figure { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 30px 12px; border-radius: 16px; background: radial-gradient(120% 90% at 50% 20%, var(--surface-3), var(--surface-2)); }
.tool-skin-canvas { width: 120px; height: 240px; image-rendering: pixelated; }
.tool-skin figcaption { color: var(--muted); font-size: 13.5px; }
.tool-motd { padding: 14px 16px; overflow-x: auto; border-radius: 12px; background: #15171c; color: #aaaaaa; font: 15px/1.5 var(--mono); white-space: pre; text-shadow: 2px 2px 0 rgba(0, 0, 0, .55); }
.tool-motd .is-bold { font-weight: 700; }
.tool-motd .is-italic { font-style: italic; }
.tool-motd .is-underline { text-decoration: underline; }
.tool-motd .is-strike { text-decoration: line-through; }
.tool-motd .is-underline.is-strike { text-decoration: underline line-through; }

/* ---------- More tools ---------- */
.more-tools { margin-top: 56px; }
.more-tools h2 { margin-bottom: 16px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.more-tools-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tool-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
@media (hover: hover) { .tool-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); transform: translateY(-1px); } }
.tool-card-icon { flex: none; width: 36px; height: 36px; border-radius: 9px; }
.tool-card-text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.tool-card-text strong { font-size: 15px; font-weight: 600; }
.tool-card-text span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ---------- Not found ---------- */
.notfound { padding-top: 96px; padding-bottom: 40px; }
.notfound h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 750; }
.notfound .lede { max-width: 34em; margin-top: 18px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; padding: 10px 18px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lift); transform: translateX(-50%); animation: toast .25s var(--ease); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .wiki { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 22px; }
  .wiki-side { display: none; }
  .wiki-main { grid-column: 1; max-width: none; }
  .wiki-lead { margin: 16px 0 20px; font-size: 18px; }
  /* Each section folds under its heading (tap it to open or close); an open one's heading stays at the top while you
     read it, so it can be closed from anywhere in it. */
  .wiki-section { margin-top: 0; }
  .wiki-section-head { position: sticky; top: 64px; z-index: 5; align-items: center; gap: 10px; padding: 14px 0 12px; background: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .wiki-section:not([open]) > .wiki-section-head { position: static; }
  .wiki-section-chevron { display: block; flex: none; width: 20px; height: 20px; color: var(--ink-3); transition: transform .2s var(--ease); }
  .wiki-section[open] > .wiki-section-head .wiki-section-chevron { transform: rotate(90deg); }
  .wiki-section-head h2 { font-size: 1.6rem; }
  .wiki-section-blurb { margin-top: 14px; }
  .wiki-section[open] { padding-bottom: 30px; }
  /* The infobox comes before the entry's text, its picture beside the facts. */
  .wiki-infobox { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 14px; align-items: start; float: none; width: auto; margin: 12px 0 14px; padding: 12px 14px 6px; }
  .wiki-infobox .wiki-entry-icon { width: 52px; height: 52px; margin: 2px 0 0; }
  .wiki-infobox dl > div:first-child { padding-top: 0; border-top: 0; }
}
/* Jumps to an entry or section, and fields brought into view, clear the sticky header (and an open section's heading). */
@media (max-width: 1000px) { html:has(#view-tools:not([hidden])) { scroll-padding-top: 128px; } }
@media (max-width: 760px) { html:has(#view-tools:not([hidden])) { scroll-padding-top: 120px; } }
@media (max-width: 760px) {
  .wiki-section-head { top: 58px; }
  .wiki-head h1 { font-size: 2.05rem; }
  .wiki-entry-title { font-size: 1.3rem; }
  .wiki-infobox dl > div { grid-template-columns: 84px minmax(0, 1fr); }
  .wiki-try { padding: 14px 14px 12px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .header-inner { height: 58px; }
  .site-nav a { padding: 8px 9px; font-size: 14px; }
  .hero-inner { padding-top: 64px; padding-bottom: 24px; }
  .lede { font-size: 17px; }
  .hero .lede { font-size: 18px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .button { flex: 1 1 auto; }
  .choices { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 36px; }
  .choice { gap: 14px; padding: 18px; border-radius: 18px; }
  .choice-icon { width: 46px; height: 46px; border-radius: 12px; }
  .choice-text strong { font-size: 18px; }
  .choice-text span { font-size: 14.5px; }
  .maker { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 12px; padding: 24px 20px; }
  .maker::before { background: radial-gradient(120% 60% at 0% 0%, var(--accent-glow), transparent 65%); }
  .maker-avatar { width: 72px; height: 72px; }
  .maker h2 { font-size: 24px; }
  .maker .button { width: 100%; }
  .wiki-suggest { padding: 6px; border-radius: 16px; }
  .tool-about { margin-top: 36px; padding: 20px 18px; }
  .field { height: 54px; padding-left: 14px; }
  .field input { font-size: 16px; }
  .field .button { padding: 0 14px; }
  .tool-page { padding-top: 22px; }
  .crumbs { margin-bottom: 18px; }
  .tool-head { gap: 14px; }
  .tool-head-icon { width: 46px; height: 46px; border-radius: 12px; }
  .tool-head p { font-size: 16px; }
  .tool-form { margin: 24px 0 26px; }
  .tool-output { padding: 18px; border-radius: 16px; }
  .tool-output-head { gap: 14px; padding-bottom: 20px; }
  .tool-output-title h2 { font-size: 23px; }
  .tool-avatar { width: 58px; height: 58px; }
  .tool-output-links { width: 100%; }
  .tool-section { padding-top: 24px; }
  .tool-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool-stat { padding: 14px; }
  .tool-stat-value { font-size: 22px; }
  .tool-fields, .tool-checks, .more-tools-list { grid-template-columns: minmax(0, 1fr); }
  .tool-skin figure { padding: 14px 18px 10px; }
  .tool-skin-canvas { width: 96px; height: 192px; }
  .tool-image-frame { width: 140px; height: 140px; }
  .tool-image figcaption { max-width: 140px; }
  .site-footer { margin-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* A spinner still turns, slowly, so a wait never looks stuck. */
  .spinner { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
}
