/* LexiVirt Community: monochrome, border-driven, dark first with a light theme.
 * Same tokens as lexi-cloud.com. Colour only for status. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg: #09090b; --bg-2: #0e0e11; --card: #111114; --card-2: #17171b;
  --border: #26262b; --border-2: #34343b;
  --text: #f4f4f5; --text-2: #a1a1aa; --muted: #8b8b94; --fg: #ffffff;
  --accent: #f4f4f5; --on-accent: #09090b;
  --code-bg: #050506; --topbar: rgba(9, 9, 11, .82);
  --success: #2dd4a7; --warn: #f5a524; --danger: #f2555a; --info: #5b9df9;
  --hairline: color-mix(in srgb, var(--fg) 9%, transparent);
  --hairline-2: color-mix(in srgb, var(--fg) 16%, transparent);
  --inset: inset 0 1px 0 color-mix(in srgb, var(--fg) 5%, transparent);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --r-s: 10px; --r-m: 14px; --r-l: 22px; --pill: 980px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t: 200ms var(--ease-out);
  --ring: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--fg) 55%, transparent);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff; --bg-2: #f7f7f8; --card: #ffffff; --card-2: #f4f4f5;
    --border: #e4e4e7; --border-2: #d4d4d8;
    --text: #09090b; --text-2: #3f3f46; --muted: #5f5f68; --fg: #000000;
    --accent: #09090b; --on-accent: #ffffff;
    --code-bg: #f4f4f5; --topbar: rgba(255, 255, 255, .86);
    --success: #0b7650; --warn: #946200; --danger: #c42838; --info: #1d5fd1;
    --inset: inset 0 1px 0 rgba(255, 255, 255, .9);
    color-scheme: light;
  }
}

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { /* one faint ambient glow, never on text */
  content: ""; position: fixed; inset: -20vh -10vw auto; height: 60vh; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--fg) 6%, transparent), transparent 70%);
}
.site-main { flex: 1; }
a { color: inherit; text-decoration-color: var(--hairline-2); text-underline-offset: 3px; transition: color var(--t), text-decoration-color var(--t); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
img { max-width: 100%; height: auto; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
code { background: var(--code-bg); border: 1px solid var(--hairline); padding: .1em .4em; border-radius: 6px; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--r-s); padding: 14px 16px; overflow: auto; line-height: 1.55; }
pre code { background: none; border: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); }
::selection { background: color-mix(in srgb, var(--fg) 22%, transparent); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r-s); transition: top var(--t); }
.skip:focus { top: 12px; }
.ico { flex: none; vertical-align: -3px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Type: tight display, comfortable body */
.display { font: 700 clamp(36px, 6vw, 64px)/1.02 var(--font-display); letter-spacing: -.035em; margin: 0; max-width: 14ch; }
.h1 { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--font-display); letter-spacing: -.025em; margin: 0; }
.h3, .h2 { font: 600 16px/1.3 var(--font-display); letter-spacing: -.01em; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.lede { text-wrap: pretty; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 56ch; margin: 18px 0 0; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn, .button, input[type="submit"], button[type="submit"], .bp-button a, .bbp-submit-wrapper button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 16px; border-radius: var(--pill);
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font: 600 14px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t), transform 120ms var(--ease-out), opacity var(--t);
}
.btn:hover, .button:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: color-mix(in srgb, var(--accent) 86%, var(--bg)); }
.btn:active, .button:active, input[type="submit"]:active, button[type="submit"]:active { transform: scale(.97); }
.btn:focus-visible, .button:focus-visible, input[type="submit"]:focus-visible, button:focus-visible { box-shadow: var(--ring); border-radius: var(--pill); }
.btn[disabled], button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); border-color: var(--hairline-2); }
.btn-l { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ── Inputs ─────────────────────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-s);
  padding: 10px 12px; font: 15px/1.4 var(--font);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
input:hover, textarea:hover, select:hover { border-color: var(--border-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--hairline-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 10%, transparent); }
input[aria-invalid="true"] { border-color: var(--danger); }
label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
::placeholder { color: var(--muted); opacity: 1; }

