/* Dark, dense, tinkerer-forum look: charcoal panels, one hot orange accent, monospace labels. */
:root {
  --hdr: 52px;   /* height of the sticky glass header (border included); pinned panels sit below it */
  --bg: #111315;
  --bg2: #16191c;
  --panel: #1c1f23;
  --panel2: #22262b;
  --text: #e8e6e3;
  --muted: #9a9fa6;
  --line: #2e3338;
  --accent: #ff8a1f;
  --accent-dim: #ff8a1f33;
  --accent-text: #161616;
  --danger: #ff6b5e;
  --soft: #262a30;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 2px 8px rgba(0, 0, 0, .35);
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-text); }

header.top {
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; height: 52px;
  /* GlassCard-style frosted bar; it stays at the top so the page (and the home page orbs) slide under the glass */
  background: rgba(17, 19, 22, .32);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 2px solid var(--accent);
  position: sticky; top: 0; z-index: 50;
}
header.top a.home {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: .02em;
}
/* The logo (Lucide "layers") cut out of the brand gradient, so it follows --brand-grad. */
header.top .mark {
  width: 24px; height: 24px; flex: none; background: var(--brand-grad);
  -webkit-mask: var(--logo-mask) center / contain no-repeat; mask: var(--logo-mask) center / contain no-repeat;
}
/* Site name: Architects Daughter in a gradient. All ten gradients are wired in; the one showing is
   picked by --brand-grad below. To switch, point it at another, or put data-brand="nebula" (etc.) on <html>. */
