@font-face { font-family: "Bricolage"; src: url(../fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #eef1f7;
  --sheet: #ffffff;
  --ink: #1a2340;
  --muted: #55607d;
  --line: #cfd6e6;
  --cobalt: #2743d2;
  --pin: #f6b921;
  --danger: #b3261e;
  --ok: #0f6b57;
  --tint: #e2e7f4;
  --band: var(--cobalt);
  --on-band: #fff;
  --gutter: clamp(16px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121830;
    --sheet: #1b2342;
    --ink: #eef1f7;
    --muted: #a9b3cf;
    --line: #36406a;
    --cobalt: #9aaeff;
    --danger: #ff9b92;
    --ok: #62d3b5;
    --tint: #27305a;
  }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #121830;
    --sheet: #1b2342;
    --ink: #eef1f7;
    --muted: #a9b3cf;
    --line: #36406a;
    --cobalt: #9aaeff;
    --danger: #ff9b92;
    --ok: #62d3b5;
    --tint: #27305a;
}
/* Topic colours by palette. Each -on is the text colour for that band;
   tests/test_appearance.py checks every pair for contrast. */
:root {
  --down: #6a2c8c;
  --c-cobalt: #2743d2; --c-cobalt-on: #ffffff;
  --c-marigold: #f6b921; --c-marigold-on: #1a2340;
  --c-pine: #0f6b57; --c-pine-on: #ffffff;
  --c-coral: #ff7a66; --c-coral-on: #1a2340;
  --c-plum: #6a2c8c; --c-plum-on: #ffffff;
  --c-sky: #8fd0f2; --c-sky-on: #1a2340;
  --c-ink: #1a2340; --c-ink-on: #ffffff;
  --c-lime: #b9dc3c; --c-lime-on: #1a2340;
}
:root[data-palette="muted"] {
  --paper: #f2f2ee; --line: #d5d6cf; --tint: #e6e6df; --muted: #565c68;
  --cobalt: #4a5a8a; --pin: #d8bd72; --danger: #9c3f38; --ok: #4a6f62; --down: #75607f;
  --c-cobalt: #4a5a8a; --c-cobalt-on: #ffffff;
  --c-marigold: #d8c48a; --c-marigold-on: #1f2433;
  --c-pine: #4f7568; --c-pine-on: #ffffff;
  --c-coral: #d9a398; --c-coral-on: #1f2433;
  --c-plum: #75607f; --c-plum-on: #ffffff;
  --c-sky: #b4cad6; --c-sky-on: #1f2433;
  --c-ink: #3b4256; --c-ink-on: #ffffff;
  --c-lime: #c4cf9a; --c-lime-on: #1f2433;
}
:root[data-palette="slate"] {
  --paper: #f1f2f3; --ink: #22262d; --line: #d3d6da; --tint: #e4e6e9; --muted: #575c64;
  --cobalt: #4d5666; --pin: #c9c6bd; --danger: #8f4a44; --ok: #5d6660; --down: #645f69;
  --c-cobalt: #4d5666; --c-cobalt-on: #ffffff;
  --c-marigold: #c9c6bd; --c-marigold-on: #22262d;
  --c-pine: #5d6660; --c-pine-on: #ffffff;
  --c-coral: #cfc4c0; --c-coral-on: #22262d;
  --c-plum: #645f69; --c-plum-on: #ffffff;
  --c-sky: #c3c9cf; --c-sky-on: #22262d;
  --c-ink: #33373f; --c-ink-on: #ffffff;
  --c-lime: #cdcfc2; --c-lime-on: #22262d;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="muted"]:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1d2029; --sheet: #272b36; --ink: #eceef2; --muted: #acb1bd; --line: #3e4350; --tint: #323744;
    --cobalt: #aab6d6; --pin: #d8bd72; --danger: #e6a8a2; --ok: #9cc4b5;
  }
}
:root[data-palette="muted"][data-theme="dark"] {
    color-scheme: dark;
    --paper: #1d2029; --sheet: #272b36; --ink: #eceef2; --muted: #acb1bd; --line: #3e4350; --tint: #323744;
    --cobalt: #aab6d6; --pin: #d8bd72; --danger: #e6a8a2; --ok: #9cc4b5;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="slate"]:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1c1e22; --sheet: #26292e; --ink: #ebecee; --muted: #aeb1b6; --line: #3e4147; --tint: #30333a;
    --cobalt: #b6bac2; --pin: #c9c6bd; --danger: #dca9a4; --ok: #adb6b0;
  }
}
:root[data-palette="slate"][data-theme="dark"] {
    color-scheme: dark;
    --paper: #1c1e22; --sheet: #26292e; --ink: #ebecee; --muted: #aeb1b6; --line: #3e4147; --tint: #30333a;
    --cobalt: #b6bac2; --pin: #c9c6bd; --danger: #dca9a4; --ok: #adb6b0;
}