/* ── Top bar ────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
@media (prefers-reduced-transparency: reduce) { .topbar { background: var(--bg); backdrop-filter: none; } }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; font: 700 16px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--text); align-self: center; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 1.5px; background: var(--text); }
.brand-sub { font-weight: 500; color: var(--muted); }
.brand-s { font-size: 15px; }
.nav { flex: 1; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 7px 12px; border-radius: var(--pill); color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color var(--t), background var(--t); }
.nav-list a:hover { color: var(--text); background: color-mix(in srgb, var(--fg) 6%, transparent); }
.nav-list a:active { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.nav-list a[aria-current="page"], .nav-list .current-menu-item > a { color: var(--text); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.topbar-act { display: flex; align-items: center; gap: 8px; }
.topsearch { position: relative; display: flex; align-items: center; }
.topsearch .ico { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.topsearch input { width: 180px; height: 34px; padding: 0 12px 0 34px; border-radius: var(--pill); font-size: 14px; transition: width var(--t), border-color var(--t), box-shadow var(--t); }
.topsearch input:focus { width: 240px; }
.me { display: inline-flex; border-radius: 50%; border: 1px solid var(--border-2); transition: border-color var(--t); }
.me:hover { border-color: var(--hairline-2); }
.me img { border-radius: 50%; display: block; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: var(--r-s); cursor: pointer; align-items: center; justify-content: center; transition: background var(--t); }
.nav-toggle:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .topsearch { display: none; }
  .nav { position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: none; padding: 8px 20px 14px; }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .topbar-act { margin-left: auto; }
}

/* ── Home ───────────────────────────────────────────────────────────────── */
.pg-home { padding: 72px 0 96px; }
.hero { padding-bottom: 48px; }
.hero-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile {
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--hairline); border-radius: var(--r-l); box-shadow: var(--inset);
  padding: 22px; min-width: 0;
}
.tile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.tile-focus { grid-column: span 4; grid-row: span 2; padding: 22px 10px 10px; display: flex; flex-direction: column; }
.ask { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 12px 8px; border-top: 1px solid var(--hairline); }
.ask p { margin: 0; font-size: 13.5px; }
.ask .ask-title { font-weight: 600; font-size: 14.5px; color: var(--text); }
@media (max-width: 560px) { .ask { flex-direction: column; align-items: flex-start; } }
.tile-focus .tile-head { padding: 0 12px; }
.tile-stats { grid-column: span 2; display: flex; align-items: center; }
.tile-forums { grid-column: span 2; }
.tile-link {
  grid-column: span 3; display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  transition: border-color var(--t), background var(--t), transform 120ms var(--ease-out);
}
.tile-link .ico { margin-bottom: 10px; color: var(--muted); transition: color var(--t); }
.tile-link:hover { border-color: var(--hairline-2); background: var(--card-2); }
.tile-link:hover .ico { color: var(--text); }
.tile-link:active { transform: scale(.99); }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); text-decoration: none; transition: color var(--t); }
.link:hover { color: var(--text); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-focus, .tile-stats, .tile-forums { grid-column: span 2; grid-row: auto; }
  .tile-link { grid-column: span 1; }
}
@media (max-width: 560px) { .tile-link { grid-column: span 2; } .pg-home { padding-top: 44px; } }

.threads { list-style: none; margin: 0; padding: 0; }
.thread { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-m); text-decoration: none; transition: background var(--t); }
.thread:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.thread:active { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.threads li + li .thread { border-top: 1px solid var(--hairline); border-radius: 0; }
.threads li + li .thread:hover { border-radius: var(--r-m); border-top-color: transparent; }
.threads li:hover + li .thread { border-top-color: transparent; }
.av, .avatar { border-radius: 50%; flex: none; }
.thread-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.thread-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-n { font-size: 13px; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--pill); min-width: 30px; padding: 2px 8px; text-align: center; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; width: 100%; }
.stats div + div { border-left: 1px solid var(--hairline); padding-left: 16px; }
.stats dt { font-size: 12.5px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font: 700 28px/1.1 var(--font-display); letter-spacing: -.03em; }

.forums { list-style: none; margin: 0 -8px; padding: 0; }
.forums a { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 9px 8px; border-radius: var(--r-s); text-decoration: none; transition: background var(--t); }
.forums a:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.forum-name { font-weight: 600; font-size: 14.5px; }
.forum-desc { grid-column: 1; font-size: 13px; color: var(--muted); }
.forum-n { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 13px; color: var(--muted); }

