/* Rainbow Factory Community: the look of rainbowfactory.uk (tokens, fonts, nav, pills, panels and footer from the
   site's shared.css / newsletter.css), light and dark through light-dark() like the site. One stylesheet. */

@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/hanken-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/hanken-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/space-mono-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/space-mono-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/space-mono-latin-ext-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/space-mono-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light dark;
  --bg: light-dark(oklch(0.965 0.004 90), oklch(0.17 0.006 90));
  --surface: light-dark(oklch(0.99 0.004 90), oklch(0.215 0.006 90));
  --sunken: light-dark(oklch(0.94 0.005 90), oklch(0.14 0.006 90));
  --line: light-dark(oklch(0.9 0.005 90), oklch(0.3 0.006 90));
  --ink: light-dark(oklch(0.2 0.01 90), oklch(0.96 0.004 90));
  --body: light-dark(oklch(0.42 0.01 90), oklch(0.8 0.008 90));
  --muted: light-dark(oklch(0.5 0.01 90), oklch(0.7 0.008 90));
  --accent: light-dark(oklch(0.45 0.12 155), oklch(0.8 0.13 155));
  --accent-soft: light-dark(oklch(0.93 0.04 155), oklch(0.3 0.05 155));
  --error: light-dark(oklch(0.5 0.18 27), oklch(0.75 0.14 27));
  --shadow: light-dark(oklch(0.4 0.02 90 / 0.3), oklch(0 0 0 / 0.55));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 1120px;
  --gutter: 32px;
  --nav-h: 68px;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: oklch(0.82 0.14 90); color: oklch(0.2 0.01 90); }
h1, h2, h3, h4 { font-family: "Space Grotesk", sans-serif; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; }
p { color: var(--body); text-wrap: pretty; }
.wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
main.wrap { padding-top: 40px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 16px; }

