/* 8.ro */

/* ---------- tokens ----------
   Light is the default; dark follows the system unless the visitor picked a
   theme (data-theme on <html>, set by the boot script before first paint).
   Text tokens are at least 4.5:1 on every surface they sit on; --field-line,
   the border of anything you type into, is at least 3:1 (WCAG 1.4.11).
   Hairlines (--line, --line-2) only separate, they never identify a control:
   an option chip is identified by its text, its chosen state by a fill. */
:root {
  color-scheme: light;
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f5f5f4;
  --surface-3: #efedeb;
  --line: #e7e5e4;
  --line-2: #d6d3d1;
  --field-line: #8c8580;
  --text: #1c1917;
  --muted: #57534e;
  --faint: #6b645f;
  --accent: #ea580c;
  --accent-ink: #c2410c;
  --accent-soft: #fff1e6;
  --accent-line: #fdc9a4;
  --ring: rgb(234 88 12 / .16);
  --tile-a: #fff7ed;
  --tile-b: #ffe9d5;
  --tile-hi: rgb(255 255 255 / .7);
  --spot: rgb(249 115 22 / .09);
  --ink: #1c1917;
  --on-ink: #ffffff;
  --ok: #166534;
  --err: #b42318;
  --grid: rgb(28 25 23 / .06);
  --glow-1: rgb(251 146 60 / .24);
  --glow-2: rgb(245 158 11 / .14);
  --shadow-s: 0 1px 2px rgb(28 25 23 / .06);
  --shadow: 0 1px 2px rgb(28 25 23 / .05), 0 6px 16px -8px rgb(28 25 23 / .12);
  --shadow-lift: 0 2px 4px rgb(28 25 23 / .04), 0 18px 40px -18px rgb(28 25 23 / .3);
  --shadow-pop: 0 4px 10px rgb(28 25 23 / .05), 0 28px 70px -24px rgb(28 25 23 / .38);
  --shadow-glow: 0 10px 28px -10px rgb(234 88 12 / .55);
  --backdrop: rgb(12 10 9 / .45);
  --foot-bg: #141211;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Segoe UI Mono", "JetBrains Mono", Menlo, Consolas, "Roboto Mono", "Liberation Mono", "DejaVu Sans Mono", monospace;
  --header-h: 64px;
  --r: 16px;
  --r-s: 10px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --solid: linear-gradient(145deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
  /* behind white text: the darker end only, at least 5.2:1 */
  --solid-ink: linear-gradient(145deg, #c2410c, #9a3412);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0a09;
  --surface: #151312;
  --surface-2: #1c1a18;
  --surface-3: #252220;
  --line: #292524;
  --line-2: #3b3734;
  --field-line: #736c66;
  --text: #f5f5f4;
  --muted: #b4ada7;
  --faint: #9d9690;
  --accent: #f97316;
  --accent-ink: #fb923c;
  --accent-soft: rgb(249 115 22 / .12);
  --accent-line: rgb(249 115 22 / .4);
  --ring: rgb(249 115 22 / .24);
  --tile-a: rgb(249 115 22 / .2);
  --tile-b: rgb(249 115 22 / .07);
  --tile-hi: rgb(255 255 255 / .06);
  --spot: rgb(249 115 22 / .1);
  --ink: #f5f5f4;
  --on-ink: #0c0a09;
  --ok: #4ade80;
  --err: #ff8a7a;
  --grid: rgb(255 255 255 / .045);
  --glow-1: rgb(249 115 22 / .2);
  --glow-2: rgb(245 158 11 / .1);
  --shadow-s: 0 1px 2px rgb(0 0 0 / .4);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 20px -10px rgb(0 0 0 / .6);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / .4), 0 20px 44px -18px rgb(0 0 0 / .85);
  --shadow-pop: 0 4px 10px rgb(0 0 0 / .4), 0 30px 80px -20px rgb(0 0 0 / .9);
  --shadow-glow: 0 10px 30px -10px rgb(249 115 22 / .5);
  --backdrop: rgb(0 0 0 / .6);
  --foot-bg: #080706;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0a09;
    --surface: #151312;
    --surface-2: #1c1a18;
    --surface-3: #252220;
    --line: #292524;
    --line-2: #3b3734;
    --field-line: #736c66;
    --text: #f5f5f4;
    --muted: #b4ada7;
    --faint: #9d9690;
    --accent: #f97316;
    --accent-ink: #fb923c;
    --accent-soft: rgb(249 115 22 / .12);
    --accent-line: rgb(249 115 22 / .4);
    --ring: rgb(249 115 22 / .24);
    --tile-a: rgb(249 115 22 / .2);
    --tile-b: rgb(249 115 22 / .07);
    --tile-hi: rgb(255 255 255 / .06);
    --spot: rgb(249 115 22 / .1);
    --ink: #f5f5f4;
    --on-ink: #0c0a09;
    --ok: #4ade80;
    --err: #ff8a7a;
    --grid: rgb(255 255 255 / .045);
    --glow-1: rgb(249 115 22 / .2);
    --glow-2: rgb(245 158 11 / .1);
    --shadow-s: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 20px -10px rgb(0 0 0 / .6);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .4), 0 20px 44px -18px rgb(0 0 0 / .85);
    --shadow-pop: 0 4px 10px rgb(0 0 0 / .4), 0 30px 80px -20px rgb(0 0 0 / .9);
    --shadow-glow: 0 10px 30px -10px rgb(249 115 22 / .5);
    --backdrop: rgb(0 0 0 / .6);
    --foot-bg: #080706;
  }
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; position: relative; isolation: isolate; overflow-x: clip; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 680; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, .mono { font-family: var(--mono); }
::selection { background: var(--accent-line); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: var(--r-s);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
/* the drawings of every icon on the page; never shown itself */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  font-size: .75rem; line-height: 1; color: var(--faint);
  background: var(--surface); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px;
}