@font-face { font-family: "Architects Daughter"; src: url("vendor/fonts/architects-daughter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --grad-nebula: linear-gradient(90deg, #ff8a1f, #ff3d7f 50%, #a855f7);
  --grad-sunset: linear-gradient(90deg, #ffd23f, #ff8a1f 45%, #ff2e63);
  --grad-synthwave: linear-gradient(90deg, #00e5ff, #7c4dff 50%, #ff2bd6);
  --grad-aurora: linear-gradient(90deg, #3dffa8, #1fd1ff 50%, #8b5cf6);
  --grad-galaxy: linear-gradient(90deg, #6a5cff, #c43dff 50%, #ff6ec7);
  --grad-fire: linear-gradient(90deg, #ff1f1f, #ff7a00 50%, #ffe14d);
  --grad-tropic: linear-gradient(90deg, #b6ff3d, #2bffcf 50%, #2b9bff);
  --grad-candy: linear-gradient(90deg, #ff9a9e, #fad0c4 30%, #a18cd1 65%, #84fab0);
  --grad-gold: linear-gradient(90deg, #fff3a3, #ffc93c 40%, #ff8a1f 75%, #ffd86b);
  --grad-rainbow: linear-gradient(90deg, #ff3d3d, #ff9f1c, #ffe14d, #3dff8b, #1fb6ff, #a855f7);
  --brand-grad: var(--grad-sunset);
  --logo-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0.4 0.4 23.2 23.2' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E%3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3C/svg%3E");
}
html[data-brand="nebula"] { --brand-grad: var(--grad-nebula); } html[data-brand="sunset"] { --brand-grad: var(--grad-sunset); }
html[data-brand="synthwave"] { --brand-grad: var(--grad-synthwave); } html[data-brand="aurora"] { --brand-grad: var(--grad-aurora); }
html[data-brand="galaxy"] { --brand-grad: var(--grad-galaxy); } html[data-brand="fire"] { --brand-grad: var(--grad-fire); }
html[data-brand="tropic"] { --brand-grad: var(--grad-tropic); } html[data-brand="candy"] { --brand-grad: var(--grad-candy); }
html[data-brand="gold"] { --brand-grad: var(--grad-gold); } html[data-brand="rainbow"] { --brand-grad: var(--grad-rainbow); }
header.top .brand {
  font: 400 1.35rem/1 "Architects Daughter", system-ui, sans-serif; letter-spacing: .01em; padding-right: .08em;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
header.top .sep { color: var(--line); font-family: var(--mono); }
header.top > span:last-child { font-family: var(--mono); font-size: .85rem; color: var(--muted); }

main { max-width: 1100px; margin: 0 auto; padding: 26px 16px 60px; }
h1 {
  font-size: 1.7rem; margin: 0 0 6px; letter-spacing: -.01em;
  border-left: 4px solid var(--accent); padding-left: 12px;
}
h2 { font-size: 1.05rem; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 16px; max-width: 760px; }
h1.home-title { font-size: 1rem; line-height: 1.4; margin-bottom: 4px; }   /* home page: body-text size, still bold */
.privacy {
  display: inline-flex; gap: 6px; align-items: center;
  font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); border: 1px solid var(--accent-dim); background: rgba(255, 138, 31, .07);
  border-radius: 4px; padding: 6px 9px; margin-bottom: 16px;
}
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.panel h2, details.panel summary {
  font: 700 .78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--accent);
}
.drop {
  border: 1px dashed #454b52; border-radius: 6px; padding: 34px 16px;
  text-align: center; color: var(--muted); cursor: pointer;
  background: repeating-linear-gradient(-45deg, var(--panel), var(--panel) 12px, var(--bg2) 12px, var(--bg2) 24px);
  transition: border-color .15s;
}
.drop.over, .drop:hover { border-color: var(--accent); }
.drop strong { color: var(--text); font-size: 1.05rem; }
.drop input { display: none; }

button, .btn {
  font: inherit; font-size: .9rem; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  padding: 6px 13px; border-radius: 4px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px;
  transition: border-color .12s, background .12s;
}
button:hover, .btn:hover { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
button.primary:hover { background: #ff9d45; }
button.danger { color: var(--danger); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.on { background: var(--soft); border-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spacer { flex: 1; }
label.field { display: flex; flex-direction: column; gap: 4px; font: .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
label.field > * { text-transform: none; letter-spacing: normal; font-family: system-ui, sans-serif; }
input[type=text], input[type=number], input[type=date], input[type=email], input:not([type]), textarea, select {
  font: inherit; font-size: .92rem; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 4px; padding: 6px 8px; min-width: 0;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
input[type=range] { accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); }
textarea { resize: vertical; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
.status { font: .82rem var(--mono); color: var(--muted); min-height: 1.4em; }

/* Home page tools: colour-coded groups of frosted-glass tiles over a faint Sunset haze. --c = the group's colour. */
.grid-tools { position: relative; display: grid; gap: 30px; }
/* Colour orbs behind the home page, ported exactly from the GlassCard page (March 2026): three big blurred two-tone orbs
   on wide, wobbling orbits that swing across the whole screen and sometimes leave the middle clear. */
.orbs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .65; will-change: transform; }
.orbs i:nth-child(1) { background: radial-gradient(circle, #f72585 0%, #3a0ca3 80%); width: 45vw; height: 45vw; top: -15%; left: -15%; animation: orbit-wobble-1 43s infinite ease-in-out; }
.orbs i:nth-child(2) { background: radial-gradient(circle, #ff9e00 0%, #9d0208 80%); width: 40vw; height: 40vw; bottom: -10%; right: -15%; animation: orbit-wobble-2 37s infinite ease-in-out; }
.orbs i:nth-child(3) { background: radial-gradient(circle, #00f5d4 0%, #0077b6 80%); width: 35vw; height: 35vw; top: -5%; right: -10%; animation: orbit-wobble-3 53s infinite ease-in-out; }
@keyframes orbit-wobble-1 {
  0% { transform: translate3d(0, 0, 0) scale(1); } 20% { transform: translate3d(70vw, 15vh, 0) scale(1.3); } 40% { transform: translate3d(60vw, 75vh, 0) scale(.8); }
  60% { transform: translate3d(15vw, 85vh, 0) scale(1.1); } 80% { transform: translate3d(35vw, 35vh, 0) scale(1.4); } 100% { transform: translate3d(0, 0, 0) scale(1); } }
@keyframes orbit-wobble-2 {
  0% { transform: translate3d(0, 0, 0) scale(1.2); } 25% { transform: translate3d(-65vw, -5vh, 0) scale(.9); } 50% { transform: translate3d(-85vw, -65vh, 0) scale(1.1); }
  75% { transform: translate3d(-20vw, -45vh, 0) scale(1.4); } 100% { transform: translate3d(0, 0, 0) scale(1.2); } }
@keyframes orbit-wobble-3 {
  0% { transform: translate3d(0, 0, 0) scale(.8); } 33% { transform: translate3d(-75vw, 75vh, 0) scale(1.4); } 66% { transform: translate3d(-40vw, 20vh, 0) scale(.9); } 100% { transform: translate3d(0, 0, 0) scale(.8); } }
@media (max-width: 700px) { .orbs i:nth-child(1) { width: 70vw; height: 70vw; } .orbs i:nth-child(2) { width: 65vw; height: 65vw; } .orbs i:nth-child(3) { width: 60vw; height: 60vw; } }
@media (prefers-reduced-motion: reduce) { .orbs i { animation: none; } }
.tool-group[hidden] { display: none; }
.group-label { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 .72rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.group-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 14px; }
.tool-card {
  --c: var(--accent); position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; overflow: hidden;
  text-decoration: none; color: var(--text); border-radius: 16px;
  /* GlassCard "glass slab": clear frosted glass, deep shadow, GPU-forced so it never flickers */
  background: rgba(255, 255, 255, .02);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  transform: translate3d(0, 0, 0); backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 25px 50px rgba(0, 0, 0, .9);
  transition: transform .15s, border-color .15s;
}
.tool-group .tool-card { --c: inherit; }
.tool-card:hover { transform: translate3d(0, -3px, 0); border-color: rgba(255, 255, 255, .28); }
.tool-card .ico { width: 2.5rem; height: 2.5rem; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.tool-card .ico svg, header.top .search .results .ri svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tool-card p { margin: 0; color: #d4d7dc; font-size: .88rem; line-height: 1.45; }
.tool-card h3, .tool-card p, .tool-card .open { text-shadow: 0 1px 3px rgba(0, 0, 0, .75); }
.tool-card .tag { background: rgba(0, 0, 0, .35); color: #cfd3d8; }
.tool-card .txt { flex: 1; }
.tool-card .foot { display: flex; align-items: flex-end; gap: 8px; }
.tool-card .foot .tags { margin-top: 0; }
.tool-card .open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font: 600 .8rem system-ui, sans-serif; color: var(--c); white-space: nowrap; }
.tool-card .open .arr { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.tool-card:hover .open .arr { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .tool-card, .tool-card .open .arr { transition: none; } .tool-card:hover { transform: translate3d(0, 0, 0); } }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag { font: 600 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 4px 6px; }
.tag.hot { color: var(--accent); border-color: var(--accent-dim); }

code, pre { font-family: var(--mono); font-size: .84rem; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 10px; overflow-x: auto; color: #ffc48a; }
footer { text-align: center; color: var(--muted); font: .75rem var(--mono); padding: 24px 16px; }

details.explain { max-width: 760px; margin: -6px 0 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; font-size: .9rem; }
details.explain summary { cursor: pointer; padding: 9px 0; color: var(--accent); font-weight: 600; }
details.explain[open] { padding-bottom: 6px; }
details.explain p { margin: 0 0 10px; color: var(--muted); }
details.explain b { color: var(--text); }

/* header search */
header.top .search { margin-left: auto; position: relative; width: min(440px, 52vw); }
header.top .search input {
  width: 100%; height: 38px; padding: 0 40px 0 40px; border-radius: 999px;
  /* glass, with a deep shadow all round */
  /* sits on the glass header, so it shows the header's frosted colour through a clear sheen (a second blur here would only see the header) */
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .18); color: var(--text); font-size: .93rem;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
header.top .search input::placeholder { color: #8a9099; }
header.top .search input::-webkit-search-cancel-button { display: none; }
header.top .search input:hover { border-color: rgba(255, 255, 255, .24); }
header.top .search input:focus { outline: none; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,138,31,.18), 0 4px 12px rgba(0, 0, 0, .4); }
header.top .search .glass { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: #8a9099; stroke-width: 2.4; stroke-linecap: round; pointer-events: none; transition: stroke .15s; }
header.top .search:focus-within .glass { stroke: var(--accent); }
header.top .search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 600 .72rem var(--mono); color: #8a9099; border: 1px solid #4b525a; border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; pointer-events: none; }
header.top .search:focus-within kbd, header.top .search.has-text kbd { display: none; }
header.top .search .clear { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; border: none; background: #3a4047; color: var(--text); font-size: .7rem; }
header.top .search .clear[hidden] { display: none; }
header.top .search .clear:hover { background: var(--accent); color: var(--accent-text); }
header.top .search .results {
  position: absolute; right: 0; top: calc(100% + 8px); width: max(100%, 380px); max-width: calc(100vw - 24px);
  margin: 0; padding: 6px; list-style: none; z-index: 100;
  background: rgba(22, 25, 30, .78); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 18px 48px rgba(0, 0, 0, .8);
  animation: drop .12s ease-out;
}
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
header.top .search .results a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
header.top .search .results .ri { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); }
header.top .search .results .rt { display: flex; flex-direction: column; min-width: 0; }
header.top .search .results b { font-size: .92rem; font-weight: 650; }
header.top .search .results small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.top .search .results li.on a, header.top .search .results a:hover { background: var(--panel2); }
header.top .search .results li.on b, header.top .search .results a:hover b { color: var(--accent); }
header.top .search .results .empty { padding: 12px; color: var(--muted); font-size: .88rem; text-align: center; }
@media (max-width: 560px) { header.top .search { width: auto; flex: 1; } header.top .search kbd { display: none; } }
@media (max-width: 560px) { header.top > span { display: none; } }

/* how-to + questions section on each tool page */
.seo-help { max-width: 820px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.seo-help h2 { font: 700 .82rem var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin: 0 0 10px; }
.seo-help h2 + ol { margin-bottom: 28px; }
.seo-help ol { padding-left: 20px; margin: 0; }
.seo-help li { margin-bottom: 4px; }
.seo-help h3 { font-size: .98rem; color: var(--text); margin: 16px 0 4px; }
.seo-help p { margin: 0; }
.tool-card[hidden] { display: none; }
/* footer with every tool */
.site-foot { padding: 26px 16px 30px; color: var(--muted); font: .75rem var(--mono); }
.site-foot .foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-bottom: 16px; }
.site-foot .foot-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 400 1.3rem/1 "Architects Daughter", system-ui, sans-serif; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.site-foot .foot-brand .mark { width: 22px; height: 22px; background: var(--brand-grad); -webkit-mask: var(--logo-mask) center / contain no-repeat; mask: var(--logo-mask) center / contain no-repeat; }
.join-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; color: #fff; text-decoration: none; font: 600 .9rem system-ui, sans-serif;
  /* glass with a Discord-blue tint */
  background: linear-gradient(180deg, rgba(88, 101, 242, .42), rgba(88, 101, 242, .16));
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 12px rgba(0, 0, 0, .4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5); transition: background .15s, border-color .15s; }
.join-btn:hover { background: linear-gradient(180deg, rgba(88, 101, 242, .62), rgba(88, 101, 242, .3)); border-color: rgba(255, 255, 255, .32); }
.join-btn .dc, .hdr-discord .dc, .join-strip .dc { width: 18px; height: 18px; fill: currentColor; flex: none; }
.site-foot .foot-more { text-align: center; }
.site-foot .foot-more summary { cursor: pointer; font: .82rem system-ui, sans-serif; color: var(--muted); list-style: none; display: inline-block; padding: 4px 8px; }
.site-foot .foot-more summary::-webkit-details-marker { display: none; }
.site-foot .foot-more summary::after { content: " ▾"; } .site-foot .foot-more[open] summary::after { content: " ▴"; }
.site-foot .foot-more nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; max-width: 1000px; margin: 12px auto; font: .85rem system-ui, sans-serif; }
.site-foot .foot-more nav a { color: var(--muted); text-decoration: none; } .site-foot .foot-more nav a:hover { color: var(--accent); }
.site-foot .foot-more p { margin: 0; }
header.top .hdr-discord { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 36px; padding: 0 13px; border-radius: 999px; background: #5865f2; color: #fff; text-decoration: none; font: 600 .85rem system-ui, sans-serif; }
header.top .hdr-discord:hover { background: #4752c4; }
@media (max-width: 640px) { header.top .hdr-discord { width: 36px; padding: 0; justify-content: center; } header.top .hdr-discord span { display: none; } }
.join-strip { display: flex; align-items: center; gap: 12px; margin: 4px 0 20px; padding: 12px 16px; border: 1px solid #5865f255; border-radius: 10px; background: #5865f214; color: var(--text); text-decoration: none; font-size: .95rem; }
.join-strip .dc { width: 22px; height: 22px; color: #8b95ff; }
.join-strip .go { margin-left: auto; color: #8b95ff; font-weight: 700; white-space: nowrap; }
.join-strip:hover { border-color: #5865f2; background: #5865f222; }
@media (max-width: 520px) { .join-strip { flex-wrap: wrap; align-items: flex-start; } .join-strip > span:first-of-type { flex: 1 1 0; min-width: 0; } .join-strip .go { margin-left: 34px; } }
.seo-help .ask { margin: 18px 0 0; color: var(--muted); }
.seo-help .ask a { color: var(--accent); }
.status a.savelink { color: var(--accent, #ff8a1f); text-decoration: underline; font-weight: 600; display: inline-block; margin-top: 6px; }
.scanas { margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--line, #2a2f35); border-radius: 8px; font-size: .9rem; }
.scanas b { display: block; margin-bottom: 6px; font-size: .8rem; opacity: .8; }
.scanas .what-shows { white-space: pre-wrap; overflow-wrap: anywhere; }
.scanas code { display: block; margin-top: 4px; color: var(--accent); overflow-wrap: anywhere; }
label.chk { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin-bottom: 6px; cursor: pointer; }

/* ===== Calm theme (default) vs "lights on" =====
   The glass, orbs and gradients above only show with <html class="lights"> (the 💡 button in the header, remembered
   per visitor). Everyone else gets this plain tool-site look: solid panels, one orange accent, no blur or motion. */
html:not(.lights) header.top { background: rgba(22, 25, 28, .72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); }   /* lightly see-through, blurred */
html:not(.lights) header.top .mark, .site-foot .foot-brand .mark { background: var(--accent); }   /* footer logo always orange (matches blog) */
html:not(.lights) .orbs { display: none; }
html:not(.lights) .group-label::before { box-shadow: none; }
html:not(.lights) .tool-card {
  background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; transform: none;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: border-color .15s, background .15s;
}
html:not(.lights) .tool-card:hover { transform: none; background: var(--panel2); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
html:not(.lights) .tool-card h3, html:not(.lights) .tool-card p, html:not(.lights) .tool-card .open { text-shadow: none; }
html:not(.lights) .tool-card p { color: var(--muted); }
html:not(.lights) .tool-card .tag { background: none; color: var(--muted); }
html:not(.lights) header.top .search input:not(:focus) { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); box-shadow: none; }   /* see-through like the bar */
html:not(.lights) .join-btn { background: #5865f2; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; text-shadow: none; }
html:not(.lights) .join-btn:hover { background: #4752c4; }

/* the 💡 toggle */
header.top .lights-btn { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; background: transparent; border: 1px solid var(--line); color: var(--muted); }
header.top .lights-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
header.top .lights-btn:hover { color: var(--accent); border-color: var(--accent); }
html.lights header.top .lights-btn { color: #ffd23f; border-color: #ffd23f66; background: #ffd23f14; }
html.lights header.top .lights-btn svg { fill: #ffd23f33; }

/* Calm home page layout ("Directory", picked 2026-10-21): no boxes, tools as scannable rows like an app store list */
html:not(.lights) .group-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2px 18px; }
html:not(.lights) .tool-card { flex-direction: row; align-items: center; gap: 14px; padding: 12px 10px; background: none; border: 1px solid transparent; border-radius: 8px; box-shadow: none; }
html:not(.lights) .tool-card:hover { background: var(--panel); border-color: var(--line); }
html:not(.lights) .tool-card .ico { width: 2.6rem; height: 2.6rem; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, var(--bg)); border: none; }
html:not(.lights) .tool-card h3 { font-size: .97rem; margin: 0 0 2px; }
html:not(.lights) .tool-card p { font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html:not(.lights) .tool-card .foot { display: none; }
html:not(.lights) .group-label { padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
html:not(.lights) .grid-tools { gap: 26px; }

/* ===== Site footer (2026-10-21): full-width band, brand + tool columns + bottom bar ===== */
.site-foot { text-align: left; margin-top: 40px; padding: 0; background: var(--bg2); border-top: 1px solid var(--line); font: 14px/1.5 system-ui, sans-serif; color: var(--muted); }
.site-foot .foot-in { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.site-foot > .foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; padding-top: 28px; padding-bottom: 26px; }
.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.site-foot .foot-links a { color: var(--muted); text-decoration: none; font-size: .9rem; } .site-foot .foot-links a:hover { color: var(--accent); }
.site-foot .foot-about { display: grid; gap: 6px; }
.site-foot .foot-about p { margin: 0; font-size: .88rem; }
.site-foot .foot-brand { display: inline-flex; align-items: center; gap: 9px; background: none; text-decoration: none; }
.site-foot .foot-brand .name { font: 400 1.45rem/1 "Architects Daughter", system-ui, sans-serif; padding-right: .08em;   /* name font + Sunset gradient on the NAME only (same as blog) */
  background: linear-gradient(90deg, #ffd23f, #ff8a1f 45%, #ff2e63); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.site-foot .join-btn { padding: 7px 14px; font-size: .84rem; }
.site-foot .foot-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 20px; }
@media (max-width: 1060px) { .site-foot .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-foot .foot-col { display: grid; gap: 7px; align-content: start; min-width: 0; }
.site-foot .foot-col h2 { margin: 0 0 4px; font: 600 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.site-foot .foot-col a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.site-foot .foot-col a:hover { color: var(--accent); }
.site-foot .foot-bar { border-top: 1px solid var(--line); }
.site-foot .foot-bar .foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 14px; padding-bottom: 18px; font: .75rem var(--mono); }
@media (max-width: 760px) { .site-foot .foot-links { margin-left: 0; } }
/* lights on: the footer is frosted glass like the header, and the name keeps its gradient script */
html.lights .site-foot { background: rgba(17, 19, 22, .45); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-top-color: rgba(255, 255, 255, .1); }

/* ===== Side menu (2026-10-21): always-open rail on wide screens, slide-in drawer (☰ button) on narrow ones ===== */
.side-rail { position: fixed; z-index: 60; left: 0; top: var(--hdr); bottom: 0; width: 260px; max-width: 85vw; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 12px 24px; background: var(--bg2); border-right: 1px solid var(--line); scrollbar-width: thin;
  transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
body.rail-open .side-rail { transform: none; visibility: visible; box-shadow: 12px 0 30px rgba(0, 0, 0, .5); }
.rail-shade { position: fixed; inset: var(--hdr) 0 0 0; z-index: 55; background: rgba(0, 0, 0, .5); border: 0; padding: 0; min-height: 0; border-radius: 0; display: none; }
body.rail-open .rail-shade { display: block; }
header.top .menu-btn { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; justify-content: center; border: 0; background: none; color: var(--text); margin-left: -6px; }
header.top .menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
header.top .menu-btn:hover { color: var(--accent); }
.side-rail section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin-bottom: 18px; }
.side-rail h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 10px; font: 600 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side-rail h2::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--muted)); }
.side-rail section:first-child h2::before { display: none; }
.side-rail a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .88rem; line-height: 1.3; }
.side-rail a svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--c); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.side-rail a span { min-width: 0; }
.side-rail a:hover { background: var(--panel); }
.side-rail a.on { background: var(--panel2); box-shadow: inset 2px 0 0 var(--c); font-weight: 650; }
.side-rail .rail-discord { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.side-rail .rail-discord:hover { color: #8b95ff; background: none; }
html.lights .side-rail { background: rgba(17, 19, 22, .55); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-right-color: rgba(255, 255, 255, .1); }
@media (prefers-reduced-motion: reduce) { .side-rail { transition: none; } }
@media (min-width: 1200px) {
  .side-rail { width: 240px; transform: none; visibility: visible; z-index: 40; box-shadow: none !important; }
  header.top .menu-btn, .rail-shade { display: none !important; }
  body.has-rail { padding-left: 240px; }
  body.has-rail header.top { margin-left: -240px; }                                  /* header stays full width above the menu */
  body.has-rail .site-foot { margin-left: -240px; position: relative; z-index: 45; }  /* footer runs full width and covers the menu's end */
}

/* Blog link in the header, right of the logo (2026-10-21): a plain nav link, not a button */
header.top .hdr-blog { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 10px; margin-left: 4px; border-radius: 6px; color: var(--text); text-decoration: none; font: 600 .9rem system-ui, sans-serif; }
header.top .hdr-blog svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
header.top .hdr-blog:hover { color: var(--accent); background: rgba(255, 255, 255, .05); }
@media (max-width: 640px) { header.top .hdr-blog { padding: 0 6px; margin-left: 0; } header.top .hdr-blog svg { display: none; } }

.seo-help .popular { margin: 22px 0 0; color: var(--muted); }   /* links between a tool and its search pages */
.seo-help .popular a { color: var(--accent); }