/* Navigation (site) */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--page); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-sub { color: var(--muted); font-weight: 600; }
.logo-mark { display: inline-grid; grid-template-columns: repeat(3, 1fr); gap: 2px; width: 30px; height: 30px; padding: 4px; border-radius: 8px; background: oklch(0.22 0.01 90); flex: none; }
.logo-mark i { border-radius: 2px; }
.logo-mark i:nth-child(1) { background: oklch(0.68 0.16 30); } .logo-mark i:nth-child(2) { background: oklch(0.82 0.14 90); }
.logo-mark i:nth-child(3) { background: oklch(0.72 0.14 150); } .logo-mark i:nth-child(4) { background: oklch(0.62 0.14 250); }
.logo-mark i:nth-child(5) { background: oklch(0.55 0.16 320); } .logo-mark i:nth-child(6) { background: oklch(0.7 0.12 200); }
.logo-mark i:nth-child(7) { background: oklch(0.75 0.13 60); } .logo-mark i:nth-child(8) { background: oklch(0.55 0.16 340); }
.logo-mark i:nth-child(9) { background: oklch(0.96 0.004 90); }
.nav-links { display: flex; align-items: center; gap: 26px; font-family: "Space Grotesk", sans-serif; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-links > a { color: var(--body); }
.nav-links > a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.btn.primary, .nav-links a.btn.primary:hover { color: var(--bg); }
.search { flex: 1; min-width: 0; display: flex; justify-content: center; }
.search input { width: 100%; max-width: 300px; min-width: 0; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font: inherit; font-size: 15px; }
.search input:disabled { cursor: not-allowed; }

/* User menu */
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 40px; padding: 0 14px 0 6px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu .who { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 22px 36px -20px var(--shadow); min-width: 200px; padding: 8px; display: grid; font-family: "Hanken Grotesk", sans-serif; font-weight: 500; }
.menu-list a, .menu-list .linklike { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-align: left; width: 100%; font-size: 15px; }
.menu-list a:hover, .menu-list .linklike:hover { background: var(--sunken); text-decoration: none; }
.menu-list form { margin: 0; }

/* Buttons: the site's pills */
.btn, .button, button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease); }
.btn:hover, .button:hover, button:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active, .button:active, button:active { transform: translateY(1px) scale(0.98); }
.btn.small, .button.small { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.button.secondary, button.secondary, .btn:not(.primary) { background: var(--surface); color: var(--ink); border-color: var(--line); }
.button.secondary:hover, button.secondary:hover { border-color: var(--muted); }
button.linklike { min-height: 0; background: none; border: 0; padding: 0; color: var(--accent); font-family: inherit; font-weight: 600; font-size: inherit; }
button.linklike:hover { transform: none; text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
label { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 600; margin: 18px 0 8px; color: var(--ink); }
label .hint { font-family: "Hanken Grotesk", sans-serif; font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); transition: border-color 0.2s ease; }
input[type=text], select { height: 48px; padding: 0 20px; border-radius: 999px; }
select { padding-right: 14px; }
textarea { min-height: 240px; padding: 14px 18px; border-radius: 18px; resize: vertical; font-family: var(--mono); font-size: 14.5px; line-height: 1.55; }
input[type=text]:hover, select:hover, textarea:hover { border-color: var(--muted); }
.row { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .row.three { grid-template-columns: 2fr 1fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.problem { background: color-mix(in oklch, var(--error) 12%, var(--surface)); color: var(--error); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; }

/* Panels */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; margin-bottom: 20px; }
.card.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.card h1 { font-size: clamp(26px, 3vw, 34px); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 8px 0 0; font-size: 18px; }
.cat-head { align-items: center; flex-wrap: nowrap; }
.cat-head .grow { flex: 1; min-width: 0; }
@media (max-width: 640px) { .cat-head { flex-wrap: wrap; } }
.section-title { margin: 36px 0 14px; }
.section-title:first-of-type { margin-top: 0; }

/* Categories */
.cats { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cats { grid-template-columns: 1fr 1fr 1fr; } }
.cat { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; color: var(--ink);
  transition: transform 0.45s var(--ease), border-color 0.25s var(--ease); }
.cat:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--muted); }
.cat-text { min-width: 0; }
.cat strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 17px; letter-spacing: -0.01em; }
.cat-text > span { display: block; color: var(--body); font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
.cat .count { color: var(--muted); font-size: 13px; margin-top: 6px; }
.app-icon { border-radius: 22.5%; box-shadow: 0 12px 26px -14px var(--shadow); }
.cat-icon { width: 52px; height: 52px; flex: none; }
.cat-icon-l { width: 72px; height: 72px; flex: none; }
.cat-dot { display: inline-block; border-radius: 22.5%; background: var(--c, var(--ink)); }
.cat-icon.cat-dot { background: var(--sunken); border: 1px solid var(--line); position: relative; }
.cat-icon-l.cat-dot { background: var(--sunken); border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chip-icon { width: 18px; height: 18px; flex: none; box-shadow: none; }
.chip-icon.cat-dot { width: 10px; height: 10px; border-radius: 3px; }

/* Filters (pills, like the site's platform links) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 600; }
.filters a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.filters a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Topic lists */
.topics { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.topics li { display: flex; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: flex-start; }
.topics li:first-child { border-top: 0; }
.topics .main { flex: 1; min-width: 0; }
.topics .title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; letter-spacing: -0.01em; }
.topics .meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.topics .stats { text-align: right; font-size: 13px; color: var(--muted); white-space: nowrap; }
.topics .stats b { display: block; color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 17px; }
.empty { padding: 30px 18px; margin: 0; text-align: center; color: var(--muted); }
.tag { display: inline-flex; align-items: center; min-height: 22px; border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; font-size: 12.5px; font-weight: 600; color: var(--body); background: var(--bg); }
.tag.type-bug { color: var(--error); }
.tag.type-question, .tag.type-idea { color: var(--accent); }
.badge { display: inline-block; font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
.badge.staff { background: var(--ink); color: var(--bg); }
.badge.state { background: var(--sunken); color: var(--body); }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 20px 0; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.pager .pages { color: var(--muted); }

/* Avatars */
.avatar { --h: 155; display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  color: light-dark(oklch(0.35 0.1 var(--h)), oklch(0.9 0.06 var(--h))); background: light-dark(oklch(0.92 0.05 var(--h)), oklch(0.32 0.06 var(--h))); }
.avatar-none { color: var(--muted); background: var(--sunken); }
.avatar-s { width: 28px; height: 28px; font-size: 13px; }
.avatar-m { width: 38px; height: 38px; font-size: 16px; }
.avatar-l { width: 72px; height: 72px; font-size: 30px; }

/* Topic */
.topic-head h1 { overflow-wrap: anywhere; }
.topic-head .meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: 14px; }
.posts { margin-top: 20px; }
.post { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; margin-bottom: 12px; scroll-margin-top: calc(var(--nav-h) + 12px); }
.post .content { flex: 1; min-width: 0; }
.post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 15px; margin-bottom: 8px; }
.post-head .author { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--ink); }
.post-head .display { color: var(--muted); }
.post-head .when { margin-left: auto; color: var(--muted); font-size: 13.5px; }
.post-head .when a { color: inherit; }
.author.deleted { color: var(--muted); font-style: italic; }
.post.removed .body, .post.gone .body { color: var(--muted); font-style: italic; }
.post-tools { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 14px; }
.post-tools form { margin: 0; }
.staff-only { padding: 12px 0 0; margin-top: 12px; border-top: 1px dashed var(--line); }
.staff-only button { min-height: 36px; padding: 0 14px; font-size: 14px; }
.staff-view { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; font-size: 15px; font-style: normal; }