/* A page fades into the next one where the browser can (cross-document
   view transitions); the header stays put. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* The backdrop of the top of every page: a faint grid that fades out and
   a warm light under the header that drifts slowly. Drawn, never loaded;
   the drift moves a layer (transform), so it costs no repaint. */
main::before, main::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; transform: translateX(-50%); width: 100%;
}
main::before {
  top: 0; height: var(--deco-h, 360px);
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000 15%, transparent 72%);
}
main::after {
  top: calc(-1 * var(--header-h)); height: calc(var(--deco-h, 360px) * .95); max-width: 1200px;
  background:
    radial-gradient(ellipse 38% 55% at 36% 0%, var(--glow-1), transparent 70%),
    radial-gradient(ellipse 34% 50% at 66% 8%, var(--glow-2), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translateX(-46%) scale(1.12); }
}
.k-home { --deco-h: 700px; }
.k-tool { --deco-h: 320px; }

/* ---------- tiles: an icon on a coloured square ----------
   Soft (tinted) by default; solid (the orange gradient, white drawing)
   where the eye should land: a page's own icon, a card under the pointer. */
.tile {
  --t: 40px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--t); height: var(--t); border-radius: calc(var(--t) * .3);
  color: var(--accent-ink);
  background: linear-gradient(145deg, var(--tile-a), var(--tile-b));
  box-shadow: inset 0 0 0 1px var(--ring), inset 0 1px 0 var(--tile-hi);
  transition: background .2s, color .2s, box-shadow .2s, transform .25s var(--ease);
}
.tile .i { width: calc(var(--t) * .5); height: calc(var(--t) * .5); }
.tile-solid, .page-head > .tile, .cat-head > .tile, .menu-intro > .tile, .foot-cta > .tile {
  color: #fff; background: var(--solid);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgb(255 255 255 / .35);
}
.page-head > .tile .i, .cat-head > .tile .i { stroke-width: 1.6; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  view-transition-name: top;
}
.top-in { position: relative; height: 100%; display: flex; align-items: center; gap: 8px; }
.brand {
  display: inline-flex; align-items: flex-end; gap: 1px; flex: none;
  text-decoration: none; color: var(--text); line-height: 1;
  border-radius: 6px; padding: 4px 2px;
}
.mark { width: 20px; height: 27px; fill: var(--accent); flex: none; overflow: visible; }
.brand-t { font-size: 1.4375rem; font-weight: 750; letter-spacing: -.035em; line-height: .9; }
/* the seven segments light up one after the other under the pointer */
.brand:hover .mark polygon { animation: seg .55s var(--ease) both; }
.brand:hover .mark polygon:nth-child(2) { animation-delay: .05s; }
.brand:hover .mark polygon:nth-child(3) { animation-delay: .1s; }
.brand:hover .mark polygon:nth-child(4) { animation-delay: .15s; }
.brand:hover .mark polygon:nth-child(5) { animation-delay: .2s; }
.brand:hover .mark polygon:nth-child(6) { animation-delay: .25s; }
.brand:hover .mark polygon:nth-child(7) { animation-delay: .3s; }
@keyframes seg { from { opacity: .15; } }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.find {
  display: flex; align-items: center; gap: 10px;
  width: 280px; height: 40px; padding: 0 8px 0 12px;
  background: var(--surface); color: var(--faint);
  border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-s);
  text-decoration: none; font-size: .9375rem;
  transition: border-color .15s, box-shadow .15s;
}
.find:hover { border-color: var(--field-line); box-shadow: var(--shadow); }
.find-t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: 12px;
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* ---------- menu ----------
   A panel shows when its button says it is expanded. Without the script,
   hovering or focusing a category still opens it on a wide screen. */
