/*
 * Bastion — visual system.
 *
 * Tuned against a real Invision Community gaming board: dark by default,
 * dense, and colour-coded by function rather than decoration. Blue marks
 * structure (categories), green marks community blocks in the rail, orange
 * flags what is new. The angled shoulder — a bastion is the work that
 * projects from a wall — stays as the identity mark on tiles and buttons.
 */

:root {
  /* Colour tokens are supplied by /theme.css, which the admin theme editor and
     each member's theme choice drive. Only structure and type live here, so a
     recolour never needs a stylesheet edit. */
  --rail: 3px;
  --notch: 11px;

  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-data: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Fallbacks, so the board is still legible if the palette fails to load. */
  --bg: #16181c; --surface: #212429; --surface-2: #282c33; --line: #33383f;
  --text: #d7dbe0; --muted: #8b929c; --cat: #3a6d9e; --cat-2: #2f5c88;
  --block: #5c9c3e; --link: #6ea8dc; --brass: #c8952f; --flag: #d9822b;
  --ink: #101215; --wall: #1b1e23; --alarm: #c0504a; --ok: #5c9c3e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  /* Containing block for the free-canvas layer (absolute page coordinates). */
  position: relative;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ── Data annotations ─────────────────────────────────────────────────── */
.data,
.chip,
.stat__label,
.crumbs,
.pager,
.panel__title,
.forumrow__stats,
.postcard__meta {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }

/* ── Chrome, tier one: identity and account ───────────────────────────── */
.brandbar { background: var(--ink); border-bottom: 1px solid #22304a; }
.brandbar__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 22px; min-height: 66px; flex-wrap: wrap;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 11px; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  letter-spacing: -.02em; text-transform: uppercase; line-height: 1.05;
}
.wordmark:hover { text-decoration: none; }
.wordmark em {
  display: block; font-family: var(--font-data); font-style: normal;
  font-size: 9.5px; font-weight: 400; letter-spacing: .16em; color: #7d8ca3;
}

.glyph {
  width: 26px; height: 26px;
  background: linear-gradient(150deg, var(--brass), #8a5f18);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
/* Admin-uploaded brand mark: keep the box, drop the clip so a photo/logo shows. */
.glyph--img {
  background: none;
  clip-path: none;
  object-fit: contain;
  border-radius: 2px;
}
/* Wordmark anchor when the logo is free-floated elsewhere on the page. */
.glyph--anchor {
  opacity: .35;
  outline: 1px dashed color-mix(in srgb, var(--brass) 60%, transparent);
  outline-offset: 2px;
}

/* Free-positioned brand mark (anywhere on the page). */
.brand-float {
  position: absolute;
  z-index: 46;
  pointer-events: auto;
  line-height: 0;
}
.brand-float__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
  -webkit-user-drag: none;
}

/* Free canvas: absolute layer for blocks that sit anywhere on the page. */
.layout-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  min-height: 100%;
  height: 0; /* height comes from abs children; overflow is visible */
  pointer-events: none;
  z-index: 45;
  overflow: visible;
}
.layout-canvas .lblock {
  pointer-events: auto;
}
.lblock--canvas {
  box-sizing: border-box;
  overflow: hidden;
}
.lblock--canvas .lblock__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
}
.lblock--canvas.lblock--text {
  overflow: auto;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.lblock--canvas.lblock--text .lblock__text {
  height: 100%;
}
.lblock--w-canvas {
  flex: none;
  width: auto;
}

.brandbar__search { flex: 1; min-width: 200px; max-width: 460px; display: flex; gap: 8px; }
.brandbar__search input {
  flex: 1; background: #101b2d; border: 1px solid #2a3852; color: #dbe3ee;
  font: inherit; font-size: 13px; padding: 8px 12px; border-radius: 2px;
}
.brandbar__search input::placeholder { color: #6b7a90; }
.brandbar__search input:focus { border-color: var(--brass); outline: none; }

.brandbar__account { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.brandbar__account form { margin: 0; }
.accountlink {
  color: #c3cfdf; font-family: var(--font-data); font-size: 11px;
  letter-spacing: .09em; text-transform: uppercase;
}
.accountlink:hover { color: #fff; text-decoration: none; }
.accountlink--me { display: inline-flex; align-items: center; gap: 8px; }

/* ── Layout zones & blocks (admin "design mode" chrome) ────────────────────
   A zone is a horizontal band of admin-placed blocks; blocks flow left→right
   and wrap, so a row of half-width banners lines up and collapses on a phone.
   Per-block width/height/offset/background come from inline style the CSP
   allows; these rules are only the structure. */
.zone { max-width: 1240px; margin: 0 auto; padding: 6px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.zone--page_top, .zone--under_nav, .zone--footer_top { max-width: none; padding-left: 0; padding-right: 0; }
.zone:empty { display: none; }
.lblock { min-width: 0; }
.lblock__img { display: block; max-width: 100%; height: auto; border-radius: 2px; }
.lblock__text { line-height: 1.55; }
.lblock__hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.lblock--w-full { flex: 1 1 100%; width: 100%; }
.lblock--w-wide { flex: 1 1 100%; width: 100%; }
.lblock--w-half { flex: 1 1 calc(50% - 6px); }
.lblock--w-third { flex: 1 1 calc(33.333% - 8px); }
.lblock--a-center { text-align: center; }
.lblock--a-center .lblock__img { margin-left: auto; margin-right: auto; }
.lblock--a-right { text-align: right; }
.lblock--a-right .lblock__img { margin-left: auto; }
@media (max-width: 760px) { .lblock--w-half, .lblock--w-third { flex-basis: 100%; } }

/* Floating design-mode toggle — always available to admins; the overlay
   styles in designer.css take over once design mode is on. */
.designbar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.designbar form { margin: 0; display: inline; }

/* Admin layout-editor row controls. */
.lbar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.lbar form { margin: 0; }
.lbar__edit { margin-top: 8px; }
.field--row { display: flex; gap: 12px; flex-wrap: wrap; }
.field--row > div { flex: 1 1 120px; }

/* The brandbar is a dark chrome bar in every theme (its background is --ink,
   which stays dark even on the light theme). A ghost button here must take a
   fixed light label like the rest of the bar, not var(--text): on the light
   theme --text is near-black and the "Sign in"/"Sign out" label disappears
   against the dark bar. */
.brandbar .btn--ghost { color: #c3cfdf; border-color: #2a3852; }
.brandbar .btn--ghost:hover { color: #fff; border-color: var(--brass); }

/* ── Chrome, tier two: navigation ─────────────────────────────────────── */
.navbar { background: var(--wall); border-bottom: 1px solid #2b3a55; position: sticky; top: 0; z-index: 20; }
.navbar__inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; gap: 2px; overflow-x: auto; }
.navtab {
  color: #b9c5d6; font-family: var(--font-data); font-size: 11.5px;
  letter-spacing: .11em; text-transform: uppercase; font-weight: 600;
  padding: 13px 16px; border-bottom: 3px solid transparent; white-space: nowrap;
}
.navtab:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.04); }
.navtab[aria-current="page"] { color: #fff; border-bottom-color: var(--brass); background: rgba(182,131,42,.12); }

/* ── Chrome, tier three: location ─────────────────────────────────────── */
.crumbbar { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.crumbbar__inner {
  max-width: 1240px; margin: 0 auto; padding: 9px 20px;
  display: flex; align-items: center; gap: 16px;
}
.crumbs { margin: 0; }
.crumbbar__action { margin-left: auto; color: var(--muted); }

/* ── Shell ────────────────────────────────────────────────────────────── */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 22px;
  align-items: start;
}
.shell__main { min-width: 0; }
.shell__rail { min-width: 0; }
.shell--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
}

.crumbs { color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--link); }
.crumbs span { opacity: .5; margin: 0 6px; }

/* ── Panel: the rail is the signature ─────────────────────────────────── */
.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: none;
  margin-bottom: 20px;
}
.panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--rail);
  background: var(--brass);
  clip-path: polygon(0 var(--notch), 100% 0, 100% 100%, 0 100%);
}

.panel__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.panel__title { color: var(--muted); font-weight: 600; margin: 0; }
.panel__aside { margin-left: auto; }

.panel__body { padding: 16px; }

/* ── Rows ─────────────────────────────────────────────────────────────── */
.row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: none; }
.row:hover { background: var(--surface-2); }