/* Rendered Markdown */
.body { overflow-wrap: anywhere; color: var(--ink); font-size: 16.5px; }
.body > :first-child { margin-top: 0; }
.body > :last-child { margin-bottom: 0; }
.body p { color: var(--ink); }
.body p, .body ul, .body ol, .body pre, .body blockquote, .body table { margin: 0 0 .85em; }
.body h3 { font-size: 20px; margin-top: 1em; }
.body h4 { font-size: 17px; margin-top: 1em; }
.body img { max-width: 100%; height: auto; border-radius: 12px; }
.body code { font-family: var(--mono); font-size: .86em; background: var(--sunken); border-radius: 6px; padding: 1px 5px; }
.body pre { background: var(--sunken); border-radius: 12px; padding: 14px; overflow-x: auto; }
.body pre code { background: none; padding: 0; font-size: 13.5px; }
.body blockquote { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; color: var(--body); }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.body table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.body th, .body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.body a.mention { font-weight: 600; background: var(--accent-soft); border-radius: 6px; padding: 0 4px; }

/* Preview */
.preview { border: 1px dashed var(--muted); border-radius: 20px; padding: 18px 20px; margin: 18px 0; background: var(--bg); }
.preview > .label { font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }

/* Profile */
.profile { display: flex; gap: 18px; align-items: center; }
.profile h1 { margin: 0; overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose p { font-size: 17px; line-height: 1.6; }

/* Footer (site) */
.footer { border-top: 1px solid var(--line); margin-top: 96px; }
.footer-inner { max-width: var(--page); margin: 0 auto; padding: 40px var(--gutter) 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; }
.footer .brand { font-size: 17px; }
.footer-links { display: flex; gap: 12px 26px; font-size: 15px; flex-wrap: wrap; }
.footer-links a { color: var(--body); }
.footer-links a:hover { color: var(--ink); }
.copyright { font-size: 13.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 900px) {
  .site-link { display: none; }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  main.wrap { padding-top: 24px; }
  .nav-inner { gap: 12px; }
  .nav-links { gap: 14px; }
  .search { display: none; }
  .brand { font-size: 17px; gap: 9px; }
  .card { padding: 18px; }
  .post { padding: 14px; gap: 10px; }
  .post .side { display: none; }
  .topics li { padding: 12px 14px; }
  .footer { margin-top: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 440px) {
  .brand-sub { display: none; }
  .menu .who { max-width: 90px; }
}

/* Slice 2: follow, likes, answer, reports, email settings, staff pages. */
@media (min-width: 700px) { .row { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 2fr 1fr 1fr; } }
.follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; }
.small-button { min-height: 36px; padding: 0 16px; font-size: 14px; }
.post-tools .likes { color: var(--muted); }
.post-tools .like.on { color: var(--ink); }
.badge.answer { background: var(--accent-soft); color: var(--accent); }
.answer-box { margin: 6px 0 22px; padding: 16px 0 0 18px; border-left: 3px solid var(--accent); }
.answer-box > h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin: 0 0 4px; }
.staff-only .move { margin-top: 10px; align-items: center; }
.staff-only .move select { width: auto; max-width: 100%; height: 36px; padding: 0 14px; font-size: 14px; }
.choices { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.choices legend { font-family: "Space Grotesk", sans-serif; font-weight: 600; margin-bottom: 8px; padding: 0; }
.choice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-weight: 500; color: var(--ink); cursor: pointer; }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; align-self: center; }
.choice .hint { width: 100%; padding-left: 26px; }
textarea.short { min-height: 110px; font-family: inherit; font-size: 15px; }
.notice { background: var(--accent-soft); color: var(--accent); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; }
.reports .note { margin: 8px 0 0; color: var(--body); white-space: pre-wrap; overflow-wrap: anywhere; }
.report-actions { margin-top: 10px; align-items: center; gap: 8px; }
.report-actions input[type=text] { height: 36px; padding: 0 14px; font-size: 14px; flex: 1 1 220px; width: auto; }
.report-actions select { height: 36px; width: auto; padding: 0 10px; font-size: 14px; }
.report-actions button { min-height: 36px; padding: 0 14px; font-size: 14px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
table.log { width: 100%; border-collapse: collapse; font-size: 14px; }
table.log th, table.log td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.log thead th { border-top: 0; color: var(--muted); font-weight: 600; }
table.log td:last-child { overflow-wrap: anywhere; min-width: 160px; }
input[type=date] { width: 100%; height: 48px; padding: 0 20px; border-radius: 999px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }

/* Slice 3: search, image button, admin. */
[hidden] { display: none !important; }
input[type=search], input[type=number], input[type=color] { width: 100%; height: 48px; padding: 0 20px; border-radius: 999px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); }
input[type=color] { padding: 4px 8px; max-width: 120px; }
.composer-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.search-page { display: flex; gap: 10px; margin: 0 0 20px; }
.search-page input { flex: 1; min-width: 0; }
.post .body img { border-radius: 10px; }
.admin-nav { margin-top: 4px; }
.admin .nav-links .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0 0 24px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: var(--body); }
.stat b { font-family: 'Space Grotesk', sans-serif; font-size: 28px; line-height: 1.1; color: var(--ink); }
a.stat:hover { border-color: var(--accent); text-decoration: none; }
table.days td:nth-child(3) { min-width: 140px; }
.bar { display: inline-block; vertical-align: middle; height: 8px; width: calc(var(--w) * 0.8); min-width: 0; margin-left: 6px; border-radius: 4px; background: var(--accent); opacity: 0.6; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 18px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 8px; } }
details.danger { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
details.danger summary { cursor: pointer; color: var(--error); font-weight: 600; }
.filter-form .actions { margin-top: 12px; }
.admin-reports { margin: 8px 0 0; padding-left: 18px; color: var(--body); }
.post-actions { margin-top: 10px; }
.post-actions button, .post-actions .button { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* Images of posts waiting for review or removed (src/uploads.js gateImages), and the review queues. */
.img-note { display: inline-block; font-size: 13px; color: var(--muted); background: var(--sunken); border: 1px dashed var(--line); border-radius: 8px; padding: 6px 10px; margin: 4px 0; }
.body img + .img-note.pending { display: block; width: fit-content; margin-top: 2px; padding: 2px 8px; }
.image-review { display: flex; gap: 14px; align-items: flex-start; }
.image-review .thumb { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--sunken); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--body); }
.image-review .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-review .main { min-width: 0; flex: 1 1 auto; }
/* Posts held by the word filter (README "Text and link checks") */
.body p.held { color: var(--muted); font-style: italic; }
