
/* Second menu row: the forum's own pages, under the site's main menu. */
.forum-subnav { background: var(--cream); border-top: 1px solid var(--line); }
.forum-subnav .nav a { min-height: 2.25rem; font-size: 0.95rem; font-weight: 500; }

.forum-main { max-width: 56rem; }
.forum-main > h1:first-child, .forum-main > .crumbs + h1 { margin-top: 1.5rem; }
/* The giving panel (styled by site.css .give, as on the main site) under each page's content. */
.forum-give { max-width: 56rem; margin-top: 2.5rem; margin-bottom: 2.5rem; }
.crumbs { margin: 1.25rem 0 0; font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.signed-in { align-self: center; color: var(--muted); font-size: 0.95rem; }
.inline-form { display: inline; margin: 0; }
.button-small { padding: 0.3rem 0.75rem; font-size: 0.9rem; }
button.button { line-height: inherit; }
.notice { margin: 1.25rem 0; padding: 0.8rem 1rem; border: 1px solid var(--line); border-left-width: 6px; border-radius: 0.4rem; background: var(--paper); }
.notice p { margin: 0; }
.notice-error { border-color: var(--maroon); }
.notice-success { border-color: var(--forest); }
.category-list, .topic-list { list-style: none; padding: 0; margin: 1rem 0 2rem; border-top: 1px solid var(--line); }
.category-list li, .topic-list li { margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.category-list h2, .topic-list h2, .topic-list h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.category-list p, .topic-list p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.meta { color: var(--muted); font-size: 0.92rem; }
.tag { display: inline-block; margin-left: 0.4rem; padding: 0 0.45rem; border: 1px solid var(--muted); border-radius: 0.3rem; color: var(--muted); font-family: var(--sans); font-size: 0.8rem; font-weight: 600; vertical-align: middle; }
.posts { list-style: none; padding: 0; margin: 1.5rem 0; }
.post { margin: 0 0 1.25rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.5rem; scroll-margin-top: 1rem; }
.post:target { border-color: var(--maroon); }
.post-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.6rem; font-size: 0.95rem; }
.post-author { font-weight: 600; }
.post-body > :last-child { margin-bottom: 0; }
.post-body blockquote { margin: 0 0 1.1rem; padding: 0.2rem 0 0.2rem 1rem; background: linear-gradient(var(--saffron), var(--saffron)) left / 4px 100% no-repeat; color: var(--muted); }
.post-body code { padding: 0 0.25rem; background: var(--sand); border-radius: 0.2rem; font-size: 0.95em; }
.post-removed { color: var(--muted); font-style: italic; }
.post-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.post-actions a { font-size: 0.92rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.pagination li { margin: 0; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.6rem; border: 1px solid var(--line); border-radius: 0.35rem; background: var(--paper); text-decoration: none; }
.pagination a[aria-current="page"] { background: var(--maroon); border-color: var(--maroon); color: var(--cream); }
.pagination .gap { align-self: center; padding: 0 0.3rem; }
.form-panel { max-width: 36rem; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0.5rem; }
.field .hint { display: block; margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.field textarea { min-height: 12rem; }
.field-error { color: var(--maroon); font-weight: 600; }
.cf-turnstile { margin: 0 0 1.1rem; min-height: 65px; }
.table-wrap { overflow-x: auto; }
table.queue { width: 100%; border-collapse: collapse; margin: 0.5rem 0 2rem; font-size: 0.95rem; }
table.queue th, table.queue td { padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.queue td .inline-form + .inline-form { margin-left: 0.3rem; }
.reply-box { margin: 2rem 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1rem; }
.section-head h2 { margin-bottom: 0.25rem; }
.link-box { padding: 0.75rem; background: var(--sand); border-radius: 0.35rem; overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; }
.danger { border-color: var(--maroon); }
.stack { margin-bottom: 1.25rem; }
/* Research simulation: a disclosure band unlike anything else on the site (deep slate, white
   text, dashed edge) at the top of every simulation page, and an "AI agent" badge. */
.sim-banner { background: #1d2b4a; color: #fff; border-bottom: 4px dashed #fff; }
.sim-banner p { margin: 0; padding: 0.75rem 0; font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.sim-banner a { color: #fff; text-decoration: underline; text-underline-offset: 0.15em; }
.sim-banner a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tag-agent { border-color: #1d2b4a; background: #1d2b4a; color: #fff; }
.post-agent { border-left: 6px solid #1d2b4a; }
.sim-link { margin-top: 2rem; }
@media (max-width: 40rem) {
  .header-actions .signed-in { flex-basis: 100%; }
  table.queue thead { display: none; }
  table.queue tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  table.queue td { display: block; border: 0; padding: 0.2rem 0; }
}