/* Empty states */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 56px 20px; border: 1px dashed var(--border-2); border-radius: var(--r-l); }
.empty .ico { width: 26px; height: 26px; color: var(--muted); margin-bottom: 6px; }
.empty-title { margin: 0; font-weight: 600; }
.empty p { margin: 0; max-width: 40ch; }
.empty .btn { margin-top: 12px; }
.empty-in { border: 0; padding: 40px 20px; }

/* ── Pages ──────────────────────────────────────────────────────────────── */
.pg { padding: 56px 0 96px; }
.page-head { margin-bottom: 28px; }
.page-prose .content, .page-prose .page-head { max-width: 720px; }
.content > * + * { margin-top: 1em; }
.content h2 { font: 650 22px/1.25 var(--font-display); letter-spacing: -.015em; margin-top: 2em; }
.content h3 { font: 600 17px/1.3 var(--font-display); margin-top: 1.6em; }
.content p, .content li { color: var(--text-2); }
.content strong { color: var(--text); }
.list { border: 1px solid var(--border); border-radius: var(--r-l); overflow: hidden; }
.row + .row { border-top: 1px solid var(--hairline); }
.row-link { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; text-decoration: none; transition: background var(--t); }
.row-link:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.row-title { font-weight: 600; }
.row-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pager { margin-top: 24px; }
.pager .nav-links { display: flex; gap: 6px; }
.pager .page-numbers { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--pill); text-decoration: none; font-size: 14px; }
.pager .page-numbers.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--hairline); background: var(--bg-2); padding: 36px 0 44px; font-size: 13.5px; }
.foot-in { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot p { margin: 8px 0 0; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color var(--t); }
.foot-links a:hover { color: var(--text); }

/* ── bbPress ────────────────────────────────────────────────────────────── */
#bbpress-forums { font-size: 15px; margin: 0; }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results, #bbpress-forums ul.bbp-lead-topic {
  border: 1px solid var(--border); border-radius: var(--r-l); overflow: hidden; margin-bottom: 20px; background: color-mix(in srgb, var(--card) 70%, transparent);
}
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--bg-2); border-color: var(--hairline); color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 10px 16px; }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-top: 1px solid var(--hairline); padding: 14px 16px; transition: background var(--t); }
#bbpress-forums li.bbp-body ul.forum:hover, #bbpress-forums li.bbp-body ul.topic:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
#bbpress-forums div.odd, #bbpress-forums ul.odd, #bbpress-forums div.even, #bbpress-forums ul.even { background: transparent; }
#bbpress-forums .status-closed, #bbpress-forums .status-closed a { color: var(--muted); }
#bbpress-forums div.bbp-forum-header, #bbpress-forums div.bbp-topic-header, #bbpress-forums div.bbp-reply-header { background: var(--bg-2); border-top: 1px solid var(--hairline); }
#bbpress-forums div.bbp-reply-content, #bbpress-forums div.bbp-topic-content { color: var(--text-2); }
#bbpress-forums div.bbp-reply-author, #bbpress-forums div.bbp-topic-author { color: var(--muted); }
#bbpress-forums .bbp-forum-title, #bbpress-forums .bbp-topic-permalink { font-weight: 600; text-decoration: none; color: var(--text); font-size: 15px; }
#bbpress-forums .bbp-forum-content, #bbpress-forums p.bbp-topic-meta { color: var(--muted); font-size: 13px; }
#bbpress-forums .bbp-forum-topic-count, #bbpress-forums .bbp-forum-reply-count, #bbpress-forums .bbp-topic-voice-count, #bbpress-forums .bbp-topic-reply-count { font-variant-numeric: tabular-nums; color: var(--text-2); }
#bbpress-forums .bbp-forum-freshness, #bbpress-forums .bbp-topic-freshness { font-size: 13px; color: var(--muted); }
#bbpress-forums .bbp-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
#bbpress-forums .bbp-breadcrumb a { color: var(--text-2); text-decoration: none; }
#bbpress-forums .bbp-breadcrumb a:hover { color: var(--text); }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--border); border-radius: var(--r-l); padding: 20px; margin: 0 0 20px; background: var(--card); }
#bbpress-forums fieldset.bbp-form legend { font: 600 16px var(--font-display); padding: 0 8px; color: var(--text); }
#bbpress-forums .bbp-pagination { color: var(--muted); font-size: 13px; }
#bbpress-forums .bbp-pagination-links a, #bbpress-forums .bbp-pagination-links span.current { border: 1px solid var(--border); border-radius: var(--pill); padding: 3px 10px; text-decoration: none; }
#bbpress-forums .bbp-pagination-links span.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
#bbpress-forums div.bbp-template-notice, .bp-feedback, .bbp-template-notice {
  border: 1px solid var(--border-2); border-radius: var(--r-m); background: var(--bg-2); color: var(--text-2); padding: 12px 16px; margin: 0 0 16px;
}
#bbpress-forums div.bbp-template-notice.info { border-left: 3px solid var(--info); }
#bbpress-forums div.bbp-template-notice.error, #bbpress-forums div.bbp-template-notice.warning { border-left: 3px solid var(--warn); }
#bbpress-forums div.bbp-template-notice p { margin: 0; font-size: 14px; }
#bbpress-forums .bbp-topic-tags, #bbpress-forums .bbp-reply-ip { color: var(--muted); }
#bbpress-forums div.bbp-the-content-wrapper textarea { min-height: 200px; }
#bbpress-forums .bbp-admin-links a { color: var(--muted); text-decoration: none; }
#bbpress-forums .bbp-admin-links a:hover { color: var(--text); }
#bbpress-forums .sticky, #bbpress-forums .super-sticky { background: color-mix(in srgb, var(--fg) 3%, transparent) !important; }
#bbpress-forums .status-pending { border-left: 3px solid var(--warn); }
#bbp-search-form { display: flex; gap: 8px; margin-bottom: 18px; }
#bbp-search-form input[type="text"] { max-width: 260px; height: 36px; border-radius: var(--pill); }