.menu-list, .menu-tools, .menu-extra { list-style: none; margin: 0; padding: 0; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 10px 0 12px; white-space: nowrap;
  background: transparent; color: var(--muted);
  border: 0; border-radius: 11px;
  font-size: .9375rem; font-weight: 580;
  transition: background-color .15s, color .15s;
}
.menu-btn > .i:first-child { color: var(--accent-ink); }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--text); background: var(--surface-2); }
.menu-btn.is-current { color: var(--text); }
.menu-btn .i-chevron { width: 16px; height: 16px; color: var(--faint); transition: transform .2s var(--ease); }
.menu-btn[aria-expanded="true"] .i-chevron { transform: rotate(180deg); }
.menu-btn[aria-expanded="false"] + .menu-panel { display: none; }
.menu-intro > .tile { --t: 48px; }
.menu-name { margin-top: 16px; font-weight: 720; font-size: 1.125rem; letter-spacing: -.02em; }
.menu-lede { margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.menu-all {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  color: var(--accent-ink); font-size: .875rem; font-weight: 620; text-decoration: none;
}
.menu-all .i { width: 16px; height: 16px; transition: transform .15s var(--ease); }
.menu-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.menu-all:hover .i { transform: translateX(3px); }
.menu-link {
  display: flex; align-items: flex-start; gap: 12px; min-width: 0;
  padding: 9px 10px; border-radius: 12px;
  color: inherit; text-decoration: none;
  transition: background-color .12s;
}
.menu-link .tile { --t: 38px; }
.menu-link-b { display: flex; flex-direction: column; min-width: 0; }
.menu-link-t { font-weight: 620; font-size: .9375rem; line-height: 1.3; }
.menu-link-d {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  margin-top: 1px; color: var(--muted); font-size: .8125rem; line-height: 1.4;
}
.menu-link:hover { background: var(--surface-2); }
.menu-link:hover .tile, .menu-link[aria-current] .tile { color: #fff; background: var(--solid); box-shadow: var(--shadow-glow); }
.menu-link[aria-current] { background: var(--accent-soft); }
.menu-extra a { display: inline-flex; align-items: center; gap: 8px; }
.menu-extra .i { width: 16px; height: 16px; color: var(--faint); }
.burger { display: none; }
.burger .i-close { display: none; }

@media (min-width: 960px) {
  .menu { margin-left: 18px; }
  .menu-list { display: flex; gap: 2px; }
  .menu-panel {
    position: absolute; z-index: 40; top: calc(100% + 8px); left: var(--gutter);
    width: min(1120px, calc(100% - 2 * var(--gutter)));
    display: grid; grid-template-columns: 268px minmax(0, 1fr);
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: var(--shadow-pop); overflow: hidden;
    animation: pop .2s var(--ease);
  }
  .menu-intro {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 24px;
    background:
      linear-gradient(to right, var(--grid) 1px, transparent 1px) 0 0 / 22px 22px,
      linear-gradient(to bottom, var(--grid) 1px, transparent 1px) 0 0 / 22px 22px,
      radial-gradient(120% 80% at 0% 0%, var(--accent-soft), transparent 70%), var(--surface-2);
    border-right: 1px solid var(--line);
  }
  .menu-tools {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 12px; align-content: start;
    /* a long category scrolls inside the panel, which never runs off the screen */
    max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain;
  }
  .menu-extra { display: none; }
  html:not(.js) .menu-item:hover > .menu-panel,
  html:not(.js) .menu-item:focus-within > .menu-panel { display: grid; }
}
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.985); } }

