/*
 * Site theme, modelled on Invision Community's default look so the move from
 * IPB feels familiar. Colours are all set here, so matching the old theme
 * exactly only means changing these values.
 */
:root {
  --brand: #1265a1;          /* header bar and the chatbox title */
  --brand-dark: #0e5288;     /* nav bar */
  --accent: #1265a1;         /* highlighted title bars, bullets */
  --page: #edf0f4;           /* page background */
  --box: #ffffff;            /* content boxes */
  --box-alt: #f7f9fb;        /* author column, row hover */
  --bubble: #e4eef0;         /* chat bubbles */
  --line: #e8ebf0;
  --text: #1a202c;
  --text-soft: #353c41;      /* counts */
  --muted: #718096;
  --link: #1a202c;
  --link-accent: #177ec9;
  --button: #177ec9;
  --button-text: #ffffff;
  --pin: #2e8a57;
  --lock: #a33a3a;
  --danger: #c0392b;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --heading-font: var(--font);
  --nav-text: rgba(255, 255, 255, 0.85);
  --nav-text-active: #ffffff;
  --on-accent: #ffffff;      /* text on --accent and --brand */
  --input-bg: #ffffff;
  --chat-name: #d0021b;
  --pinned-bg: #f4faf6;
  --event-bg: #e3effa;
  --event-text: #0e5288;
  --bday-bg: #fdf0dc;
  --bday-text: #7a4a00;
}

* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--text); background: var(--page); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .box-title, .brand { font-family: var(--heading-font); }
h1 { font-size: 22px; line-height: 1.3; margin: 0 0 4px; font-weight: 600; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
img { max-width: 100%; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 32px; min-height: 60vh; }
.muted { color: var(--muted); font-size: 0.92em; }
.padded { padding: 12px 15px; }

/* Header: white bar with the name, blue menu bar, white sub-menu */
.site-header { background: var(--box); color: var(--text); }
.header-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 88px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { color: var(--text); font-size: 25px; font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand img { display: block; max-height: 70px; width: auto; }
.brand.banner { flex: 0 1 auto; min-width: 0; }
.brand.banner img { max-height: none; max-width: 100%; height: auto; }
.user-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.user-link { color: var(--text); background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; }
.user-link:hover { color: var(--link-accent); text-decoration: none; }
.user-name { font-weight: 600; }
.count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #d9534f; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.main-nav { background: var(--brand); }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; }
.nav-tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-tabs a { display: block; padding: 16px 19px; color: var(--nav-text); }
.nav-tabs a:hover { color: var(--nav-text-active); text-decoration: none; }
.nav-tabs a.active { color: var(--nav-text-active); font-weight: 600; }
.nav-search { position: relative; }
.nav-search input { width: 376px; max-width: 100%; padding: 8px 40px 8px 16px; border: 0; border-radius: 20px; font: inherit; font-size: 14px; }
.nav-search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 4px; cursor: pointer; color: var(--text); }
.sub-nav { background: var(--box); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.sub-nav ul { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0 38px; padding-top: 0; padding-bottom: 0; }
.sub-nav a { display: block; padding: 15px 0; color: var(--muted); }
.sub-nav li:first-child a { padding-left: 3px; }
.sub-nav a:hover { color: var(--text); text-decoration: none; }
.sub-nav a.active { color: var(--text); font-weight: 600; }

/* Breadcrumb and page heading */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.crumbs span { margin: 0 4px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head p { margin: 0; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Boxes */
.box { background: var(--box); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.box-title { margin: 0; padding: 16px 20px; background: var(--box); color: var(--text); font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.box-title a { color: inherit; }
.box-title.accent { background: var(--accent); color: var(--on-accent); border-bottom: 0; padding: 12px 20px; font-size: 16px; font-weight: 500; }
details.box > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 12px; transition: transform 0.15s; }
details.box:not([open]) > summary { border-bottom: 0; }
details.box:not([open]) > summary::after { transform: rotate(-45deg); margin-top: 0; }

/* Rows: forum lists and topic lists */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row:hover { background: var(--box-alt); }
.row-main { flex: 1; min-width: 0; }
.row-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.row-title a { color: var(--text); }
.row-main a:hover, .row-last a:hover { color: var(--link-accent); }
.row-desc { margin: 3px 0 0; color: var(--muted); font-size: 14.5px; }
.row-stats { width: 90px; flex-shrink: 0; text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.row-stats strong { font-size: 20px; font-weight: 400; color: var(--text-soft); }
.row-stats span { color: var(--muted); font-size: 14px; }
.topic-row .row-stats { display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: baseline; text-align: right; width: 120px; }
.topic-row .row-stats strong { font-size: 15px; }
.topic-row .row-stats span { text-align: left; font-size: 13px; }
.row-last { width: 300px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.last-text { min-width: 0; display: flex; flex-direction: column; }
.last-topic { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-icon { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.forum-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--box); border-radius: 0; }
.subforums { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14.5px; font-weight: 600; }
.subforums li::before { content: "●"; color: var(--accent); font-size: 0.8em; margin-right: 4px; }
.topic-row.pinned { background: var(--pinned-bg); }
.forum-list { list-style: none; padding: 0; }
.forum-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.topics { width: 100%; border-collapse: collapse; background: var(--box); }
.topics th, .topics td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }

/* Calendar */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal { overflow-x: auto; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 640px; }
.cal-grid th { padding: 10px 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; border-bottom: 1px solid var(--line); }
.cal-grid td { vertical-align: top; height: 104px; padding: 6px; border: 1px solid var(--line); }
.cal-grid td.other-month { background: var(--box-alt); }
.cal-grid td.other-month .cal-day { color: var(--muted); }
.cal-grid td.today .cal-day { background: var(--brand); color: var(--on-accent); border-radius: 50%; }
.cal-day { display: inline-grid; place-items: center; width: 26px; height: 26px; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cal-item { display: block; font-size: 12.5px; line-height: 1.35; padding: 2px 6px; margin-bottom: 3px; border-radius: var(--radius); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.event { background: var(--event-bg); color: var(--event-text); }
.cal-item.birthday { background: var(--bday-bg); color: var(--bday-text); }
.cal-item:hover { text-decoration: none; filter: brightness(0.96); }
.cal-time { font-weight: 600; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-date { flex: 0 0 44px; text-align: center; border-radius: var(--radius); background: var(--box-alt); line-height: 1.1; padding: 4px 0; }
.side-date b { display: block; font-size: 18px; }
.side-date span { font-size: 11px; text-transform: uppercase; color: var(--muted); }

/* Index layout with sidebar */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.sidebar .box-title { font-size: 18px; }
.sidebar-block-body { overflow: auto; }
.sidebar-block-body iframe { display: block; max-width: 100%; border: 0; }
.stat-list { margin: 0; }
.stat-list div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--line); }
.stat-list div:last-child { border-bottom: 0; }
.stat-list dt { color: var(--muted); }
.stat-list dd { margin: 0; font-weight: 600; }
.name-list { margin: 6px 0 0; }

/* Chatbox: message box on top, newest message first */
/* Light YouTube player (static/js/embeds.js) */
.yt-lite { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; margin: 8px 0; background: #000; border-radius: var(--radius); overflow: hidden; }
.yt-lite a, .yt-lite img, .yt-lite iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt-lite img { object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(33, 33, 33, 0.8); transition: background 0.15s; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.yt-lite a:hover .yt-play, .yt-lite a:focus-visible .yt-play { background: #f00; }
.chat-bubble .yt-lite { width: 320px; max-width: 100%; }

.chatbox { margin-bottom: 16px; }
.chat-form { display: flex; gap: 8px; padding: 10px 15px; border-bottom: 1px solid var(--line); }
.chat-form input { flex: 1; padding: 8px 10px; border: 0; font: inherit; font-size: 17px; min-width: 0; outline: none; background: var(--input-bg); color: var(--text); }
.chat-smiley-toggle { background: none; border: 0; padding: 0 4px; color: var(--muted); cursor: pointer; display: flex; align-items: center; }
.chat-smiley-toggle:hover, .chat-smiley-toggle[aria-expanded="true"] { color: var(--brand); }
.chat-smileys { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 15px; border-bottom: 1px solid var(--line); max-height: 140px; overflow-y: auto; background: var(--box-alt); }
.chat-smileys button { background: none; border: 0; padding: 4px; border-radius: var(--radius); cursor: pointer; line-height: 0; }
.chat-smileys button:hover, .chat-smileys button:focus-visible { background: var(--box); }
.emoticon { display: inline-block; max-height: 24px; width: auto; vertical-align: middle; }
.chat-note { padding: 10px 15px; margin: 0; border-bottom: 1px solid var(--line); }
.chat-log { list-style: none; margin: 0; padding: 0; height: 280px; overflow-y: auto; }
.chat-log li { display: grid; grid-template-columns: 46px minmax(0, auto) 1fr; grid-template-areas: "av bubble ." "av time time"; gap: 4px 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: start; }
.chat-log .avatar { grid-area: av; width: 46px; height: 46px; }
.chat-bubble { grid-area: bubble; background: var(--bubble); border-radius: 10px; padding: 8px 14px; overflow-wrap: anywhere; }
.chat-name { color: var(--chat-name); font-weight: 400; }
.chat-time { grid-area: time; justify-self: end; color: var(--muted); font-size: 13px; }
.chat-log .chat-delete { grid-column: 3; justify-self: end; font-size: 0.8em; }

/* Latest images strip */
.image-strip { list-style: none; margin: 0; padding: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.image-strip .gallery-thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.strip-title { display: block; margin-top: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Buttons and badges */
.button { display: inline-block; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--box); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; }
.button:hover { text-decoration: none; filter: brightness(0.97); }
.button.primary { background: var(--button); border-color: var(--button); color: var(--button-text); }
.button.small { padding: 5px 12px; font-size: 13px; }
.button.danger { color: var(--danger); border-color: var(--danger); }
button.link { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }
form.inline { display: inline; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; border-radius: 3px; padding: 1px 6px; vertical-align: 2px; background: var(--line); color: var(--text); }
.badge.pin { background: var(--pin); color: #fff; }
.badge.lock { background: var(--lock); color: #fff; }
.flash { list-style: none; padding: 0; margin: 0 0 12px; }
.flash li { padding: 10px 14px; border-radius: var(--radius); background: var(--box); box-shadow: var(--shadow); border-left: 4px solid var(--brand); margin-bottom: 8px; }
.flash li.error { border-left-color: var(--danger); }

/* Posts */
.post { display: flex; background: var(--box); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.post-author { width: 260px; flex-shrink: 0; padding: 28px 16px; text-align: center; overflow-wrap: anywhere; }
.post-author .author-name { display: block; margin-bottom: 12px; font-size: 22px; font-weight: 600; color: var(--text); }
.post-author .avatar { margin: 0 auto 10px; }
.author-group { color: var(--muted); font-size: 16px; }
.author-title { color: var(--text-soft); font-size: 14px; margin-top: 4px; }
.author-posts { color: var(--muted); margin-top: 10px; font-size: 15px; }
.author-posts svg { vertical-align: -2px; }
.post-main { flex: 1; min-width: 0; padding: 28px 28px 24px 8px; }
.post-main > header { margin-bottom: 14px; color: var(--muted); }
.post-main > header a { color: var(--muted); }
.post-body { overflow-wrap: anywhere; font-size: 17px; line-height: 1.7; }
.post-body img { max-width: 100%; height: auto; }
.post-body blockquote { border-left: 3px solid var(--brand); background: var(--box-alt); margin: 8px 0; padding: 8px 12px; color: var(--text); }
.post.compact { display: block; padding: 12px 16px; }
.hidden-post { opacity: 0.6; }
.avatar { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; display: block; margin-bottom: 6px; background: var(--line); }
.avatar.small { width: 36px; height: 36px; margin: 0; flex-shrink: 0; }
.avatar.large { width: 128px; height: 128px; }
.signature { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 8px; font-size: 0.9em; color: var(--muted); }
.reply-box form { padding: 12px 15px; }
.pagination { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.pagination a { padding: 5px 12px; background: var(--box); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Forms */
.narrow { max-width: 480px; }
.stacked > div { margin-bottom: 12px; }
.stacked label { display: block; font-weight: 600; margin-bottom: 4px; }
.stacked input[type=text], .stacked input[type=email], .stacked input[type=password], .stacked input[type=search], .stacked textarea, .stacked select { width: 100%; padding: 8px 10px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input-bg); color: var(--text); }
.stacked .helptext { display: block; color: var(--muted); font-size: 0.85em; }
.errorlist { color: var(--danger); padding-left: 18px; }
main > form.stacked, main > .narrow, .site-page { background: var(--box); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.editor { min-height: 160px; background: var(--input-bg); color: var(--text); }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: var(--line); }

/* Profiles, search, moderation */
.profile-head { display: flex; gap: 20px; align-items: center; background: var(--box); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.search-form input { flex: 1; padding: 8px 10px; font: inherit; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.mod-tools { background: var(--box); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 12px; margin-bottom: 12px; }
.mod-tools summary { cursor: pointer; font-weight: 600; }
.mod-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Gallery */
.gallery-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery-grid li { background: var(--box); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gallery-grid a { display: block; text-decoration: none; color: inherit; }
.gallery-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); display: block; }
.gallery-caption { display: block; font-size: 0.9em; padding: 6px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-grid li.gallery-empty { grid-column: 1 / -1; background: none; box-shadow: none; }
.gallery-full { margin: 0 0 8px; text-align: center; background: var(--box); border-radius: var(--radius); padding: 12px; }
.gallery-large { max-width: 100%; max-height: 80vh; }
.gallery-full a[data-viewer] { cursor: zoom-in; }

/* Downloads */
.download-list { list-style: none; padding: 0; }
.download-list li { display: flex; gap: 12px; align-items: center; background: var(--box); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; margin-bottom: 8px; }
.download-thumb { flex: none; width: 96px; }
.download-thumb img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--line); display: block; }
.download-box { background: var(--box); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; margin-bottom: 12px; line-height: 2.4; }

/* Full-screen image viewer (static/js/gallery.js). Always dark, whatever the theme. */
.viewer-open, .viewer-open body { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 1000; background: #0a0c10; color: #fff; }
.viewer[hidden] { display: none; }
.viewer-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.viewer.actual .viewer-stage { display: block; overflow: auto; text-align: center; }
.viewer.actual .viewer-img { max-width: none; max-height: none; margin: auto; display: block; }
.viewer.dragging .viewer-stage, .viewer.dragging .viewer-img { cursor: grabbing !important; }
.viewer-bar { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; align-items: center; }
.viewer-btn { background: rgba(0, 0, 0, 0.55); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; padding: 7px 12px; font: 14px/1.2 system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.viewer-btn:hover, .viewer-btn:focus-visible { background: rgba(255, 255, 255, 0.2); color: #fff; }
.viewer-close { font-size: 18px; padding: 5px 11px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #fff; text-decoration: none; background: rgba(0, 0, 0, 0.4); border-radius: 6px; }
.viewer-nav:hover, .viewer-nav:focus-visible { background: rgba(255, 255, 255, 0.2); color: #fff; }
.viewer-prev { left: 10px; }
.viewer-next { right: 10px; }
.viewer.actual .viewer-nav { display: none; }
@media (max-width: 600px) {
  .viewer-nav { display: none; }
  .viewer-bar { left: 10px; justify-content: flex-end; }
}

/* Footer */
.site-footer { padding: 20px 0 30px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Narrow screens */
@media (max-width: 980px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .row-last { display: none; }
}
@media (max-width: 640px) {
  .header-top { min-height: 60px; }
  .brand { font-size: 20px; }
  .nav-tabs a { padding: 12px 12px; }
  .sub-nav ul { gap: 0 20px; }
  .brand img { max-height: 44px; }
  .brand.banner img { max-height: none; }
  .nav-row { flex-wrap: wrap; padding-bottom: 8px; }
  .nav-search, .nav-search input { width: 100%; }
  .row { gap: 10px; padding: 11px 12px; }
  .row-stats { width: auto; }
  .post { flex-direction: column; }
  .post-author { width: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; text-align: left; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .post-author .author-name { margin: 0; font-size: 17px; }
  .post-author .avatar { width: 36px; height: 36px; margin: 0; order: -1; }
  .author-posts, .author-title { margin: 0; font-size: 13px; }
  .post-main { padding: 14px; }
  .post-body { font-size: 16px; }
  .hide-small { display: none; }
  .chat-log { height: 200px; }
  .image-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 12px; }
  .forum-icon { width: 40px; height: 40px; }
  .row-title { font-size: 16px; }
}
.post-body a, .site-page a, .crumbs a { color: var(--link-accent); }
.side-more { margin: 8px 0 0; font-size: 14px; }
.motd { margin: 0; }
.motd blockquote { margin: 0; padding: 0 0 0 12px; border-left: 3px solid var(--accent); font-style: italic; line-height: 1.45; overflow-wrap: anywhere; }
.motd figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.motd-refresh { flex: none; border: 1px solid var(--line); background: var(--box); color: var(--muted); border-radius: 50%; width: 28px; height: 28px; font-size: 16px; line-height: 1; cursor: pointer; }
.motd-refresh:hover, .motd-refresh:focus-visible { color: var(--text); border-color: var(--accent); }
.motd-refresh:disabled { opacity: 0.5; cursor: progress; }

/* Theme picker in the footer */
.theme-picker { display: inline-flex; align-items: center; gap: 6px; margin-left: 16px; }
.theme-picker label { color: var(--muted); font-size: 13px; }
.theme-picker select { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--input-bg); color: var(--text); }
.theme-picker button.small { padding: 3px 10px; font-size: 13px; }

/* Reactions under posts */
.reactions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; }
.reaction-count { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--box); color: var(--text); cursor: default; }
.reaction-count.mine { border-color: var(--accent); }
.reaction-count img { display: block; }
.react-form { display: inline; margin: 0; }
.react-picker { display: inline-block; position: relative; }
.react-picker summary { list-style: none; cursor: pointer; color: var(--muted); padding: 2px 4px; }
.react-picker summary::-webkit-details-marker { display: none; }
.react-picker[open] summary { color: var(--text); }
.react-choices { position: absolute; z-index: 20; bottom: calc(100% + 4px); left: 0; display: flex; width: max-content; gap: 2px; padding: 4px; background: var(--box); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.react-choices button { border: 0; background: none; padding: 3px; border-radius: 50%; cursor: pointer; line-height: 0; transition: transform 0.1s; }
.react-choices button:hover, .react-choices button:focus-visible { transform: scale(1.25); background: var(--box-alt); }
.react-choices button.mine { background: var(--accent); }
.react-choices img, .reaction-count img { max-width: none; flex: none; }


/* Sign-up bot trap: people never see this field. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