/* ── BuddyPress (Nouveau) ───────────────────────────────────────────────── */
#buddypress { font-size: 15px; }
#buddypress .bp-navs ul li a, .buddypress-wrap .bp-navs li a { color: var(--text-2); text-decoration: none; border-radius: var(--pill); transition: background var(--t), color var(--t); }
.buddypress-wrap .bp-navs li:not(.current) a:hover { background: color-mix(in srgb, var(--fg) 6%, transparent) !important; color: var(--text); }
.buddypress-wrap .bp-navs li.current a, .buddypress-wrap .bp-navs li.selected a { background: color-mix(in srgb, var(--fg) 8%, transparent) !important; color: var(--text) !important; }
.buddypress-wrap .main-navs:not(.dir-navs) li.selected a, .buddypress-wrap .bp-navs li a span { background: transparent; }
.buddypress-wrap .bp-navs li a .count { background: transparent !important; border: 1px solid var(--border) !important; color: var(--text-2) !important; font-variant-numeric: tabular-nums; border-radius: var(--pill); }
.buddypress-wrap .bp-subnavs, .buddypress-wrap .bp-navs, .buddypress-wrap .subnav-filters { background: transparent !important; border-color: var(--hairline) !important; }
.buddypress-wrap .bp-list { border-top: 1px solid var(--hairline); }
.buddypress-wrap .bp-list > li { border-bottom: 1px solid var(--hairline); }
.buddypress-wrap .activity-list .activity-item .activity-content .activity-inner, .buddypress-wrap .activity-list .activity-item .activity-content blockquote {
  background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r-m); color: var(--text-2);
}
.buddypress-wrap .activity-list .activity-item .activity-header, .buddypress-wrap .item-meta, .buddypress-wrap .activity-meta { color: var(--muted) !important; }
.buddypress-wrap .activity-list .activity-item .activity-meta.action .button { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.buddypress-wrap .activity-list .activity-item .activity-meta.action .button:hover { color: var(--text); border-color: var(--border-2); }
.buddypress-wrap .grid > li .list-wrap, .buddypress-wrap .members-list li .list-wrap {
  background: color-mix(in srgb, var(--card) 80%, transparent) !important; border: 1px solid var(--hairline) !important; border-radius: var(--r-l); transition: border-color var(--t);
}
.buddypress-wrap .grid > li .list-wrap:hover { border-color: var(--hairline-2) !important; }
.buddypress-wrap .grid.bp-list { border: 0; }
.buddypress-wrap .grid.bp-list > li { border: 0; }
.buddypress-wrap .select-wrap, .buddypress-wrap .bp-dir-search-form, .buddypress-wrap form.bp-dir-search-form, .buddypress-wrap .bp-search form {
  background: var(--bg-2) !important; border: 1px solid var(--border) !important; border-radius: var(--pill) !important;
}
.buddypress-wrap .select-wrap select, .buddypress-wrap .bp-dir-search-form input[type="search"] { background: transparent !important; border: 0 !important; color: var(--text) !important; }
.buddypress-wrap .bp-dir-search-form button, .buddypress-wrap .bp-search form button[type="submit"] { background: transparent !important; color: var(--muted) !important; border: 0 !important; }
.buddypress-wrap .select-wrap span.select-arrow::before { color: var(--muted); }
#buddypress #item-header, .buddypress-wrap #item-header { border-bottom: 1px solid var(--hairline); padding-bottom: 20px; margin-bottom: 20px; }
#buddypress #item-header .user-nicename, .buddypress-wrap .item-meta { color: var(--muted); }
#buddypress #item-header-cover-image, #buddypress #header-cover-image { background-color: var(--card-2) !important; border-radius: var(--r-l); border: 1px solid var(--hairline); }
.buddypress-wrap .bp-feedback { color: var(--text-2); box-shadow: none; }
.buddypress-wrap .bp-feedback .bp-icon { background-color: var(--card-2) !important; border-radius: var(--r-m) 0 0 var(--r-m); }
.buddypress-wrap .bp-feedback.error .bp-icon { background-color: var(--danger) !important; }
.buddypress-wrap .bp-feedback.success .bp-icon, .buddypress-wrap .bp-feedback.updated .bp-icon { background-color: var(--success) !important; }
.buddypress-wrap .standard-form input, .buddypress-wrap .standard-form textarea, .buddypress-wrap .standard-form select,
.buddypress-wrap #whats-new-form textarea, #buddypress #whats-new {
  background: var(--bg-2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: var(--r-s) !important;
}
#buddypress #whats-new-form, .buddypress-wrap .activity-update-form { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-l); box-shadow: none; }
.buddypress-wrap .bp-pagination { color: var(--muted); }
.buddypress-wrap .profile-fields td, .buddypress-wrap .profile-fields th { border-color: var(--hairline) !important; }
.buddypress-wrap table.wp-profile-fields tbody tr, .buddypress-wrap .profile-fields tr { background: transparent !important; }
.buddypress-wrap .profile-fields .label { color: var(--muted); }
body.register .buddypress-wrap .register-section, .buddypress-wrap .register-page .register-section {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-l); padding: 20px;
}
/* BuddyPress registration / activation screens */
.buddypress-wrap .bp-messages, .buddypress-wrap .bp-messages-content { color: var(--text-2); }