/* On a narrow screen the menu is a sheet under the header, behind ☰. */
@media (max-width: 959px) {
  .js .burger { display: grid; }
  .menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 40px;
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .menu-open { overflow: hidden; }
  .menu-open .menu { display: block; animation: sheet .22s var(--ease); }
  .menu-open .top { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .burger .i-menu { display: none; }
  .menu-open .burger .i-close { display: block; }
  .menu-btn {
    width: 100%; height: 54px; padding: 0 12px;
    color: var(--text); font-size: 1.0625rem; font-weight: 700;
  }
  .menu-btn > span { flex: 1; text-align: left; }
  .menu-intro { display: flex; flex-direction: column; padding: 0 12px 8px; }
  .menu-intro > .tile, .menu-name { display: none; }
  .menu-all { margin-top: 10px; }
  .menu-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 4px 0 12px; }
  .menu-extra { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; padding: 18px 12px 0; border-top: 1px solid var(--line); }
  .menu-extra a { padding: 6px 0; color: var(--muted); font-size: .9375rem; text-decoration: none; }
  .menu-extra a:hover, .menu-extra [aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
  .find { width: 40px; padding: 0; justify-content: center; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
  .find:hover { background: var(--surface-2); border-color: transparent; box-shadow: none; color: var(--text); }
  .find-t, .find kbd { display: none; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .menu-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* the categories take the room first: just under 1100px, the search is its icon */
@media (min-width: 960px) and (max-width: 1099px) {
  .find { width: 40px; padding: 0; justify-content: center; border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
  .find:hover { background: var(--surface-2); border-color: transparent; box-shadow: none; color: var(--text); }
  .find-t, .find kbd { display: none; }
}
@keyframes sheet { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- home ---------- */
.hero { position: relative; padding: 80px 0 8px; text-align: center; overflow-x: clip; }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 4px 14px 4px 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
  font-size: .8125rem; color: var(--muted);
}
.pill-n {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: var(--solid-ink); color: #fff; box-shadow: var(--shadow-glow);
  font-size: .75rem; font-weight: 700; line-height: 1.2;
}
.pill-n .i { width: 14px; height: 14px; }
.hero h1 {
  margin-top: 26px; max-width: 15ch;
  font-size: clamp(2.5rem, 1.35rem + 3.9vw, 4.5rem); line-height: 1.01; letter-spacing: -.048em; font-weight: 800;
  text-wrap: balance;
}
.hl { color: var(--accent-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hl {
    background: linear-gradient(100deg, var(--accent-ink) 10%, var(--accent) 55%, var(--accent-ink) 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.hero .lede { margin-top: 22px; max-width: 54ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--muted); text-wrap: balance; }
.hero .filter { width: 100%; text-align: left; }
.filter {
  position: relative; display: flex; align-items: center; gap: 12px;
  margin-top: 36px; max-width: 660px; height: 62px; padding: 0 14px 0 20px;
  background: var(--surface); border: 1px solid var(--field-line); border-radius: 18px;
  box-shadow: var(--shadow-lift), 0 0 0 6px color-mix(in srgb, var(--accent-soft) 70%, transparent);
  transition: border-color .15s, box-shadow .15s;
}
.filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring), var(--shadow-lift); }
.filter > .i { color: var(--accent-ink); width: 21px; height: 21px; }
.filter input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font-size: 1.0625rem;
}
.filter input::placeholder { color: var(--faint); }
.filter input::-webkit-search-cancel-button { display: none; }
.try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; max-width: 100%; }
.try-l { font-size: .875rem; color: var(--muted); margin-right: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 4px;
  background: var(--surface); color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-s);
  font-size: .875rem; font-weight: 580;
  transition: border-color .15s, box-shadow .15s, transform .2s var(--ease);
}
.chip .tile { --t: 30px; border-radius: 999px; }
.chip:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.chip:hover .tile { color: #fff; background: var(--solid); }

/* the tools' icons float around the title on a wide screen */
.hero-float { position: absolute; inset: 0; pointer-events: none; display: none; }
.hf { position: absolute; --r: 0deg; animation: float 7s ease-in-out infinite; }
.hf .tile {
  --t: 62px; color: var(--accent-ink);
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--tile-b)));
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line), inset 0 1px 0 var(--tile-hi);
}
.hf:nth-child(odd) .tile { color: #fff; background: var(--solid); box-shadow: var(--shadow-glow), var(--shadow-lift); }
.hf:nth-child(1) { top: 120px; left: calc(50% - 610px); --r: -10deg; }
.hf:nth-child(2) { top: 290px; left: calc(50% - 520px); --r: 8deg; animation-delay: -1.5s; animation-duration: 8s; }
.hf:nth-child(3) { top: 470px; left: calc(50% - 640px); --r: -4deg; animation-delay: -3s; }
.hf:nth-child(4) { top: 36px; left: calc(50% - 440px); --r: 12deg; animation-delay: -4.5s; animation-duration: 9s; }
.hf:nth-child(5) { top: 70px; left: calc(50% + 470px); --r: 10deg; animation-delay: -2s; }
.hf:nth-child(6) { top: 250px; left: calc(50% + 560px); --r: -8deg; animation-delay: -3.5s; animation-duration: 8.5s; }
.hf:nth-child(7) { top: 440px; left: calc(50% + 470px); --r: 6deg; animation-delay: -5s; }
.hf:nth-child(8) { top: 30px; left: calc(50% + 380px); --r: -12deg; animation-delay: -6s; animation-duration: 9.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r) * -.4)); }
}
@media (min-width: 1240px) { .hero-float { display: block; } }