/* Text size. Percentages, so these build on the browser's own setting. */
:root[data-size="small"] { font-size: 87.5%; }
:root[data-size="large"] { font-size: 112.5%; }
:root[data-size="xlarge"] { font-size: 125%; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.5 "Atkinson", system-ui, sans-serif;
  min-height: 100dvh; display: flex; flex-direction: column;
  overflow-wrap: anywhere;
}
main { flex: 1; }
h1, h2, h3 { font-family: "Bricolage", system-ui, sans-serif; line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
a { color: var(--cobalt); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--pin); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sheet); padding: 12px; z-index: 10; }
.skip:focus { left: 0; }

/* Page furniture */
.site-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; padding: 10px var(--gutter); background: var(--paper); }
.brand { font: 700 1.25rem/1 "Bricolage", sans-serif; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; padding: 10px 0; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-right: -10px; }
.site-nav a, .site-nav .linkish { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.site-nav a:hover, .site-nav .linkish:hover { text-decoration: underline; }
.site-nav form { margin: 0; }
.count { display: inline-block; min-width: 1.5em; margin-left: 6px; padding: 0 5px; text-align: center; font-size: .8125rem; font-weight: 700; color: #1a2340; background: var(--pin); border-radius: 99px; }
.wrap { padding: 0 var(--gutter); }
.narrow { max-width: 34rem; margin: 0 auto; padding: 40px var(--gutter) 64px; }
.page-title { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; }
.lede { margin: 10px 0 0; max-width: 62ch; }
.muted { color: var(--muted); }
.site-foot { padding: 28px var(--gutter); color: var(--muted); font-size: .9375rem; }

.flashes { padding: 0 var(--gutter); }
.flash { margin: 8px 0; padding: 12px 16px; background: var(--sheet); border-left: 6px solid var(--cobalt); }
.flash.success { border-color: var(--ok); }
.flash.error { border-color: var(--danger); }
.flash.info { border-color: var(--pin); }

/* The topic bands: the board's one loud idea */
.bands { display: grid; margin-top: 8px; }
.band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 40px;
  padding: 14px var(--gutter);
  background: var(--band); color: var(--on-band); text-decoration: none;
}
.band h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.band:hover h2 { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .1em; }
.band p { margin: 2px 0 0; font-size: 1rem; max-width: 58ch; }
.band dl { display: flex; gap: 22px; margin: 0; text-align: right; }
.band dt { font-size: .8125rem; }
.band dd { margin: 0; font: 700 1.125rem/1.1 "Bricolage", sans-serif; order: -1; }
.band dl div { display: flex; flex-direction: column; }
.band-foot { padding: 16px var(--gutter); display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.band:focus-visible { outline-offset: -6px; box-shadow: none; }
.lock-note { display: inline-block; font-size: .875rem; font-weight: 700; border: 1.5px solid currentColor; padding: 1px 8px; border-radius: 99px; margin-left: 4px; vertical-align: middle; font-family: "Atkinson", sans-serif; letter-spacing: 0; white-space: nowrap; }

.masthead { background: var(--band); color: var(--on-band); padding: 20px var(--gutter); }
.masthead a { color: inherit; }
.masthead h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.masthead p { margin: 4px 0 0; max-width: 62ch; }
.masthead-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.btn.on-band { background: var(--on-band); color: var(--band); border-color: var(--on-band); }
.masthead-actions form { margin: 0; }
.btn.btn-on-band-quiet { background: transparent; color: var(--on-band); border-color: var(--on-band); }
.link-on-band { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }

/* Most recent, above the topic bands */
.recent { margin-bottom: 24px; }
.recent-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding: 8px var(--gutter); border-bottom: 2px solid var(--ink); }
.recent-head h2 { font-size: 1.25rem; font-weight: 700; }
.recent-head a { display: inline-flex; align-items: center; min-height: 44px; }
.recent .thread-row { padding-top: 10px; padding-bottom: 10px; }

/* Thread lists */
.list-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 14px var(--gutter); border-bottom: 2px solid var(--ink); }
.sorts { display: flex; gap: 2px; margin: 0 -4px; padding: 0 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sorts a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.sorts a[aria-current="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.threads { list-style: none; margin: 0; padding: 0; }
.thread-row {
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 5rem); gap: 4px 12px; align-items: center;
  padding: 14px var(--gutter); border-bottom: 1px solid var(--line);
}
.thread-row.pinned { background: color-mix(in srgb, var(--pin) 16%, transparent); }
.thread-title { font: 650 1.0625rem/1.3 "Bricolage", sans-serif; color: var(--ink); text-decoration: none; }
.thread-title:hover { text-decoration: underline; }
.thread-meta { margin: 3px 0 0; font-size: .9375rem; color: var(--muted); }
.thread-meta a { color: inherit; }
.stat { text-align: right; }
.stat b { display: block; font: 700 1.0625rem/1.1 "Bricolage", sans-serif; }
.stat span { font-size: .8125rem; color: var(--muted); }
.chip { display: inline-block; padding: 0 8px; font-size: .8125rem; font-weight: 700; border-radius: 3px; background: var(--tint); color: var(--ink); vertical-align: 2px; }
.chip.pin { background: var(--pin); color: #1a2340; }
.chip.wait { background: var(--ink); color: var(--paper); }
.empty { padding: 40px var(--gutter); max-width: 44rem; }
.empty h2 { font-size: 1.25rem; margin-bottom: 8px; }

.pager { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px var(--gutter); }

/* Thread */
.thread-head { padding: 16px var(--gutter); background: var(--band); color: var(--on-band); }
.thread-head a { color: inherit; }
.thread-head h1 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); font-weight: 700; max-width: 50ch; margin-top: 4px; letter-spacing: -0.01em; line-height: 1.2; }
.thread-head p { margin: 6px 0 0; }
.post-list { max-width: 54rem; margin: 0 auto; padding: 8px var(--gutter) 0; }
.post { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0 16px; padding: 24px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.post:target { background: color-mix(in srgb, var(--pin) 14%, transparent); box-shadow: -12px 0 0 color-mix(in srgb, var(--pin) 14%, transparent), 12px 0 0 color-mix(in srgb, var(--pin) 14%, transparent); }
.post.muted-post { opacity: .75; }
.post-head { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.post-author { font-weight: 700; }
.post-time { font-size: .9375rem; color: var(--muted); }
.post-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; align-items: center; }
.post-tools form { margin: 0; }
.post-tools summary { list-style: none; cursor: pointer; }
.post-tools summary::-webkit-details-marker { display: none; }

.votes { display: flex; flex-direction: column; align-items: center; gap: 0; }
.votes button, .votes a { display: grid; place-items: center; width: 44px; height: 40px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.125rem; text-decoration: none; border-radius: 4px; }
.votes button:hover { background: var(--tint); }
.votes [data-value="1"][aria-pressed="true"] { color: #1a2340; background: var(--pin); }
.votes [data-value="-1"][aria-pressed="true"] { color: #fff; background: var(--down); }
.votes button:disabled { opacity: .35; cursor: default; background: none; }
.score { font: 700 1.125rem/1.3 "Bricolage", sans-serif; }
.inline-error { grid-column: 1 / -1; color: var(--danger); font-size: .9375rem; margin: 4px 0 0; }

.prose { line-height: 1.6; max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.25rem; margin: 1.2em 0 .4em; }
.prose h3 { font-size: 1.125rem; margin: 1.2em 0 .4em; }
.prose blockquote { margin: 1em 0; padding: 2px 0 2px 16px; border-left: 4px solid var(--band); color: var(--muted); }
.prose code { font: .9em ui-monospace, Menlo, monospace; background: var(--tint); padding: .1em .3em; border-radius: 3px; }
.prose pre { background: var(--ink); color: var(--paper); padding: 14px 16px; overflow-x: auto; overflow-wrap: normal; border-radius: 4px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 1.5em 0; }

.attachments { margin-top: 14px; }
.att-images { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.att-images img { display: block; max-width: min(100%, 320px); max-height: 240px; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.att-images a { max-width: 100%; }
.att-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.att-files a { display: inline-flex; flex-wrap: wrap; gap: 0 8px; align-items: center; min-height: 44px; }
.att-files span { color: var(--muted); font-size: .9375rem; }

.compose { max-width: 54rem; margin: 0 auto; padding: 28px var(--gutter) 48px; }
.compose h2 { font-size: 1.25rem; margin-bottom: 12px; }
.mod-tools { max-width: 54rem; margin: 0 auto; padding: 8px var(--gutter) 40px; }
.mod-tools summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.mod-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mod-row form { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Forms */
label, .label { display: block; font-weight: 700; margin-bottom: 4px; }
.field { margin-bottom: 18px; }
.hint { font-size: .9375rem; color: var(--muted); margin: 2px 0 6px; font-weight: 400; }
.error { color: var(--danger); font-size: .9375rem; margin: 4px 0 0; }
/* 16px minimum stops iOS zooming the page when a field gets focus */
input[type=text], input[type=email], input[type=url], input[type=search], input[type=number], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: max(1rem, 16px);
  background: var(--sheet); color: var(--ink); border: 1.5px solid var(--muted); border-radius: 4px;
}
input[type=file] { font: inherit; max-width: 100%; padding: 10px 0; }
textarea { min-height: 12rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; min-height: 44px; padding: 8px 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--cobalt); }
.check b { display: block; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px;
  font: 700 1rem/1 "Atkinson", sans-serif; text-decoration: none; cursor: pointer;
  background: var(--cobalt); color: #fff; border: 2px solid var(--cobalt); border-radius: 4px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.btn-quiet):not(.on-band):not(.btn-danger):not(.btn-on-band-quiet) { color: #121830; } }
:root[data-theme="dark"] .btn:not(.btn-quiet):not(.on-band):not(.btn-danger):not(.btn-on-band-quiet) { color: #121830; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--muted); }
.btn-small { min-height: 44px; padding: 0 12px; font-size: .9375rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.armed { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-text { background: none; border: 0; color: var(--muted); font: inherit; font-size: .9375rem; padding: 0 8px; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 24px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn-block { width: 100%; }
.status-line { margin: 10px 0; color: var(--danger); }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.swatches label { display: flex; align-items: center; justify-content: center; min-height: 52px; font-weight: 700; font-size: .9375rem; border-radius: 4px; cursor: pointer; margin: 0; position: relative; }
.swatches input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.swatches label:has(input:checked) { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatches label:has(input:focus-visible) { outline: 3px solid var(--pin); outline-offset: 2px; }

/* Editor */
.editor { border: 1.5px solid var(--muted); border-radius: 4px; background: var(--sheet); }
.editor:focus-within { border-color: var(--cobalt); }
.toolbar { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); }
.tb { min-width: 44px; height: 44px; padding: 0 8px; background: none; border: 0; border-radius: 3px; color: var(--ink); font: inherit; font-size: .9375rem; cursor: pointer; white-space: nowrap; }
.tb:hover { background: var(--tint); }
.tb[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.editor-area { min-height: 11rem; padding: 12px 14px; max-width: none; outline: none; }
.link-row { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 2px; }
.link-row input { flex: 1 1 14rem; width: auto; }
.emoji-panel { position: absolute; z-index: 5; top: 100%; right: 4px; width: min(20rem, calc(100vw - 2 * var(--gutter) - 8px)); padding: 8px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); max-height: 13rem; overflow-y: auto; margin-top: 6px; }
.emoji-grid button { height: 44px; background: none; border: 0; font-size: 1.375rem; cursor: pointer; border-radius: 3px; }
.emoji-grid button:hover { background: var(--tint); }

/* Moderation */
.mod-nav { display: flex; gap: 2px; padding: 8px var(--gutter); overflow-x: auto; border-bottom: 2px solid var(--ink); }
.mod-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mod-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.mod-page { padding: 24px var(--gutter) 56px; max-width: 64rem; }
.mod-page h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: 16px; }
.mod-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.mod-item h2 { font-size: 1.1875rem; font-weight: 650; }
.mod-item .prose { margin: 10px 0; padding: 12px 14px; background: var(--sheet); border-left: 4px solid var(--line); max-width: none; }
.settings-form { max-width: 36rem; }
.log-list { list-style: none; padding: 0; margin: 0; }
.log-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.user-actions form { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.user-actions select { width: auto; }
.member-filter { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; }
.member-filter .field:first-child { flex: 1 1 14rem; }
.member-filter select { width: auto; }
.member-filter .btn { margin-bottom: 18px; }
.staff-summary p { margin: 4px 0; }
.passkey-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.passkey-row form { margin: 0; }
.section { margin-top: 32px; }
.section h2 { font-size: 1.25rem; margin-bottom: 8px; }
.profile-list { list-style: none; padding: 0; margin: 16px 0 0; }
.profile-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* Link previews: beneath the post until there's room for a sidebar */
.link-previews { grid-column: 2; display: grid; gap: 10px; margin-top: 14px; max-width: 26rem; }
.preview-card { display: grid; gap: 3px; padding: 10px 12px; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--band); color: var(--ink); text-decoration: none; min-height: 44px; align-content: center; }
.preview-card:hover .preview-title { text-decoration: underline; }
.preview-image { width: calc(100% + 24px); margin: -10px -12px 6px; max-height: 9rem; object-fit: cover; display: block; }
.preview-site { font-size: .875rem; color: var(--muted); order: 1; }
.preview-image { order: 0; }
.preview-title { font: 650 1rem/1.25 "Bricolage", sans-serif; order: 2; }
.preview-desc { font-size: .9375rem; line-height: 1.4; color: var(--muted); order: 3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (min-width: 1100px) {
  .post-list { max-width: 78rem; }
  .post { grid-template-columns: 3rem minmax(0, 1fr) 19rem; column-gap: 24px; }
  .link-previews { grid-column: 3; grid-row: 1; margin-top: 0; align-self: start; position: sticky; top: 76px; }
  .compose.compose-thread, .mod-tools.compose-thread { max-width: 78rem; }
  .compose-thread > * { max-width: 52rem; }
}

/* Avatars */
.avatar { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; object-fit: cover; vertical-align: middle; flex: none; }
.avatar-letter { background: var(--tint); color: var(--ink); font: 700 .875rem/1 "Bricolage", sans-serif; }
.avatar-large { width: 4rem; height: 4rem; font-size: 1.75rem; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.post-head { align-items: center; }

/* Navigation stays in reach after jumping down to a post */
.site-head { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.post { scroll-margin-top: 80px; }
.crumbs { font-size: .9375rem; margin-bottom: 6px; }
.crumbs a { display: inline-block; padding: 4px 0; }
.page-foot-nav { max-width: 78rem; margin: 0 auto; padding: 0 var(--gutter) 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.site-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Read and unread */
.thread-row.is-unread .thread-title { font-weight: 800; }
.thread-row.is-unread { box-shadow: inset 4px 0 0 var(--cobalt); }
.chip.new { background: var(--cobalt); color: var(--paper); text-decoration: none; padding: 2px 8px; }
.new-marker { margin: 16px 0 0; padding: 4px 0; border-bottom: 2px solid var(--cobalt); color: var(--cobalt); font-weight: 700; font-size: .9375rem; }
.unread-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 16px; }

.site-foot .legal { flex: 0 0 100%; margin: 4px 0 0; font-size: .875rem; }
.cal-section { margin: 0; max-width: 60rem; }

/* Privacy statement */
.privacy p, .privacy ul { max-width: 68ch; }
.privacy li { margin-bottom: 8px; }
.cookie-list dt { font-weight: 700; margin-top: 10px; }
.cookie-list dd { margin: 2px 0 0; max-width: 68ch; }

/* Sub-categories */
.sub-filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px var(--gutter) 0; }
.sub-filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--muted); border-radius: 4px; color: var(--ink); text-decoration: none; }
.sub-filter a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }
a.chip { text-decoration: none; }
.sub-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; }
.sub-row form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; flex: 0 1 auto; }
.sub-row form:first-of-type { flex: 1 1 16rem; }
.sub-row input[type=text] { flex: 1 1 10rem; width: auto; }

/* Events calendar */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gutter); }
.cal-nav h2 { font-size: 1.25rem; font-weight: 700; text-align: center; }
.calendar { width: calc(100% - 2 * var(--gutter)); margin: 0 var(--gutter); border-collapse: collapse; table-layout: fixed; }
.calendar th { padding: 6px; font-size: .875rem; color: var(--muted); text-align: left; font-weight: 700; }
.calendar td { height: 6.5rem; padding: 4px; vertical-align: top; border: 1px solid var(--line); background: var(--sheet); }
.calendar td.other-month { background: transparent; color: var(--muted); }
.calendar td.is-today { box-shadow: inset 0 0 0 2px var(--ink); }
.calendar td.is-today .day-number { font-weight: 800; }
.day-number { display: block; font-size: .875rem; margin: 0 0 3px 2px; }
.cal-event { display: block; margin-bottom: 3px; padding: 3px 5px; font-size: .8125rem; line-height: 1.25; border-radius: 3px; background: var(--band); color: var(--on-band); text-decoration: none; }
.cal-event:hover { text-decoration: underline; }
.cal-list { display: none; padding: 0 var(--gutter); }
.empty-month { color: var(--muted); }
.event-list { list-style: none; padding: 0; margin: 0; }
.event-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.event-when { font-weight: 700; }
.event-where { margin-left: 8px; color: var(--muted); }
.event-line { margin: 6px 0 0; }
.event-line .event-where { color: inherit; }
input[type=datetime-local] { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: max(1rem, 16px); background: var(--sheet); color: var(--ink); border: 1.5px solid var(--muted); border-radius: 4px; }
@media (max-width: 700px) {
  .calendar { display: none; }
  .cal-list { display: block; }
}

/* Event locations */
.event-map { max-width: 78rem; margin: 0 auto; padding: 14px var(--gutter) 0; }
figure.event-map { margin: 0 auto; }
.event-map img { display: block; width: 100%; max-width: 52rem; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.event-map figcaption { font-size: .875rem; color: var(--muted); }
.event-map figcaption a { display: inline-flex; align-items: center; min-height: 44px; }
.place-find { margin-top: 8px; }
.place-status { margin-top: 6px; }
.place-results { display: grid; gap: 4px; }
.place-choice { min-height: 44px; padding: 8px 10px; text-align: left; font: inherit; font-size: .9375rem; color: var(--ink); background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.place-choice:hover { background: var(--tint); }
input[type=date] { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: max(1rem, 16px); background: var(--sheet); color: var(--ink); border: 1.5px solid var(--muted); border-radius: 4px; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 6px; max-width: 42rem; }
.gallery a { display: block; min-width: 0; overflow: hidden; }
.post > div, .attachments { min-width: 0; }
.gallery img { width: 100%; max-width: none; max-height: none; aspect-ratio: 1; object-fit: cover; }
.gallery a:only-child { grid-column: 1 / -1; max-width: 26rem; }
.gallery a:only-child img { aspect-ratio: auto; max-height: 26rem; object-fit: contain; }
.lightbox { width: min(96vw, 70rem); max-height: 96dvh; padding: 12px; background: var(--sheet); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.lightbox::backdrop { background: rgba(10, 12, 20, .82); }
.lightbox img { display: block; margin: 0 auto; max-width: 100%; max-height: 74dvh; }
.lightbox-caption { margin: 8px 0; text-align: center; font-size: .9375rem; }
.lightbox-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

/* Calendar downloads */
.event-actions { max-width: 78rem; margin: 0 auto; padding: 14px var(--gutter) 0; }
.cal-add { display: inline-flex; align-items: center; min-height: 44px; }

/* Analytics */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 10px; margin: 12px 0 0; }
.stat-tiles > div { padding: 10px 12px; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; }
.stat-tiles dt { font-size: .875rem; color: var(--muted); }
.stat-tiles dd { margin: 2px 0 0; font: 700 1.5rem/1.2 "Bricolage", sans-serif; }
.stat-tiles dd.tile-note { font: 400 .8125rem/1.3 "Atkinson", sans-serif; color: var(--muted); }
.bar-chart { display: flex; align-items: flex-end; height: 10rem; gap: 2px; border-bottom: 1px solid var(--line); }
.bar-slot { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.bar-slot:hover { background: var(--tint); }
.bar { display: block; width: 100%; background: var(--cobalt); border-radius: 4px 4px 0 0; }
.bar-axis { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: .8125rem; color: var(--muted); }
.chart-table summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.chart-table table { border-collapse: collapse; }
.chart-table th, .chart-table td { padding: 3px 18px 3px 0; text-align: left; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.analytics-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 28px; }
.rank-list { padding-left: 1.4em; margin: 8px 0 0; }
.rank-list li { padding: 3px 0; }

.mod-edit-note { flex-basis: 100%; font-size: .875rem; color: var(--muted); font-style: italic; }

/* Appearance page */
.choice { border: 0; padding: 0; margin: 0 0 20px; }
.choice legend { font-weight: 700; padding: 0; margin-bottom: 2px; }
.theme-sample { margin-bottom: 20px; }
.theme-sample .band { padding: 10px 14px; }

/* Tablet */
@media (max-width: 900px) {
  .band { grid-template-columns: minmax(0, 1fr); }
  .band dl { text-align: left; margin-top: 8px; }
  .thread-row { grid-template-columns: minmax(0, 1fr) repeat(3, 3.75rem); }
}
/* Phone: stats drop beneath the title; nothing depends on hover */
@media (max-width: 600px) {
  .thread-row { grid-template-columns: repeat(3, auto) minmax(0, 1fr); justify-content: start; column-gap: 18px; }
  .thread-row .thread-main { grid-column: 1 / -1; }
  .stat { text-align: left; display: flex; gap: 5px; align-items: baseline; }
  .stat b { display: inline; font-size: 1rem; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .link-previews { grid-column: 1; order: 2; max-width: none; }
  .post .votes { order: 3; flex-direction: row; gap: 4px; margin-top: 10px; justify-self: start; }
  .post .votes .score { min-width: 2ch; text-align: center; }
  .user-row { grid-template-columns: minmax(0, 1fr); }
  .user-actions { justify-content: flex-start; }
  .band dl { gap: 18px; }
  /* One scrolling row, so the sticky header doesn't take over a small screen. */
  .site-head { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 0; padding-top: 2px; padding-bottom: 0; }
  .brand { padding: 8px 0 2px; }
  .site-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; white-space: nowrap; }
  .site-nav a, .site-nav .linkish { flex: none; }
  .post { scroll-margin-top: 100px; }
  .emoji-panel { right: 0; left: 0; width: auto; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ==========================================================================
   Design, 2 Nov 2026: compact and characterful. Dense lists, a dark header,
   and topic colours carried by lettered badges and tints, never solid blocks.
   This section comes last, so it overrides the earlier band styling.
   ========================================================================== */
:root {
  --paper: #f3f4f7; --sheet: #ffffff; --ink: #161a26; --muted: #5d6475; --line: #e3e6ed;
  --line-strong: #cdd2dc; --cobalt: #2f5bea; --tint: #eceff5; --radius: 10px; --page: 68rem;
  --head: #141a2e; --head-ink: #e8ebf3; --head-muted: #a3abc2;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-palette="muted"]):not([data-palette="slate"]) {
    --paper: #0f1219; --sheet: #171b25; --ink: #e7eaf2; --muted: #9aa2b5; --line: #262c3a;
    --line-strong: #353d4f; --cobalt: #85a2ff; --tint: #1f2533; --head: #0b0e15; --shadow: none;
  }
}
:root[data-theme="dark"]:not([data-palette="muted"]):not([data-palette="slate"]) {
  --paper: #0f1219; --sheet: #171b25; --ink: #e7eaf2; --muted: #9aa2b5; --line: #262c3a;
  --line-strong: #353d4f; --cobalt: #85a2ff; --tint: #1f2533; --head: #0b0e15; --shadow: none;
}
:root[data-palette="muted"] { --head: #2b3142; --line-strong: #c9cbc4; --page: 68rem; --radius: 10px; }
:root[data-palette="slate"] { --head: #23272e; --line-strong: #c7cbd1; --page: 68rem; --radius: 10px; }

body { background: var(--paper); font-size: .9375rem; line-height: 1.5; }
main { width: 100%; max-width: var(--page); margin-inline: auto; padding-bottom: 28px; }
h1, h2, h3 { letter-spacing: -0.01em; }

/* Header: a dark bar, so the board has a clear identity */
.site-head, .site-foot { padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))); }
.site-head { background: var(--head); border-bottom: 0; padding-block: 0; min-height: 56px; }
.brand { color: #fff; font-size: 1.0625rem; font-weight: 700; padding: 16px 0; }
.site-nav a, .site-nav .linkish { color: var(--head-muted); font-size: .9063rem; border-radius: 6px; min-height: 40px; padding: 0 10px; }
.site-nav a:hover, .site-nav .linkish:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.count { color: #141a2e; }
.site-foot { border-top: 1px solid var(--line); margin-top: 20px; font-size: .875rem; }
.site-foot a { color: var(--muted); }
.site-foot .legal { font-size: .8125rem; }

/* Controls */
.btn { min-height: 38px; padding: 0 14px; border-radius: 7px; font-size: .875rem; font-weight: 600; box-shadow: var(--shadow); }
.btn-small { min-height: 34px; padding: 0 11px; font-size: .8438rem; }
.btn-quiet { background: var(--sheet); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-quiet:hover { background: var(--tint); }
.btn-danger { background: var(--sheet); }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=number], textarea, select,
input[type=datetime-local], input[type=date] { min-height: 40px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 7px; }
input:focus, textarea:focus, select:focus { border-color: var(--cobalt); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 20%, transparent); }
label, .label { font-size: .875rem; font-weight: 600; }
.field { margin-bottom: 14px; }
.editor { border: 1px solid var(--line-strong); border-radius: 7px; overflow: visible; }
.toolbar { background: var(--paper); border-radius: 7px 7px 0 0; }
.tb { min-width: 36px; height: 36px; border-radius: 5px; font-size: .875rem; }
.editor-area { min-height: 9rem; }
.chip { border-radius: 999px; padding: 0 8px; font-size: .75rem; font-weight: 600; line-height: 1.6; }
.chip.new { background: var(--cobalt); color: #fff; }
.flash { border-radius: 8px; background: var(--sheet); box-shadow: var(--shadow); border-left-width: 4px; font-size: .9063rem; }
.page-title { font-size: 1.5rem; }
.lede { font-size: .9375rem; }
.narrow { padding-top: 28px; }

/* Section headings above lists */
.recent-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 0; padding: 22px var(--gutter) 8px; }
.recent-head h2 { font-size: 1rem; font-weight: 700; }
.recent-head a { font-size: .875rem; font-weight: 600; text-decoration: none; min-height: 0; }
.recent { margin-bottom: 0; }

/* One surface style for every list */
.bands, .threads, .event-list, .profile-list, .log-list {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-inline: var(--gutter); overflow: hidden;
}
.compose .threads, .compose .event-list, .compose .profile-list, .wrap .threads { margin-inline: 0; }
.event-list li, .profile-list li, .log-list li { padding: 10px 14px; }
.event-list li:last-child, .profile-list li:last-child, .log-list li:last-child, .thread-row:last-child { border-bottom: 0; }
ul.threads[style] { border-top: 1px solid var(--line) !important; margin-top: 10px; }

/* Topics: a lettered badge in the topic colour, and compact rows */
.bands { display: block; margin-top: 0; }
.band {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; align-items: center;
  background: transparent; color: var(--ink); padding: 11px 16px 11px 62px; border-bottom: 1px solid var(--line);
}
.band:last-child { border-bottom: 0; }
.band::before {
  content: attr(data-initial); position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: color-mix(in srgb, var(--band) 16%, var(--sheet));
  color: color-mix(in srgb, var(--band) 72%, var(--ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--band) 30%, transparent);
  font: 700 .9375rem/1 "Bricolage", sans-serif;
}
.band:hover { background: color-mix(in srgb, var(--band) 5%, var(--sheet)); }
.band:hover h2 { text-decoration: none; color: var(--cobalt); }
.band h2 { font-size: .9688rem; font-weight: 650; letter-spacing: 0; line-height: 1.3; }
.band p { margin: 1px 0 0; color: var(--muted); font-size: .8438rem; line-height: 1.4; max-width: 60ch; }
.band dl { display: flex; gap: 18px; margin: 0; text-align: right; }
.band dl div { flex-direction: row; align-items: baseline; gap: 4px; }
.band dd { order: 0; margin: 0; font: 650 .875rem/1 "Atkinson", sans-serif; color: var(--ink); }
.band dt { order: 1; color: var(--muted); font-size: .8125rem; }
.band .lock-note, .masthead .lock-note, .thread-head .lock-note { border: 0; background: var(--tint); color: var(--muted); font-size: .6875rem; font-weight: 600; padding: 1px 7px; }
.band-foot { padding: 12px var(--gutter); }
.theme-sample { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }

/* Topic and thread headers: a tinted wash of the topic colour, not a solid block */
.masthead, .thread-head {
  margin: 18px var(--gutter) 0; padding: 18px 20px; border-radius: var(--radius); color: var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--band) 14%, var(--sheet)), var(--sheet) 70%);
  border: 1px solid color-mix(in srgb, var(--band) 22%, var(--line));
}
.masthead a, .thread-head a, .masthead .crumbs a, .thread-head .crumbs a { color: var(--muted); }
.crumbs { font-size: .8125rem; margin-bottom: 4px; }
.crumbs a { padding: 0; }
.masthead h1, .thread-head h1 { display: block; font-size: 1.375rem; font-weight: 700; margin: 0; max-width: 46ch; }
.masthead h1::before, .thread-head h1::before { content: none; }
.masthead p, .thread-head p { color: var(--muted); font-size: .9063rem; margin-top: 4px; }
.thread-head .event-line { color: var(--ink); }
.masthead-actions { margin-top: 12px; gap: 8px; }
.btn.on-band { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn.btn-on-band-quiet { background: var(--sheet); color: var(--ink); border: 1px solid var(--line-strong); }
.link-on-band { color: var(--muted); font-size: .875rem; min-height: 34px; }

/* Thread lists */
.list-bar { border-bottom: 0; padding: 12px var(--gutter) 8px; }
.sorts a, .sub-filter a, .mod-nav a { min-height: 32px; padding: 0 10px; font-size: .8438rem; border-radius: 6px; color: var(--muted); border: 1px solid transparent; }
.sorts a:hover, .sub-filter a:hover, .mod-nav a:hover { color: var(--ink); background: var(--tint); }
.sorts a[aria-current="true"], .sub-filter a[aria-current="true"], .mod-nav a[aria-current="page"] {
  background: var(--sheet); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); font-weight: 600;
}
.sub-filter { padding-top: 10px; gap: 6px; }
.sub-filter a { border-color: var(--line); background: var(--sheet); }
.mod-nav { border-bottom: 1px solid var(--line); padding-block: 6px; }
.thread-row { grid-template-columns: minmax(0, 1fr) repeat(3, 4rem); padding: 9px 16px; gap: 2px 8px; }
.thread-row:hover { background: color-mix(in srgb, var(--tint) 55%, transparent); }
.thread-row.pinned { background: color-mix(in srgb, var(--pin) 8%, var(--sheet)); }
.thread-row.is-unread { box-shadow: inset 3px 0 0 var(--cobalt); }
.thread-title { font: 600 .9375rem/1.35 "Atkinson", sans-serif; }
.thread-meta { font-size: .8125rem; margin-top: 1px; }
.thread-meta a { text-decoration: none; }
.thread-meta a:hover { text-decoration: underline; }
.stat b { font: 650 .875rem/1.2 "Atkinson", sans-serif; }
.stat span { font-size: .75rem; }
.empty { padding: 28px var(--gutter); }
.empty h2 { font-size: 1.0625rem; }

/* Posts */
.post-list { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 14px var(--gutter) 0; padding: 0 18px; max-width: none; }
.post { padding: 16px 0; gap: 0 14px; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post-time, .post-head .chip { font-size: .8125rem; }
.prose { font-size: .9375rem; line-height: 1.6; }
.votes button, .votes a { width: 34px; height: 30px; font-size: .9375rem; }
.score { font-size: .9375rem; }
.btn-text { min-height: 32px; font-size: .8438rem; }
.compose { padding-top: 20px; }
.compose h2 { font-size: 1.0625rem; }
.compose.compose-thread, .mod-tools.compose-thread, .page-foot-nav, .event-actions, .event-map { max-width: none; margin-inline: 0; }
.new-marker { color: var(--cobalt); border-bottom-color: var(--cobalt); font-size: .8125rem; }
.preview-card { border-radius: 8px; border: 1px solid var(--line); border-left: 3px solid var(--band); padding: 8px 10px; }
.avatar { width: 1.5rem; height: 1.5rem; }
.avatar-letter { background: var(--tint); color: var(--muted); font-size: .75rem; }
.avatar-large { width: 3.25rem; height: 3.25rem; font-size: 1.375rem; }

/* Calendar */
.cal-nav { padding: 14px var(--gutter) 10px; }
.cal-nav h2 { font-size: 1.0625rem; }
.calendar { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); }
.calendar td { height: 5.25rem; border: 0; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.calendar td:last-child { border-right: 0; }
.calendar th { background: var(--paper); padding: 6px 8px; font-size: .75rem; }
.calendar td.is-today { box-shadow: inset 0 0 0 2px var(--cobalt); }
.day-number { font-size: .75rem; }
.cal-event { background: color-mix(in srgb, var(--band) 15%, var(--sheet)); color: var(--ink); border-left: 3px solid var(--band); border-radius: 4px; font-size: .75rem; }
.cal-section { margin: 0; max-width: none; }

/* Panels */
.stat-tiles > div { border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 12px; }
.stat-tiles dd { font-size: 1.25rem; }
.mod-page h1 { font-size: 1.375rem; }
.mod-item h2 { font-size: 1rem; }
.mod-item .prose { border-radius: 8px; }
.passkey-row:last-child { border-bottom: 0; }
.swatches label { border-radius: 8px; min-height: 42px; }
.lightbox { border-radius: var(--radius); }
.emoji-panel { border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(16, 24, 40, .14); }
.bar { background: var(--cobalt); }

.licence-note { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }
.licence-note a, .post-licence a { color: var(--muted); }
.post-licence { margin: 8px 0 0; font-size: .75rem; color: var(--muted); }

@media (max-width: 600px) {
  .site-head { min-height: 0; }
  .brand { padding: 12px 0 2px; }
  .site-nav a, .site-nav .linkish { min-height: 40px; }
  .band { grid-template-columns: minmax(0, 1fr); padding-left: 58px; }
  .band::before { top: 14px; translate: none; }
  .band dl { justify-content: flex-start; gap: 14px; margin-top: 4px; }
  .thread-row { grid-template-columns: repeat(3, auto) minmax(0, 1fr); }
  .post-list { padding: 0 12px; }
  .masthead, .thread-head { margin-top: 12px; padding: 14px; }
}
.site-foot { line-height: 1.5; }
.site-foot .legal { line-height: 1.5; margin-top: 2px; }
.site-foot a, .crumbs a { text-decoration: none; }
.site-foot a:hover, .crumbs a:hover { text-decoration: underline; }

.house-rules { margin-top: 18px; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--cobalt); border-radius: 8px; font-size: .9063rem; }
.house-rules p { margin: 0; }

.username-status { margin: 6px 0 0; font-size: .95em; min-height: 1.3em; }
.username-status.ok { color: var(--ok, #1a7f37); }
.username-status.bad { color: var(--danger, #b42318); }