/* Login / register forms (wp-login.php is styled separately in the mu-plugin) */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:active, .tile-link:active { transform: none; }
}

/* ── Registration (BuddyPress) ─────────────────────────────────────────── */
.buddypress-wrap .bp-feedback, #buddypress .bp-feedback { background: var(--card) !important; border: 1px solid var(--border); border-radius: var(--r-m); color: var(--text-2) !important; }
.buddypress-wrap .bp-feedback p { color: var(--text-2) !important; }
.buddypress-wrap .bp-feedback .bp-icon { background-color: var(--card-2) !important; }
#buddypress .register-page, .buddypress-wrap .register-page { max-width: 640px; }
.buddypress-wrap .register-page .layout-wrap { display: flex; flex-direction: column; gap: 16px; border: 0 !important; }
.buddypress-wrap .register-page .register-section, .buddypress-wrap .register-page .layout-wrap > div { width: auto !important; float: none !important; margin: 0 !important; background: var(--card); border: 1px solid var(--hairline) !important; border-radius: var(--r-l); padding: 22px !important; }
.buddypress-wrap .register-page h2 { font: 600 17px/1.3 var(--font-display); margin: 0 0 14px; }
.buddypress-wrap .register-page label, .buddypress-wrap .register-page legend { font-size: 13.5px !important; font-weight: 500 !important; color: var(--text-2) !important; }
.buddypress-wrap .register-page .description, .buddypress-wrap .field-visibility-settings-notoggle, .buddypress-wrap .field-visibility-settings-toggle { color: var(--muted) !important; font-size: 12.5px; }
.buddypress-wrap .user-pass1-wrap .wp-pwd { display: flex; gap: 8px; align-items: center; }
.buddypress-wrap .user-pass1-wrap .wp-pwd input { flex: 1; }
.buddypress-wrap .wp-hide-pw { background: transparent !important; border: 1px solid var(--border) !important; color: var(--muted) !important; border-radius: var(--r-s) !important; height: 42px; width: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color var(--t), border-color var(--t); }
.buddypress-wrap .wp-hide-pw:hover { color: var(--text) !important; border-color: var(--border-2) !important; }
.caps-warning { display: none; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warn); margin-top: 6px; }
.caps-warning .caps-icon svg, .caps-icon svg { width: 16px !important; height: 16px !important; }
.caps-icon svg path { fill: currentColor !important; }
#pass-strength-result { margin-top: 8px; border-radius: var(--pill); padding: 3px 12px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--border); background: transparent !important; color: var(--text-2) !important; width: auto !important; display: inline-block; }
#pass-strength-result.bad, #pass-strength-result.short { border-color: var(--danger); color: var(--danger) !important; }
#pass-strength-result.good { border-color: var(--warn); color: var(--warn) !important; }
#pass-strength-result.strong { border-color: var(--success); color: var(--success) !important; }
.buddypress-wrap .register-page .description.indicator-hint, p.indicator-hint { background: transparent !important; color: var(--muted) !important; font-size: 12.5px; margin-top: 8px; }
.buddypress-wrap .privacy-policy-accept, .buddypress-wrap #signup-privacy-policy-check, .buddypress-wrap .register-page .privacy-policy-accept { color: var(--text-2); font-size: 14px; display: flex; gap: 8px; align-items: center; margin: 20px 0 6px; }
.buddypress-wrap .submit input#signup_submit, #buddypress input[type="submit"] {
  background: var(--accent) !important; color: var(--on-accent) !important; border: 1px solid var(--accent) !important; border-radius: var(--pill) !important;
  min-height: 42px; padding: 0 22px !important; font: 600 15px/1 var(--font) !important; cursor: pointer; transition: opacity var(--t), transform 120ms var(--ease-out);
}
.buddypress-wrap .submit input#signup_submit:hover, #buddypress input[type="submit"]:hover { opacity: .88; }
.buddypress-wrap .submit input#signup_submit:active, #buddypress input[type="submit"]:active { transform: scale(.97); }
#buddypress input[type="submit"]:focus-visible { box-shadow: var(--ring) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ── Narrow screens: the top bar must fit 360px ────────────────────────── */
.btn { white-space: nowrap; }
@media (max-width: 480px) {
  .topbar-in { gap: 10px; }
  .brand-sub { display: none; }
  .topbar-act { gap: 6px; }
  .topbar-act .btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
  .topbar-act .btn-ghost { display: none; } /* "Sign in" moves into the menu */
}
.nav-signin { display: none; }
@media (max-width: 480px) { .nav-signin { display: block; } }