/* the figures under the title */
.strip {
  list-style: none; margin: 56px auto 0; padding: 0; max-width: 1000px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); text-align: left;
}
.strip li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 18px 20px; background: color-mix(in srgb, var(--surface) 94%, transparent);
}
.strip .tile { --t: 46px; grid-row: span 2; }
.strip b { font-size: 1.625rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.strip li > span:last-child { color: var(--muted); font-size: .8125rem; line-height: 1.35; }
@media (max-width: 559px) {
  .hero { padding-top: 40px; }
  .filter { height: 56px; padding-left: 16px; margin-top: 28px; }
  .filter input { font-size: 1rem; }
  .filter kbd { display: none; }
  .try { display: none; }
  .strip { margin-top: 32px; grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .strip li { padding: 14px; column-gap: 10px; }
  .strip .tile { --t: 38px; }
  .strip b { font-size: 1.25rem; }
}
.filter-page { margin-top: 24px; box-shadow: var(--shadow); padding-right: 6px; }
.filter-page .btn { height: 44px; }

.cat { margin-top: 72px; }
.cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.cat-head > .tile { --t: 54px; }
.cat-title { flex: 1; min-width: 0; }
.cat-head h2 { font-size: 1.625rem; letter-spacing: -.03em; font-weight: 750; }
.cat-head h2 a { text-decoration: none; }
.cat-head h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.cat-head p { margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.cat-n {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  color: var(--muted); font-size: .8125rem; font-weight: 600;
}
.cat-n .i { width: 15px; height: 15px; color: var(--accent-ink); }
@media (max-width: 559px) {
  .cat { margin-top: 48px; }
  .cat-head { align-items: flex-start; gap: 14px; }
  .cat-head > .tile { --t: 46px; }
  .cat-head h2 { font-size: 1.3125rem; }
  .cat-n { display: none; }
}
.empty { margin-top: 32px; color: var(--muted); }

/* section headings with their tile */
.sec-h, .prose h2, .faq h2, .related h2 { display: flex; align-items: center; gap: 12px; }
.sec-h { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.035em; font-weight: 760; margin-bottom: 28px; }
.sec-h .tile { --t: 42px; }

.steps { margin-top: 104px; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.step, .perk {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 24px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-s);
  transition: border-color .2s, box-shadow .2s, transform .25s var(--ease);
}
.step .tile, .perk .tile { --t: 50px; margin-bottom: 12px; }
.step b, .perk b { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; }
.step > span:last-child, .perk > span:last-child { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.step-n {
  position: absolute; top: 22px; right: 22px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-size: .8125rem; font-weight: 750;
}
.step:hover, .perk:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.step:hover .tile, .perk:hover .tile { color: #fff; background: var(--solid); box-shadow: var(--shadow-glow); transform: rotate(-6deg) scale(1.05); }

.perks { margin-top: 20px; }
.perks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.perk { padding: 22px; }
.perk .tile { --t: 44px; }

/* ---------- cards ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); }
.grid-s { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card-li { display: flex; }
.card {
  flex: 1; position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto;
  grid-template-areas: "g a" "b b" "u u"; gap: 16px 12px;
  padding: 20px 20px 18px; background: var(--surface); color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-s);
  transition: border-color .2s, box-shadow .2s, transform .25s var(--ease);
}
/* a soft light follows the pointer over a card (core.js sets --x, --y) */
.card::before, .step::before, .perk::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, -20%), var(--spot), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before, .step:hover::before, .perk:hover::before { opacity: 1; }
.card > .tile { grid-area: g; --t: 50px; }
.card > .i-arrow {
  grid-area: a; display: block; width: 34px; height: 34px; padding: 8px; border-radius: 999px;
  color: var(--faint); background: var(--surface-2); transform: rotate(-45deg);
  transition: color .2s, background-color .2s, transform .25s var(--ease);
}
.card-b { grid-area: b; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-t { font-weight: 680; font-size: 1.0625rem; letter-spacing: -.015em; line-height: 1.3; }
.card-d { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.card-u { grid-area: u; font: .75rem/1.2 var(--mono); color: var(--faint); }
.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card:hover > .tile, .card:focus-visible > .tile { color: #fff; background: var(--solid); box-shadow: var(--shadow-glow); transform: rotate(-6deg) scale(1.05); }
.card:hover > .i-arrow, .card:focus-visible > .i-arrow { color: #fff; background: var(--accent-ink); transform: rotate(0deg); }
.card:hover .card-u { color: var(--accent-ink); }
@media (max-width: 559px) {
  .grid { gap: 10px; }
  .card { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "g b" "g u"; gap: 6px 14px; padding: 14px 16px; }
  .card > .tile { --t: 44px; }
  .card > .i-arrow { display: none; }
  .card:hover { transform: none; }
}

/* Cards, steps and perks rise into place as they scroll into view, where
   the browser ties animations to scrolling; elsewhere they simply are there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .card-li, .step, .perk, .strip li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.97); } }

/* ---------- inner pages ---------- */
.page { padding-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; color: var(--faint); }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.crumbs .i { width: 15px; height: 15px; color: var(--accent-ink); }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--text); font-weight: 580; }
.page-head { display: flex; align-items: flex-start; gap: 20px; margin-top: 22px; }
.page-head > .tile { --t: 66px; border-radius: 20px; }
.page-head h1 { font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.75rem); line-height: 1.08; letter-spacing: -.038em; font-weight: 780; text-wrap: balance; }
.page-head .lede { margin-top: 8px; color: var(--muted); font-size: 1.0625rem; max-width: 66ch; }
.page-head + .grid { margin-top: 36px; }
.tool-title { flex: 1 1 auto; min-width: 0; }
.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
@media (max-width: 559px) {
  .page { padding-top: 16px; }
  .page-head { gap: 14px; margin-top: 14px; }
  .page-head + .grid { margin-top: 24px; }
  .page-head > .tile { --t: 50px; border-radius: 15px; }
  .page-head .lede { font-size: 1rem; }
  /* the tile beside the title only; the rest takes the full width */
  .tool-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 14px; }
  .tool-title { display: contents; }
  .tool-head .lede, .tool-head .tool-meta { grid-column: 1 / -1; }
  .tool-head .lede { margin-top: 12px; }
  .tool-head h1 { font-size: 1.625rem; }
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; font-size: .8125rem; font-weight: 600;
  color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ok) 22%, transparent);
}
.badge .i { width: 15px; height: 15px; }
.badge-n { color: var(--muted); background: var(--surface); border-color: var(--line-2); }
@media (max-width: 559px) { .badge-n { display: none; } }
.badge-n .i { color: var(--accent-ink); }
.url {
  display: inline-grid; height: 30px; padding: 0 12px; border-radius: 999px;
  font: 600 .8125rem/1 var(--mono); color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-s);
  transition: border-color .15s;
}
.url:hover { border-color: var(--field-line); }
.url .i { width: 14px; height: 14px; color: var(--faint); }
.url .b-l .i:first-child { color: var(--accent-ink); }
.sub { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; letter-spacing: -.02em; margin: 40px 0 16px; }
.sub .i { width: 20px; height: 20px; color: var(--accent-ink); }
.draft { margin-top: 24px; padding: 28px 24px; border: 1px dashed var(--accent-line); background: var(--accent-soft); border-radius: var(--r); color: var(--text); }
.noscript { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-s); background: var(--surface-2); color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 12px; white-space: nowrap;
  font-size: .875rem; font-weight: 600; letter-spacing: -.005em; text-decoration: none;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: var(--shadow-s);
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--field-line); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 16px; height: 16px; }
.btn-main { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .18), inset 0 1px 0 rgb(255 255 255 / .12); }
.btn-main:hover { background: color-mix(in srgb, var(--ink) 84%, var(--accent)); border-color: color-mix(in srgb, var(--ink) 84%, var(--accent)); }
.btn-quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); padding: 0 10px; }
.btn-quiet .i { color: var(--accent-ink); }
.btn-quiet:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
/* white text needs the darker end of the orange: #c2410c is 5.2:1 */
.btn-accent {
  height: 46px; padding: 0 20px; border-radius: 14px; font-size: .9375rem;
  color: #fff; border: 0; background: var(--solid-ink);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgb(255 255 255 / .2);
}
.btn-accent:hover { background: linear-gradient(145deg, #b13a0a, #8a2e10); }
/* Copy buttons hold both labels in one cell, so the switch to "Copiat"
   never changes their width. */
[data-act="copy"], .url { display: inline-grid; }
[data-act="copy"] > span, .url > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.b-ok { visibility: hidden; }
.done .b-l { visibility: hidden; }
.done .b-ok { visibility: visible; }
.btn-main.done { background: var(--ok); border-color: var(--ok); color: var(--on-ink); }
.url.done { color: var(--ok); border-color: var(--ok); }

/* ---------- workspace ---------- */
.tool { margin-top: 28px; }
.ws { display: grid; gap: 16px; }
.pane {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--field-line); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.pane:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring), var(--shadow); }
.pane-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 52px; padding: 7px 8px 7px 16px;
  background: linear-gradient(var(--surface), color-mix(in srgb, var(--surface-2) 60%, var(--surface)));
  border-bottom: 1px solid var(--line);
}
.pane-t { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; line-height: 1.25; white-space: nowrap; font-weight: 680; color: var(--text); letter-spacing: -.005em; }
.pane-t .i { width: 17px; height: 17px; color: var(--accent-ink); }
/* a note that does not fit beside the title goes under it, whole: an error
   cut short by "…" would hide the part that says what is wrong */
