:root {
  color: #18211d;
  background: #f5f7f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  --ink: #18211d;
  --muted: #637068;
  --line: #d9dfdb;
  --surface: #ffffff;
  --green: #16734a;
  --green-dark: #0e5636;
  --red: #a33131;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, .button { border: 1px solid var(--green-dark); border-radius: 5px; background: var(--green-dark); color: white; min-height: 40px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { background: #083d27; }
button.danger, .danger { background: var(--red); border-color: var(--red); }
.site-header { background: #12251c; color: white; border-bottom: 3px solid #39a36d; }
.header-inner { max-width: 1120px; min-height: 64px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: white; display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 6px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
nav a, .link-button { color: inherit; background: none; border: 0; min-height: auto; padding: 0; text-decoration: none; }
.inline { display: inline; margin: 0; }
.security-strip { background: #e9f2ed; color: #234b37; border-bottom: 1px solid #cbdcd2; padding: 8px 24px; text-align: center; font-size: .875rem; }
.page-shell { width: min(1120px, calc(100% - 48px)); margin: 32px auto 72px; min-height: calc(100vh - 230px); }
.page-heading, .topic-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 8px; letter-spacing: 0; }
h2 { font-size: 1.2rem; margin: 0 0 16px; letter-spacing: 0; }
h3 { font-size: 1rem; margin: 0 0 5px; letter-spacing: 0; }
.eyebrow { color: var(--green); font-size: .75rem; font-weight: 800; margin: 0 0 6px; }
.section-block { margin-top: 36px; }
.category-list, .topic-list, .report-list, .user-list { background: var(--surface); border-top: 1px solid var(--line); }
.category-row, .topic-row, .report-row, .user-row { min-height: 76px; border-bottom: 1px solid var(--line); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--ink); text-decoration: none; }
.user-row div { display: grid; gap: 3px; }
.user-row span, .user-row small { color: var(--muted); }
.category-row:hover, .topic-row:hover { background: #f0f6f2; }
.category-row strong { display: block; }
.category-row small, .topic-row p, .topic-heading p { display: block; color: var(--muted); margin: 4px 0 0; }
.category-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.topic-main { min-width: 0; }
.topic-main h3 a { color: var(--ink); }
.topic-flags { display: flex; gap: 6px; min-height: 16px; }
.topic-flags span, .hidden-label { background: #e1ece5; color: #345541; font-size: .65rem; font-weight: 800; padding: 2px 5px; }
.reply-count { min-width: 72px; text-align: right; color: var(--muted); }
.reply-count strong, .reply-count span { display: block; }
.reply-count strong { color: var(--ink); font-size: 1.2rem; }
.reply-count span { font-size: .75rem; }
.breadcrumbs { margin-bottom: 14px; }
.post-list { border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 180px minmax(0, 1fr); background: white; border-bottom: 1px solid var(--line); }
.post aside { padding: 20px; background: #f0f3f1; border-right: 1px solid var(--line); }
.post aside strong, .post aside span, .post aside small { display: block; }
.post aside span, .post aside small { color: var(--muted); margin-top: 4px; }
.post-content { padding: 22px 26px; min-height: 130px; }
.post.is-hidden { opacity: .65; }
.prose pre { max-width: 100%; overflow: auto; background: #14221b; color: #eef7f1; padding: 14px; border-radius: 4px; }
.prose code { overflow-wrap: anywhere; }
.prose img { max-width: 100%; }
.post-actions, .moderator-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.post-actions form, .moderator-actions form { margin: 0; }
.moderator-actions button { min-height: 34px; padding: 5px 10px; background: white; color: var(--ink); border-color: #aeb9b2; }
.reply-form { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; }
.form-page { max-width: 560px; margin: 50px auto; }
.form-page.wide { max-width: 820px; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 7px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid #aeb9b2; border-radius: 4px; background: white; color: var(--ink); padding: 10px 11px; min-height: 44px; }
input:focus, textarea:focus, select:focus { outline: 3px solid #b9dfc9; border-color: var(--green); }
textarea { min-height: 190px; resize: vertical; }
form small { color: var(--muted); }
.search-form { grid-template-columns: 1fr auto; margin-bottom: 28px; }
.notice { padding: 12px 15px; border: 1px solid #bec9c2; background: #edf1ee; margin-bottom: 22px; }
.notice.success { border-color: #98c9ac; background: #e8f5ed; }
.notice.error { border-color: #dcabab; background: #fbeeee; color: #771e1e; }
.empty { padding: 26px 18px; color: var(--muted); }
.auth-callout { text-align: center; margin: 30px 0; }
.error-page { text-align: center; padding: 80px 20px; }
.policy { max-width: 760px; margin: 30px auto; }
.policy h2 { margin-top: 32px; }
.policy li { margin: 8px 0; }
.error-code { color: var(--green); font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
footer { max-width: 1120px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; }
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; padding: 12px 16px; }
  .header-inner nav { justify-content: flex-end; gap: 11px 14px; font-size: .875rem; }
  .brand span { display: none; }
  .page-shell { width: min(100% - 24px, 1120px); margin-top: 22px; }
  .page-heading, .topic-heading { align-items: flex-start; flex-direction: column; }
  .post { grid-template-columns: 1fr; }
  .post aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 12px; }
  .post aside span, .post aside small { margin: 0; }
  .post-content { padding: 18px 16px; }
  .category-row, .topic-row { padding: 14px 12px; }
  .reply-count { min-width: 52px; }
  footer { margin: 0 12px; }
  footer { flex-direction: column; gap: 10px; }
}