/* ── Product site ──────────────────────────────────────────────────────── */
.btn-get { min-height: 34px; }
@media (max-width: 480px) { .btn-get { display: none; } }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-split { grid-template-columns: 1fr; gap: 36px; } }
.hero-split .display { max-width: 13ch; }

.term { margin: 0; border: 1px solid var(--hairline-2); border-radius: var(--r-l); background: var(--code-bg); box-shadow: var(--inset), 0 30px 80px -40px color-mix(in srgb, #000 60%, transparent); overflow: hidden; min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.term-bar span { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--border-2); }
.term-bar b { margin-left: 8px; font: 500 12px var(--mono); color: var(--muted); }
.term-body { margin: 0; border: 0; border-radius: 0; background: none; padding: 18px 18px 6px; font-size: 12.5px; line-height: 1.75; white-space: pre; overflow-x: auto; }
.term-c { color: var(--muted); } .term-p { color: var(--muted); user-select: none; } .term-k { color: var(--text); text-decoration: underline; text-decoration-color: var(--hairline-2); text-underline-offset: 3px; }
.term-body code { color: var(--text-2); }
.term-cap { padding: 10px 18px 16px; font-size: 12.5px; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-block: 1px solid var(--hairline); }
.facts div { padding: 18px 20px 18px 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--hairline); }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 14.5px; text-wrap: pretty; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--hairline); } }

.sec { padding-top: 112px; }
.sec-head { margin-bottom: 32px; max-width: 720px; }
.lede-s { font-size: 16.5px; margin-top: 12px; }
.sec-more { margin: 18px 0 0; }
.link-l { font-size: 15px; color: var(--text-2); }