/* Unread notifications: marked by a rule down the edge rather than by colour
   alone, so the distinction survives a theme and a colour-blind reader. */
.row--unread { box-shadow: inset 3px 0 0 var(--brass); }
.row--unread .row__title { font-weight: 700; }

.row__glyph {
  width: 34px; height: 34px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 13px;
}
.row__glyph--active { background: var(--brass); border-color: var(--brass); color: #fff; }

.row__title { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; }
.row__title a { color: var(--text); }
.row__title a:hover { color: var(--link); text-decoration: none; }
.row__desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.row__meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.row__stats {
  display: flex; gap: 16px;
  color: var(--muted);
  font-family: var(--font-data); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
  text-align: right;
}
.row__stats b { display: block; color: var(--text); font-size: 14px; letter-spacing: 0; font-weight: 650; }

.row__last { min-width: 190px; display: flex; gap: 10px; align-items: center; }
.row__last .ident { flex: none; }
.row__last-text { min-width: 0; font-size: 12.5px; line-height: 1.35; }
.row__last-text a { font-weight: 600; }

@media (max-width: 760px) {
  .row { grid-template-columns: 34px minmax(0, 1fr); }
  .row__stats, .row__last { display: none; }
}

/* ── Identity tile: the shoulder, repeated ────────────────────────────── */
.ident {
  width: 34px; height: 34px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px;
  letter-spacing: -.02em;
  background: hsl(var(--h, 210) 34% 34%);
  flex: none;
}
.ident--lg { width: 56px; height: 56px; font-size: 20px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.ident--sm { width: 26px; height: 26px; font-size: 11px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%); }

/* ── Chips ────────────────────────────────────────────────────────────── */
.chip {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface-2);
  vertical-align: 2px;
}
.chip--pin   { color: var(--brass); border-color: var(--brass); }
.chip--lock  { color: var(--muted); }
.chip--tag   { color: var(--link); border-color: var(--link); }
.chip--admin { color: #fff; background: var(--brass); border-color: var(--brass); }

/* ── Posts ────────────────────────────────────────────────────────────── */
.postcard { display: grid; grid-template-columns: 172px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.postcard:last-child { border-bottom: none; }
.postcard__author {
  padding: 18px 16px;
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  text-align: center;
}
.postcard__name { font-weight: 700; margin-top: 8px; letter-spacing: -.01em; }
.postcard__name a { color: var(--text); }
.postcard__rank { color: var(--muted); font-family: var(--font-data); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.postcard__figures { margin-top: 10px; display: flex; justify-content: center; gap: 12px;
  font-family: var(--font-data); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.postcard__figures b { display: block; color: var(--text); font-size: 13px; letter-spacing: 0; }

.postcard__main { padding: 16px 18px; min-width: 0; }
.postcard__meta { color: var(--muted); display: flex; gap: 12px; align-items: center;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 12px; }
.postcard__meta a { color: var(--muted); }
.postcard__body { overflow-wrap: anywhere; }
.postcard__body p:first-child { margin-top: 0; }
.postcard__body img { max-width: 100%; height: auto; }
.postcard__foot { margin-top: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

@media (max-width: 700px) {
  .postcard { grid-template-columns: minmax(0, 1fr); }
  .postcard__author { display: flex; align-items: center; gap: 12px; text-align: left;
    border-right: none; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .postcard__name { margin-top: 0; }
  .postcard__figures { margin-top: 0; margin-left: auto; }
}

.attachment {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface-2);
  padding: 7px 11px; font-size: 13px;
}
.attachment .data { color: var(--muted); }

.reaction {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface-2);
  padding: 4px 9px; font-family: var(--font-data); font-size: 11px; color: var(--muted);
}
.reaction b { color: var(--text); }

/* ── Side rail modules ────────────────────────────────────────────────── */
.stream__item { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.stream__item:last-child { border-bottom: none; }
.stream__text { min-width: 0; font-size: 13px; line-height: 1.45; }
.stream__text a { font-weight: 600; }
.stream__excerpt { color: var(--muted); font-size: 12.5px; }

.figures { display: grid; grid-template-columns: repeat(2, 1fr); }
.figure { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure:nth-child(2n) { border-right: none; }
.figure:nth-last-child(-n+2) { border-bottom: none; }
.figure__n { font-family: var(--font-display); font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.figure__label { font-family: var(--font-data); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); }

/* ── Forms & buttons ──────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
label { display: block; font-family: var(--font-data); font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

input[type=text], input[type=password], input[type=search], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  border-radius: 2px;
}
input:focus, textarea:focus { border-color: var(--brass); outline: none; }
textarea { min-height: 150px; resize: vertical; }

.btn {
  display: inline-block;
  background: var(--brass);
  color: #fff;
  border: 1px solid var(--brass);
  padding: 9px 16px;
  font-family: var(--font-data); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn--plain { clip-path: none; }

/* ── Notices ──────────────────────────────────────────────────────────── */
.notice { padding: 11px 15px; margin-bottom: 18px; border: 1px solid var(--link);
  border-left-width: 3px; background: color-mix(in srgb, var(--link) 9%, transparent); }
.notice--bad { border-color: var(--alarm); background: color-mix(in srgb, var(--alarm) 9%, transparent); }

.empty { padding: 26px 16px; text-align: center; color: var(--muted); }
.empty__lead { font-family: var(--font-display); font-weight: 650; color: var(--text); margin-bottom: 4px; }

/* ── Pagination ───────────────────────────────────────────────────────── */
.pager { display: flex; gap: 6px; margin: 0 0 22px; }
.pager a, .pager span { border: 1px solid var(--line); padding: 6px 11px; color: var(--muted); background: var(--surface); }
.pager a:hover { border-color: var(--brass); color: var(--brass); text-decoration: none; }
.pager [aria-current="page"] { background: var(--brass); border-color: var(--brass); color: #fff; }
.pager svg { width: 12px; height: 12px; }

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

/* ── Our picks: what the staff chose, carried over as pinned topics ───── */
.picks { margin-bottom: 22px; }
.picks__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.picks__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pick {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-left: none; padding: 15px 16px;
}
.pick::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail);
  background: var(--brass);
  clip-path: polygon(0 var(--notch), 100% 0, 100% 100%, 0 100%);
}
.pick__where { color: var(--muted); }
.pick__title { margin: 6px 0 8px; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pick__title a { color: var(--text); }
.pick__title a:hover { color: var(--link); text-decoration: none; }
.pick__excerpt { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pick__foot { display: flex; align-items: center; gap: 8px; }

/* Subforum links under a forum row, as a board index carries them. */
.row__subs { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.row__subs a { color: var(--muted); }
.row__subs a:hover { color: var(--link); }
.row__subs span { opacity: .45; margin: 0 5px; }

/* Online-member pills. */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface-2);
  padding: 4px 10px 4px 4px; margin: 0 6px 6px 0; font-size: 13px; color: var(--text);
}
.pill:hover { border-color: var(--brass); text-decoration: none; }

.panel__foot {
  padding: 11px 16px; border-top: 1px solid var(--line); background: var(--surface-2);
  font-family: var(--font-data); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

.rank {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: var(--muted); min-width: 18px; text-align: center; align-self: center;
}
.rank--lg { font-size: 20px; color: var(--brass); }

.btn--sm { padding: 7px 12px; font-size: 10.5px; }
.btn--block { display: block; width: 100%; text-align: center; }

/* "or" divider between the password form and a social sign-in button. */
.authsep { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 11px; }
.authsep::before, .authsep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); margin-top: 34px; background: var(--surface); }
.foot__inner {
  max-width: 1240px; margin: 0 auto; padding: 30px 20px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px;
}
.foot__col { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.foot__col--wide p { margin: 0; line-height: 1.6; font-size: 13px; }
.foot__head {
  font-family: var(--font-data); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text); font-weight: 700; margin-bottom: 3px;
}
.foot__legal {
  border-top: 1px solid var(--line);
  max-width: 1240px; margin: 0 auto; padding: 14px 20px 40px;
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-data); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.foot__legal span:last-child { margin-left: auto; }

/* ── Board chrome, matched to a real community's information hierarchy ─── */

/* Sub-navigation: the second row of destinations under the main tabs. */
.subnav { background: var(--wall); border-bottom: 1px solid var(--line); }
.subnav__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  display: flex; gap: 20px; overflow-x: auto;
}
.subnav a {
  color: var(--muted); font-size: 13px; padding: 9px 0; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--line); }

.navtab__icon { opacity: .8; margin-right: 7px; }

/* Actions living on the breadcrumb bar, as a board keeps them. */
.crumbbar__inner { gap: 12px; }
.barbtn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 5px 11px; color: var(--muted);
  font-family: var(--font-data); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
}
.barbtn:hover { border-color: var(--brass); color: var(--brass); text-decoration: none; }
.barbtn--go { background: var(--block); border-color: var(--block); color: #fff; }
.barbtn--go:hover { color: #fff; filter: brightness(1.1); border-color: var(--block); }

/* Page header strip: title left, primary action right. */
.pagehead {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-left: none;
  padding: 14px 18px; margin-bottom: 18px; position: relative;
}
.pagehead::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--rail);
  background: var(--brass); clip-path: polygon(0 var(--notch), 100% 0, 100% 100%, 0 100%);
}
.pagehead h1 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.pagehead__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* Category bar: blue, the way a board separates its sections. */
.panel--cat { border-left: 1px solid var(--line); }
.panel--cat::before { display: none; }
.panel--cat .panel__head {
  background: linear-gradient(180deg, var(--cat), var(--cat-2));
  border-bottom-color: var(--cat-2);
}
.panel--cat .panel__title { color: #fff; font-size: 12px; letter-spacing: .1em; }
.panel--cat .panel__aside { color: rgba(255,255,255,.75); }

/* Community blocks in the rail: green headers. */
.panel--block .panel__head { background: var(--block); border-bottom-color: #4c8534; }
.panel--block .panel__title { color: #fff; }
.panel--block .panel__aside { color: rgba(255,255,255,.8); }
.panel--block::before { background: #4c8534; }

/* Forum rows carry an icon, a new flag, and their subforums. */
.flag {
  display: inline-block; background: var(--flag); color: #fff;
  font-family: var(--font-data); font-size: 9.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 6px; margin-right: 7px; vertical-align: 2px;
}

.row__glyph--forum {
  width: 42px; height: 42px; font-size: 14px; font-weight: 700;
  background: linear-gradient(150deg, var(--cat), var(--cat-2));
  border-color: var(--cat-2); color: #fff;
}
.row__glyph--quiet { background: var(--surface-2); border-color: var(--line); color: var(--muted); }

.row__subs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.row__subs a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.row__subs a::before {
  content: ""; width: 5px; height: 5px; background: var(--link); opacity: .7; flex: none;
}
.row__subs span { display: none; }

.row__stats b { font-size: 15px; }

/* Donation-style progress meter. */
.meter { height: 20px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.meter__fill { height: 100%; background: linear-gradient(180deg, var(--cat), var(--cat-2)); }
.meter__label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-data); font-size: 10.5px; letter-spacing: .08em; color: #fff;
}

/* A block that exists but has no data yet, stated plainly rather than faked. */
.pending {
  padding: 14px 16px; color: var(--muted); font-size: 13px; line-height: 1.5;
}
.pending b { color: var(--text); font-weight: 650; }

.sharebtns { display: flex; gap: 8px; padding: 14px 16px; }
.sharebtns .btn { flex: 1; text-align: center; }

/* ── Theme picker and editor ──────────────────────────────────────────── */
.themepicker { display: flex; align-items: center; gap: 8px; }
.themepicker label { margin: 0; }
.themepicker select {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font: inherit; font-size: 12px; padding: 4px 8px; border-radius: 2px;
}
.themepicker select:focus { border-color: var(--brass); outline: none; }

.themegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.themecard {
  display: block; border: 1px solid var(--line); background: var(--surface-2);
  padding: 12px; cursor: pointer; margin: 0;
  font-family: var(--font-body); font-size: 13px; letter-spacing: normal; text-transform: none;
}
.themecard:hover { border-color: var(--brass); }
.themecard--on { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.themecard input { position: absolute; opacity: 0; width: 0; height: 0; }
.themecard input:focus-visible + .themecard__swatches { outline: 2px solid var(--brass); outline-offset: 2px; }
.themecard__swatches { display: flex; height: 26px; margin-bottom: 9px; }
.themecard__swatches span { flex: 1; }
.themecard__name { display: block; font-weight: 700; color: var(--text); }
.themecard__summary { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }

.tokengrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tokengrid .field { margin-bottom: 0; }
.tokengrid input { margin-bottom: 4px; font-family: var(--font-data); }

/* ── Files in posts ───────────────────────────────────────────────────── */
img.ident { object-fit: cover; background: var(--surface-2); }

.shot { display: inline-block; border: 1px solid var(--line); line-height: 0; margin: 0 8px 8px 0; }
.shot:hover { border-color: var(--brass); }
.shot img { max-width: 260px; max-height: 200px; object-fit: cover; }
/* A tile with no picture behind it: a clip, or an image whose file was left
   behind by the migration. Sized like a thumbnail so a grid stays a grid. */
.shot__stand { display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 180px; height: 135px; gap: 6px; background: var(--panel-2, transparent); line-height: 1.3; }
.shot__glyph { font-size: 26px; color: var(--brass); }
.shot__label { font-family: var(--font-data); font-size: 11.5px; opacity: .75; }
.fullshot { max-width: 100%; height: auto; border: 1px solid var(--line); }
.radio { display: block; margin: 0 0 8px; }
.radio input { margin-right: 8px; }

a.attachment { color: var(--text); }
a.attachment:hover { border-color: var(--brass); text-decoration: none; }

.uploadrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.uploadrow input[type=file] {
  color: var(--muted); font-size: 13px; max-width: 320px;
  border: 1px solid var(--line); background: var(--surface-2); padding: 7px 10px;
}

/* ── Moderation ───────────────────────────────────────────────────────── */
.postcard--hidden { opacity: .62; background: repeating-linear-gradient(
  135deg, transparent, transparent 9px, rgba(192,80,74,.05) 9px, rgba(192,80,74,.05) 18px); }
.chip--hidden { color: var(--alarm); border-color: var(--alarm); }
.postcard__tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.postcard__tools form { margin: 0; }
.postcard__tools .barbtn { cursor: pointer; font-family: var(--font-data); }
select {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  font: inherit; padding: 9px 11px; border-radius: 2px; width: 100%;
}
select:focus { border-color: var(--brass); outline: none; }

/* ── Administration ───────────────────────────────────────────────────── */
.adminnav { display: flex; gap: 2px; margin-bottom: 18px; flex-wrap: wrap; }
.adminnav__link {
  border: 1px solid var(--line); background: var(--surface); padding: 8px 14px;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.adminnav__link:hover { color: var(--text); text-decoration: none; border-color: var(--brass); }
.adminnav__link--on { background: var(--brass); border-color: var(--brass); color: #fff; }

.tablewrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.grid th, table.grid td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.grid thead th {
  background: var(--surface-2); color: var(--muted);
  font-family: var(--font-data); font-size: 10.5px; letter-spacing: .09em;
  text-transform: uppercase; font-weight: 600; white-space: nowrap;
}
table.grid tbody th { font-weight: 650; }
table.grid tbody tr:hover { background: var(--surface-2); }

.checkline { display: flex; align-items: center; gap: 9px; margin: 0 0 9px; cursor: pointer;
  font-family: var(--font-body); font-size: 13.5px; letter-spacing: normal; text-transform: none; color: var(--text); }
.checkline input { width: 16px; height: 16px; accent-color: var(--brass); }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 2px 14px;
  border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }

/* ── Reports and sanctions ────────────────────────────────────────────── */
.pip {
  display: inline-block; min-width: 17px; padding: 1px 5px; margin-left: 3px;
  background: var(--alarm); color: #fff; border-radius: 9px;
  font-family: var(--font-data); font-size: 10px; text-align: center;
}

.report { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 9px; }
.report > summary {
  cursor: pointer; color: var(--muted); font-family: var(--font-data);
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; list-style: none;
}
.report > summary::-webkit-details-marker { display: none; }
.report > summary::before { content: "⚑ "; }
.report > summary:hover { color: var(--alarm); }
.report form { display: flex; gap: 9px; align-items: flex-end; margin-top: 10px; flex-wrap: wrap; }
.report .field { flex: 1 1 260px; margin: 0; }

.report-card { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.report-card:last-child { border-bottom: 0; }
.report-card__head { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.report-card__reason {
  margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--alarm);
  background: var(--surface-2); font-style: italic;
}
.report-card__quote {
  margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted); font-size: 13.5px;
}
.report-card__foot { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.report-card__foot form { display: flex; gap: 8px; align-items: center; flex: 1 1 auto; flex-wrap: wrap; }
.report-card__foot input[type=text] { flex: 1 1 220px; }
.barbtn.is-on { background: var(--brass); border-color: var(--brass); color: #fff; }

/* Merge & split. The per-post "Split" tick lives in the post toolbar but posts
   to the form at the foot of the page, so it has to read as a control there. */
.barbtn--pick { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.barbtn--pick input { margin: 0; accent-color: var(--brass); }
.barbtn--pick:has(input:checked) { background: var(--brass); border-color: var(--brass); color: #fff; }

.surgery p.muted { margin: 0 0 12px; font-size: 13px; }
.surgery .notice { margin: 10px 0 0; }
.checkrow { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 13px; }
.checkrow input { accent-color: var(--alarm); }

/* Search. The filter row is a real form, so it has to look like part of the
   panel rather than a widget bolted onto it. */
.searchbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.searchbar .field { margin: 0; flex: 0 0 auto; }
.searchbar .field:first-child { flex: 1 1 320px; }
.searchbar input[type=search] { width: 100%; }
.searchhelp { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.searchhelp code {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 3px; font-size: 12.5px;
}
.row__desc mark { background: color-mix(in srgb, var(--brass) 35%, transparent); color: inherit; padding: 0 1px; }

/* ── Composer ─────────────────────────────────────────────────────────────
   The toolbar is inserted by /js/editor.js; without it this whole block is
   simply unused and the textarea stands on its own. */
.composer__bar {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 6px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.composer__bar .barbtn { min-width: 30px; justify-content: center; }
.composer__bar .barbtn--right { margin-left: auto; }
.composer__preview {
  margin-top: 10px; padding: 12px 14px;
  background: var(--wall); border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  overflow-wrap: anywhere;
}
.composer__preview::before {
  content: 'Preview'; display: block;
  font-family: var(--font-data); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.composer__help { margin-top: 8px; color: var(--muted); font-size: 13px; }
.composer__help summary { cursor: pointer; }
.syntax { margin: 8px 0 0; padding-left: 18px; line-height: 2; }
.syntax code {
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 3px; font-size: 12.5px;
}

/* ── What members write ───────────────────────────────────────────────────
   Styles for the markup the composer produces, and for the same tags in
   imported posts, which used them long before this board existed. */
.postcard__body blockquote, .composer__preview blockquote {
  margin: 10px 0; padding: 10px 14px;
  background: var(--wall); border-left: 3px solid var(--cat);
}
.postcard__body blockquote cite, .composer__preview blockquote cite {
  display: block; margin-bottom: 6px;
  font-style: normal; font-size: 13px; color: var(--muted);
}
.postcard__body pre, .composer__preview pre {
  margin: 10px 0; padding: 12px 14px; overflow-x: auto;
  background: var(--ink); border: 1px solid var(--line);
  font-family: var(--font-data); font-size: 13px;
}
.postcard__body details.spoiler, .composer__preview details.spoiler {
  margin: 10px 0; padding: 8px 12px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.postcard__body details.spoiler summary { cursor: pointer; color: var(--muted); }
.postcard__body a.mention, .composer__preview a.mention { font-weight: 600; }
.postcard__body details.ignored > summary { cursor: pointer; color: var(--muted); font-style: italic; }
.postcard__body details.ignored[open] > summary { margin-bottom: 8px; }
details.secgroups > summary { cursor: pointer; }
.secgroups__list { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.secgroups__list label { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ── Administration ───────────────────────────────────────────────────── */
/* The board-wide announcement. Marked out from a flash message: one is what
   just happened to you, the other is what the community is telling everyone. */
.notice--board { border-color: var(--brass); border-left-width: 3px;
  background: color-mix(in srgb, var(--brass) 10%, transparent); }
.notice--board p { margin: 0 0 6px; }
.notice--board p:last-child { margin-bottom: 0; }

/* The group rows reuse .checkrow, but they wrap and carry named controls. */
.grid .checkrow { flex-wrap: wrap; margin: 0; }
.grid .checkrow label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.grid .checkrow input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--brass); }
.grid .checkrow input[name="name"], .grid .checkrow select { min-width: 130px; }

/* ── Downloads ────────────────────────────────────────────────────────── */
/* The catalogue reuses .panel/.row wholesale — a file listing and a topic
   listing are the same object at a glance, which is the point. What is new is
   the side rail, the star rating and the screenshot strip. */
.railrow { padding: 9px 14px; border-top: 1px solid var(--line); }
.railrow:first-of-type { border-top: 0; }
.railrow__title { font-size: 13px; line-height: 1.35; }
.railrow__title a { font-weight: 600; }
.railrow__meta { font-family: var(--font-data); font-size: 11.5px; margin-top: 2px; }

.shots { display: flex; flex-wrap: wrap; }

/* The topic moderation toolbox, collapsed by default so it does not bury the
   reply box. The summary reads as a button; open, it reveals the panels. */
.modtools { margin: 14px 0; }
.modtools__summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel-2, transparent); font-weight: 600; font-size: 13px; list-style: none; }
.modtools__summary::-webkit-details-marker { display: none; }
.modtools__summary::before { content: "🛡"; }
.modtools__summary::after { content: "▸"; color: var(--brass); margin-left: 2px; }
.modtools[open] > .modtools__summary { margin-bottom: 10px; }
.modtools[open] > .modtools__summary::after { content: "▾"; }

/* Post reactions: a row of emoji counts, and a pop-out picker. */
.reactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px;
  padding-top: 8px; border-top: 1px solid var(--line); }
.reactions__count { font-size: 13px; display: inline-flex; align-items: center; gap: 3px; }
.reactions__count b { font-weight: 600; }
.reactions__pick { position: relative; }
.reactions__pick > summary { list-style: none; cursor: pointer; display: inline-block; }
.reactions__pick > summary::-webkit-details-marker { display: none; }
.reactions__menu { position: absolute; bottom: 100%; left: 0; margin-bottom: 6px; z-index: 5;
  display: flex; gap: 2px; padding: 5px; background: var(--panel, #fff);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.reactions__menu form { margin: 0; }
.reactions__face { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer;
  padding: 4px; border-radius: 50%; transition: transform .08s; }
.reactions__face:hover { transform: scale(1.3); }
.reactions__face--on { background: color-mix(in srgb, var(--brass) 30%, transparent); }

/* The GIF picker panel that drops out of the composer toolbar. */
.gifpanel { border: 1px solid var(--line); border-radius: 4px; padding: 10px; margin-bottom: 8px;
  background: var(--panel-2, transparent); }
.gifpanel__search { width: 100%; padding: 7px 10px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel, #fff); color: inherit; }
.gifpanel__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px; max-height: 320px; overflow-y: auto; }
.gifpanel__item { width: 100%; height: 100px; object-fit: cover; border: 1px solid var(--line);
  border-radius: 3px; cursor: pointer; background: #000; }
.gifpanel__item:hover { border-color: var(--brass); }

/* The emoji picker: a compact static grid. */
.emojipanel { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2, transparent);
  max-height: 180px; overflow-y: auto; }
.emojipanel__item { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer;
  padding: 4px; border-radius: 4px; }
.emojipanel__item:hover { background: color-mix(in srgb, var(--brass) 25%, transparent); }

/* Video embeds. The server renders a plain link (.videoembed); with scripting
   on, embeds.js swaps it for a 16:9 click-to-play box that loads nothing from
   the video host until the play button is pressed. */
.videoembed { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 4px; font-weight: 600; text-decoration: none; }
.videoembed__play { color: var(--brass); }
.videoembed-box { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9;
  margin: 10px 0; border: 1px solid var(--line); background: #000;
  display: flex; align-items: center; justify-content: center; }
.videoembed-box__play { width: 64px; height: 64px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.6); color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.videoembed-box__play:hover { background: var(--brass); }
.videoembed-box__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* A member's signature, under their post. Set off from the body and bounded so
   it stays a signature rather than a second post; images inside are capped. */
.signature { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted, inherit); opacity: .85; max-height: 160px; overflow: hidden; }
.signature img { max-height: 90px; width: auto; }
.signature p { margin: 0 0 6px; }
.signature--preview { margin-top: 0; border-top: 0; max-height: none; margin-bottom: 12px; }

/* A migrated poll: read-only result bars, sized by a --pct custom property so
   no inline width string is needed. */
.poll__q { font-size: 13px; margin: 12px 0 6px; }
.poll__opts { list-style: none; margin: 0; padding: 0; }
.poll__opt { margin: 0 0 10px; }
.poll__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 4px; }
.poll__label { font-weight: 600; }
.poll__pct { font-size: 11.5px; opacity: .75; white-space: nowrap; }
.poll__bar { height: 8px; border: 1px solid var(--line); background: var(--panel-2, transparent); overflow: hidden; }
.poll__bar::before { content: ""; display: block; height: 100%; width: calc(var(--pct, 0) * 1%); background: var(--brass); }
.poll__note { font-size: 11.5px; margin-top: 10px; }

.stars { color: var(--brass); letter-spacing: 1px; }

.filemeta { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* A comment on a file is shorter than a forum post and should look it. */
.post--compact { display: flex; gap: 14px; padding: 14px; border-top: 1px solid var(--line); }
.post--compact .post__aside { width: 120px; flex: none; text-align: center; font-size: 12px; }
.post--compact .post__author { margin-top: 4px; }
.post--compact .post__main { min-width: 0; flex: 1; }
.post--compact .post__meta { font-family: var(--font-data); font-size: 11.5px; margin-bottom: 6px;
  display: flex; gap: 8px; align-items: center; }

/* ── Member rank / name flair ──────────────────────────────────────────────
   Every effect is pure CSS: the strict CSP forbids inline script, so a rank's
   flair can never be more than styling. Animations run only when the viewer has
   not asked the OS to reduce motion. `--fxc` is a validated hex tint.

   The premium effects (gold/chrome/fire/aurora, and the improved gradient/
   rainbow) share one trick: a wide multi-stop gradient clipped to the text with
   `background-clip: text`, its position swept by `fxSheen` so a highlight band
   glides across the letters — the metallic/holographic sheen a donator name has
   on a polished board. glow/neon are light through the letters instead. */
.rankbadge { font-weight: 700; letter-spacing: .01em; }
.rankpips { color: #e7c14b; letter-spacing: 1px; font-size: .82em; vertical-align: 1px;
  filter: drop-shadow(0 0 3px rgba(231, 193, 75, .55)); }

.fx { --fxc: #4aa3ff; }
/* Clipped-gradient effects share this base so the sheen reads cleanly. The
   gradient is *tiled* (repeat) and every one below is seamless (its last colour
   equals its first), so as the sheen slides the text is always fully painted —
   with no-repeat it slid off the letters and they went transparent mid-cycle. */
.fx--gradient, .fx--rainbow, .fx--gold, .fx--chrome, .fx--fire, .fx--aurora,
.fx--holo, .fx--frost, .fx--toxic {
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: transparent; background-size: 200% auto; background-repeat: repeat; }

.fx--glow { color: var(--fxc); text-shadow: 0 0 5px color-mix(in srgb, var(--fxc) 75%, transparent), 0 0 11px color-mix(in srgb, var(--fxc) 55%, transparent); }
.fx--neon { color: #fff; text-shadow: 0 0 2px var(--fxc), 0 0 6px var(--fxc), 0 0 12px var(--fxc), 0 0 22px color-mix(in srgb, var(--fxc) 70%, transparent); }
.fx--pulse { color: var(--fxc); text-shadow: 0 0 6px color-mix(in srgb, var(--fxc) 45%, transparent); }

.fx--gradient { background-image: linear-gradient(100deg, var(--fxc) 0%, #ffffff 45%, var(--fxc) 90%); }
.fx--rainbow  { background-image: linear-gradient(100deg, #ff3d6e, #ff9e3d, #ffe14d, #4ad991, #4aa3ff, #b06bff, #ff3d6e); }
.fx--gold     { background-image: linear-gradient(100deg, #8a6a12 0%, #d4af37 22%, #fff4c2 50%, #d4af37 78%, #8a6a12 100%); text-shadow: 0 0 6px rgba(212, 175, 55, .25); }
.fx--chrome   { background-image: linear-gradient(100deg, #9fb4ff, #e6b8ff, #b8fff0, #ffe1b8, #9fb4ff); }
.fx--fire     { background-image: linear-gradient(100deg, #ff2d00, #ff7a00, #ffd23d, #ff7a00, #ff2d00); }
.fx--aurora   { background-image: linear-gradient(100deg, #17f2b3, #35ffd0, #46b4ff, #9b6bff, #17f2b3); }
.fx--holo     { background-image: linear-gradient(100deg, #ff5edf, #6ee2ff, #b6ff6e, #ffd36e, #ff5edf); text-shadow: 0 0 8px rgba(160, 120, 255, .25); }
.fx--frost    { background-image: linear-gradient(100deg, #cfe9ff, #ffffff, #7fd4ff, #ffffff, #cfe9ff); text-shadow: 0 0 8px rgba(120, 200, 255, .4); }
.fx--toxic    { background-image: linear-gradient(100deg, #6cff2e, #d6ff3d, #a6ff2e, #39ff88, #6cff2e); text-shadow: 0 0 8px rgba(120, 255, 80, .35); }

.fx--sparkle { color: var(--fxc); text-shadow: 0 0 6px color-mix(in srgb, var(--fxc) 50%, transparent); }
.fx--sparkle::after { content: "\2728"; margin-left: 4px; display: inline-block; }

/* A shimmering holographic pill *behind* the name (not clipped to it): white
   text on a moving iridescent card, for a badge that really stands out. */
.fx--card { display: inline-block; padding: 0 8px; border-radius: 999px; line-height: 1.7;
  color: #fff; -webkit-text-fill-color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  background-image: linear-gradient(100deg, #7b2ff7, #f107a3, #00d2ff, #24d07a, #7b2ff7);
  background-size: 200% auto; background-repeat: repeat; box-shadow: 0 0 10px rgba(160, 80, 255, .35); }

@media (prefers-reduced-motion: no-preference) {
  .fx--glow    { animation: fxGlow 2.4s ease-in-out infinite; }
  .fx--pulse   { animation: fxPulse 1.8s ease-in-out infinite; }
  .fx--neon    { animation: fxNeon 3.4s ease-in-out infinite; }
  .fx--gradient, .fx--rainbow, .fx--gold, .fx--chrome, .fx--fire, .fx--aurora,
  .fx--holo, .fx--frost, .fx--toxic, .fx--card { animation: fxSheen 3.4s linear infinite; }
  .fx--rainbow { animation-duration: 5.5s; }
  .fx--fire    { animation-duration: 2.6s; }
  .fx--aurora  { animation-duration: 6s; }
  .fx--holo    { animation-duration: 3s; }
  .fx--sparkle::after { animation: fxSparkle 1.5s ease-in-out infinite; }
}
@keyframes fxSheen  { from { background-position: 0% center; } to { background-position: 200% center; } }
@keyframes fxGlow   { 0%, 100% { text-shadow: 0 0 4px color-mix(in srgb, var(--fxc) 55%, transparent); } 50% { text-shadow: 0 0 9px var(--fxc), 0 0 18px color-mix(in srgb, var(--fxc) 65%, transparent); } }
@keyframes fxPulse  { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes fxNeon   { 0%, 18%, 22%, 100% { opacity: 1; } 20% { opacity: .72; } }
@keyframes fxSparkle { 0%, 100% { opacity: .3; transform: scale(.8) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.2) rotate(8deg); } }

.username { text-decoration: none; }
.username.fx { font-weight: 600; }

.chip--answer { background: #143d2b; color: #46d38a; border-color: #1e5a40; }
.postcard--answer { outline: 2px solid #1e5a40; }

/* The accepted answer, floated to the top of the question (Q&A forums). A
   compact callout that reads as a solution, not a second copy of the post. */
.answercard {
  border: 1px solid #1e5a40; border-left: 3px solid #46d38a; border-radius: 8px;
  background: color-mix(in srgb, #143d2b 22%, var(--surface));
  padding: 12px 14px; margin: 0 0 14px;
}
.answercard--hidden { opacity: .6; }
.answercard__flag { font-weight: 700; color: #46d38a; font-size: 13px; letter-spacing: .02em; }
.answercard__by { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; }
.answercard__name { font-weight: 600; }
.answercard__body { min-width: 0; }
.answercard__body :first-child { margin-top: 0; }
.answercard__body :last-child { margin-bottom: 0; }
.answercard__jump { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--link); }

/* Unread ("new posts") state in topic listings. */
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass, #c9a227); box-shadow: 0 0 5px var(--brass, #c9a227); vertical-align: middle; margin-right: 5px; }
.row--unread .row__title a { font-weight: 700; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--brass, #c9a227); }

/* Achievement badges — the trophy cabinet on a profile. */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 8px;
  border: 1px solid var(--line, #d8cbb0); border-radius: 999px;
  background: color-mix(in srgb, var(--brass, #c9a227) 8%, transparent); }
.badge__icon { font-size: 1.15em; line-height: 1; }
.badge__name { font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