/* the title side takes the room the buttons leave, so a note that appears
   later wraps inside it and never pushes the buttons into a new layout */
.pane-tl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; flex: 1 1 0; }
.pane-note { font: .75rem/1.3 var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.pane-note.is-err { color: var(--err); }
.field-code { white-space: pre; overflow-x: auto; overflow-wrap: normal; }
/* one long line (a token, Base64, an address): broken anywhere, never scrolled sideways */
.field-code.field-wrap { white-space: pre-wrap; overflow-x: hidden; overflow-wrap: anywhere; word-break: break-all; }
.credit { margin-top: 12px; font-size: .8125rem; color: var(--faint); }
.credit a { color: var(--muted); }
.pane-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.field-text {
  display: block; width: 100%; min-height: 240px; flex: 1;
  margin: 0; padding: 16px 18px; border: 0; outline: none; resize: vertical;
  background: transparent; color: var(--text);
  font: .9375rem/1.7 var(--mono); tab-size: 4;
}
.field-text::placeholder { color: var(--faint); }
.field-prose { font: 1rem/1.7 var(--font); }
.pane-out .field-text { background: var(--surface-2); }
.status {
  min-height: 34px; padding: 8px 16px; border-top: 1px solid var(--line);
  background: var(--surface);
  font: .75rem/1.5 var(--mono); color: var(--faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 960px) {
  .field-text { min-height: 360px; }
  .ws-io { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ws-io .opts { grid-column: 1 / -1; }
  .ws-gen .field-text { min-height: 420px; }
  .ws-side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

/* options: chips for radios, checkboxes; they work without the script */
.opts {
  margin: 0; padding: 16px 18px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-s);
}
.opts-l { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 12px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.opts-l .i { width: 15px; height: 15px; color: var(--accent-ink); }
/* a floated legend is laid out inside the box, not across its border */
legend.opts-l { float: left; width: 100%; }
legend.opts-l + * { clear: both; }
.opts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.opts-next { margin-top: 14px; }
.opts-inline { display: inline-flex; margin: 0; }
.check b { font-weight: 640; color: var(--text); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-o { position: relative; display: inline-flex; }
.seg-o input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg-o span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
  font: 500 .8125rem/1 var(--mono); white-space: nowrap;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-s);
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.seg-o:hover span { border-color: var(--field-line); background: var(--surface-2); }
.seg-o input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 2px 8px -2px rgb(0 0 0 / .3); }
.seg-o input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); cursor: pointer; }
.check:hover { color: var(--text); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.opts-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
/* typed options: a search term, a number, a font */
.opts-fields { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 720px) { .opts-fields { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .8125rem; font-weight: 620; color: var(--muted); }
.field-in {
  width: 100%; height: 40px; padding: 0 12px;
  font: 400 .9375rem/1 var(--mono); color: var(--text);
  background: var(--surface); border: 1px solid var(--field-line); border-radius: var(--r-s);
  transition: border-color .15s, box-shadow .15s;
}
.field-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.field-in.num { width: 7.5rem; }
select.field-in { font-family: var(--font); padding-right: 32px; cursor: pointer; }
.field-inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: .875rem; }
.field-hint { font-weight: 400; color: var(--faint); font-size: .75rem; }
.field-hint code { font-size: .75rem; }

/* counter stats: above the text on a phone (visible while the keyboard is
   up), a sticky column beside it on a wide screen */
.stats { order: -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-s);
}
.stat-n { font-size: 1.25rem; font-weight: 750; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.stat-l { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.stat-l .i { width: 14px; height: 14px; color: var(--accent-ink); }
.stat-main .stat-n { color: var(--accent-ink); }
@media (max-width: 559px) { .stat-l .i { display: none; } }
@media (min-width: 960px) {
  .stats { order: 0; grid-template-columns: 1fr 1fr; gap: 10px; position: sticky; top: calc(var(--header-h) + 16px); }
  .stat { padding: 14px 16px; border-radius: 16px; }
  .stat-n { font-size: 1.5rem; }
  .stat-l { font-size: .8125rem; }
  .stat-main {
    grid-column: 1 / -1; padding: 22px 22px 20px; border-color: var(--accent-line);
    background: radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 70%), var(--surface);
    box-shadow: var(--shadow);
  }
  .stat-main .stat-n { font-size: 3.5rem; letter-spacing: -.05em; }
  .stat-main .stat-l { font-size: .875rem; color: var(--text); font-weight: 600; }
}

/* ---------- explanatory text ---------- */
.info { margin-top: 80px; display: grid; gap: 48px; }
@media (min-width: 960px) { .info { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: start; } }
.prose section + section { margin-top: 44px; }
.prose h2, .related h2 { font-size: 1.375rem; margin-bottom: 14px; letter-spacing: -.025em; font-weight: 720; }
.prose h2 .tile, .faq h2 .tile, .related h2 .tile { --t: 36px; }
.prose p { max-width: 68ch; line-height: 1.75; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose p + p { margin-top: 12px; }
.prose strong { font-weight: 650; color: var(--text); }
.prose a, .faq a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose code, .faq code {
  font-size: .875em; padding: .1em .38em; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.faq {
  padding: 22px 24px 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.faq h2 { font-size: 1.125rem; margin-bottom: 8px; letter-spacing: -.02em; font-weight: 720; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0;
  font-weight: 620; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px;
  border-radius: 999px; background: var(--surface-2);
  font: 500 1rem/1 var(--mono); color: var(--muted);
  transition: transform .2s var(--ease), background-color .15s, color .15s;
}
.faq summary:hover::after { background: var(--accent-soft); color: var(--accent-ink); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent-ink); }
.faq details p { padding: 0 32px 16px 0; color: var(--muted); line-height: 1.65; }
.related { margin-top: 80px; }
@media (max-width: 559px) {
  .faq { padding: 18px 18px 6px; }
  .info, .related { margin-top: 56px; }
}

/* ---------- ad slots (drawn only when the server is told to) ---------- */
.ad {
  display: grid; place-items: center; min-height: 120px; margin-top: 32px;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  color: var(--faint); font-size: .8125rem;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--surface-2) 10px 20px);
}
@media (max-width: 559px) { .ad { min-height: 250px; } }

/* ---------- footer ----------
   Dark in both themes: the footer sets its own text tokens. The search
   band rides on its top edge. */
.foot {
  --text: #f5f5f4; --muted: #b4ada7; --faint: #9d9690; --line: rgb(255 255 255 / .1);
  --accent-ink: #fb923c; --ok: #4ade80; --surface-2: rgb(255 255 255 / .06);
  color-scheme: dark;
  margin-top: 150px; background: var(--foot-bg); color: var(--text);
  border-top: 1px solid var(--line);
}
.foot-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px;
  margin-top: -64px; padding: 26px 28px;
  border-radius: 24px; border: 1px solid rgb(255 255 255 / .1);
  background:
    radial-gradient(60% 140% at 0% 0%, rgb(249 115 22 / .35), transparent 60%),
    radial-gradient(50% 120% at 100% 100%, rgb(245 158 11 / .18), transparent 60%),
    linear-gradient(120deg, #221a15, #120f0d);
  box-shadow: var(--shadow-pop);
}
.foot-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
}
.foot-cta > .tile { --t: 52px; }
.foot-cta-b { flex: 1 1 280px; min-width: 0; }
.foot-cta-h { font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.foot-cta-b p + p { margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-block: 56px 44px; }
.foot-brand { flex: 1 1 260px; max-width: 380px; }
.foot-brand .brand { padding-left: 0; }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.foot-local { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem !important; }
.foot-local .i { width: 16px; height: 16px; margin-top: 3px; color: var(--ok); }
.foot-col { flex: 0 1 auto; min-width: 160px; }
.foot-col h2 { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-col h2 a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.foot-col h2 .i { width: 16px; height: 16px; color: var(--accent-ink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li a { display: inline-flex; align-items: center; gap: 9px; padding: 5px 0; color: var(--muted); font-size: .9375rem; text-decoration: none; transition: color .15s; }
.foot-col li .i { width: 16px; height: 16px; color: var(--faint); transition: color .15s, transform .2s var(--ease); }
.foot-col li a:hover, .foot-col h2 a:hover, .foot-col [aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-col li a:hover .i { color: var(--accent-ink); transform: scale(1.12); }
.foot-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--accent-ink); font-size: .875rem; font-weight: 620; text-decoration: none; }
.foot-more .i { width: 16px; height: 16px; }
.foot-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--faint); }
.foot-end-r { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); }
.foot-end-r .i { width: 14px; height: 14px; }
.page-doc .prose { margin-top: 32px; }
@media (max-width: 559px) {
  .foot { margin-top: 120px; }
  .foot-cta { padding: 22px 20px; }
  .foot-cta .btn-accent { width: 100%; }
  .foot-in { gap: 32px; padding-block: 44px 32px; }
  .foot-cat ul { column-gap: 20px; }
}

/* ---------- finder (the palette behind "/" and Ctrl+K) ---------- */
.finder {
  width: min(660px, calc(100vw - 2 * var(--gutter))); max-height: min(580px, 80vh);
  margin: 12vh auto auto; padding: 0;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.finder[open] { display: flex; flex-direction: column; animation: pop .2s var(--ease); }
.finder::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.finder-box { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--line); }
.finder-box > .i { color: var(--accent-ink); width: 21px; height: 21px; }
.finder-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 1.0625rem; }
.finder-box input::-webkit-search-cancel-button { display: none; }
.finder-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; flex: 1; }
.finder-list a {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 14px; text-decoration: none; color: inherit;
}
.finder-list .tile { --t: 38px; }
.finder-list b { display: block; font-weight: 620; font-size: .9375rem; }
.finder-list small { display: block; color: var(--muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-list .mono { font-size: .75rem; color: var(--faint); }
.finder-list [aria-selected="true"] a { background: var(--surface-2); }
.finder-list [aria-selected="true"] .tile { color: #fff; background: var(--solid); box-shadow: var(--shadow-glow); }
.finder-empty { padding: 18px 12px; color: var(--muted); }
.finder-hint { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .75rem; color: var(--faint); }
.finder-hint .i { width: 16px; height: 16px; }
@media (max-width: 559px) {
  .finder { margin-top: 8px; max-height: calc(100vh - 16px); }
  .finder-list .mono { display: none; }
  .finder-hint { display: none; }
}

/* ---------- pieces several tools share ---------- */
.pane-wide { grid-column: 1 / -1; }
.probe { padding: 14px 16px; }
.probe-v { margin: 10px 0 0; font: .875rem/1.5 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.probe-v.is-err { color: var(--err); }
.kv { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.kv th, .kv td { padding: 10px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.kv > tbody:first-child > tr:first-child > *, .kv thead th { border-top: 0; }
.kv th { color: var(--muted); font-weight: 600; font-size: .875rem; }
.kv tbody th { width: 1%; white-space: nowrap; }
.kv td { overflow-wrap: anywhere; }
.kv .mono, .kv code { font-family: var(--mono); font-size: .8125rem; }
.kv-v { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: inherit; font: .8125rem/1.6 var(--mono); text-overflow: ellipsis; }
.kv-act { width: 1%; padding-block: 6px !important; text-align: right; }
.kv-act .btn { height: 30px; }
.verdict { margin: 0; padding: 14px 18px; border-radius: var(--r); background: var(--surface-2); color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.verdict:empty { display: none; }
.verdict.is-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.verdict.is-err { color: var(--err); background: color-mix(in srgb, var(--err) 8%, var(--surface)); }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- the design tools: settings beside a preview ---------- */
@media (min-width: 960px) { .ws-design { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; } }
@media (min-width: 1180px) { .ws-design { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); } }
@media (min-width: 960px) { .ws-design > .pane-sticky { position: sticky; top: calc(var(--header-h) + 16px); } }
.ws-design .pane-wide { grid-column: 1 / -1; }
.set { display: grid; gap: 14px; padding: 16px 18px; }
.set-h { margin: 6px 0 -4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.range { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 4rem; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.range input { width: 100%; margin: 0; accent-color: var(--accent); }
.range output { font: .8125rem var(--mono); color: var(--text); text-align: right; }
.color-field { display: flex; align-items: center; gap: 8px; min-width: 0; }
.color-field .field-in { flex: 1; min-width: 0; font-family: var(--mono); }
input[type="color"] { flex: none; width: 44px; height: 44px; padding: 3px; border: 1px solid var(--field-line); border-radius: 12px; background: var(--surface); cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 8px; }
input[type="color"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.checker { background-color: var(--surface); background-image: conic-gradient(var(--surface-2) 25%, transparent 0 50%, var(--surface-2) 0 75%, transparent 0); background-size: 18px 18px; }
.stage { display: grid; place-items: center; min-height: 320px; padding: 36px 24px; overflow: hidden; }
.swatches { display: grid; gap: 12px; padding: 16px 18px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.sw { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; color: var(--muted); font: .75rem/1.3 var(--mono); text-align: left; cursor: pointer; }
.sw-c { display: block; aspect-ratio: 1; border-radius: 14px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); transition: transform .15s var(--ease); }
.sw:hover .sw-c { transform: translateY(-2px); }
.sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 14px; }
.sw b { color: var(--text); font-weight: 650; }
.items { display: grid; gap: 10px; }
.item { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.item-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8125rem; font-weight: 650; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}
@media print {
  .top, .foot, .finder, .ad, .pane-act, .tool-meta, .perks, .steps, .hero-float { display: none !important; }
  main::before, main::after { display: none; }
}