.bento-plat { grid-template-columns: repeat(6, 1fr); }
.bento-plat .tile { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; transition: border-color var(--t), background var(--t); }
.bento-plat .tile:hover { border-color: var(--hairline-2); }
.bento-plat .tile p { margin: 0; font-size: 14px; }
.bento-plat .tile-hero-cap { grid-column: span 4; grid-row: span 2; padding: 30px; background: linear-gradient(180deg, color-mix(in srgb, var(--fg) 4%, var(--card)), var(--card)); }
.bento-plat .tile-wide { grid-column: span 4; }
.cap-k { font-size: 12.5px !important; font-weight: 600; color: var(--muted); }
.cap-t { margin: 2px 0 4px; font: 650 18px/1.25 var(--font-display); letter-spacing: -.015em; }
.tile-hero-cap .cap-t { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.03em; max-width: 16ch; margin-bottom: 10px; }
.tile-hero-cap .muted { font-size: 15.5px !important; max-width: 52ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 20px 0 0; }
.chips li { border: 1px solid var(--border); border-radius: var(--pill); padding: 4px 11px; font-size: 12.5px; color: var(--text-2); }
@media (max-width: 900px) { .bento-plat { grid-template-columns: 1fr 1fr; } .bento-plat .tile, .bento-plat .tile-hero-cap, .bento-plat .tile-wide { grid-column: span 2; grid-row: auto; } }
@media (min-width: 561px) and (max-width: 900px) { .bento-plat .tile:not(.tile-hero-cap):not(.tile-wide) { grid-column: span 1; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 16px; } }
.formats { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; padding: 0; }
.formats li { font: 600 13px var(--mono); padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--r-s); }
.formats li.to { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.formats li.to::before { content: "→ "; }

.mission { margin-top: 112px; padding: 64px 0; border-block: 1px solid var(--hairline); }
.mission-t { font: 700 clamp(26px, 3.6vw, 42px)/1.12 var(--font-display); letter-spacing: -.03em; margin: 0; max-width: 24ch; text-wrap: balance; }

.bento-comm { margin-top: 64px; }
.bento-comm .tile-focus { grid-row: span 2; }
.tile-news { grid-column: span 2; }
.news { list-style: none; margin: 0 -8px; padding: 0; }
.news a { display: flex; flex-direction: column; padding: 9px 8px; border-radius: var(--r-s); text-decoration: none; transition: background var(--t); }
.news a:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.news-t { font-weight: 600; font-size: 14.5px; }
.news-d { font-size: 12.5px; color: var(--muted); }
.tile-news > p { margin: 0; font-size: 14px; }
@media (max-width: 900px) { .tile-news { grid-column: span 2; } }

.close { margin-top: 112px; padding: 56px 0 0; border-top: 1px solid var(--hairline); }
.close .h1 { max-width: 20ch; text-wrap: balance; }
.close-s { margin-top: 64px; padding-top: 32px; }

/* Platform page */
.plat-head { max-width: 760px; }
.plat-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.plat-jump a { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--pill); font-size: 13.5px; text-decoration: none; color: var(--text-2); transition: border-color var(--t), color var(--t); }
.plat-jump a:hover { border-color: var(--border-2); color: var(--text); }
.plat-jump .num { color: var(--muted); font-size: 12px; }
.plat-group { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--hairline); scroll-margin-top: 80px; }
.plat-g { margin: 0; font: 650 20px/1.2 var(--font-display); letter-spacing: -.02em; position: sticky; top: 84px; align-self: start; }
.plat-list { margin: 0; }
.plat-row { padding: 14px 0; }
.plat-row + .plat-row { border-top: 1px solid var(--hairline); }
.plat-row dt { font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.plat-row dd { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; max-width: 70ch; }
.since { font: 500 11.5px var(--mono); color: var(--muted); border: 1px solid var(--border); border-radius: var(--pill); padding: 1px 7px; }
@media (max-width: 760px) { .plat-group { grid-template-columns: 1fr; gap: 8px; } .plat-g { position: static; } }
/* layout fixes after render review */
.hero-split .display { max-width: 15ch; font-size: clamp(36px, 5.2vw, 60px); }
.bento-plat .tile-wide { grid-column: 1 / -1; }
.close .h1 { max-width: 26ch; }
