:root {
  --ink: #202a2f;
  --ink-soft: #46545c;
  --paper: #f3efe7;
  --paper-deep: #e9e2d6;
  --white: #fffdf9;
  --line: #d7cfc1;
  --rust: #b24a2f;
  --rust-dark: #84351f;
  --gold: #c6a663;
  --navy: #15232b;
  --muted: #59666c;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 44px; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-150%);
}
.skip-link:focus { outline-color: white; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.top-gap { margin-top: 18px; }
blockquote { margin: 20px 0; padding: 14px 18px; color: var(--ink-soft); border-left: 3px solid var(--gold); background: var(--paper); font: 14px/1.65 Georgia, serif; white-space: pre-wrap; }

.forum-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 76px;
  padding: 0 clamp(18px, 5vw, 72px);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(21,35,43,.98);
}
.forum-brand { display: flex; min-height: 44px; align-items: center; gap: 12px; text-decoration: none; touch-action: manipulation; }
.forum-brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: var(--gold); border: 1px solid var(--gold); font: 800 10px/1 monospace; }
.forum-brand strong { font: 400 19px/1 Georgia, serif; }
.forum-brand-copy { display: grid; gap: 4px; }
.forum-brand-copy strong, .forum-brand-copy small { display: block; }
.forum-brand-copy small { color: #a9b6bd; font: 800 9px/1.1 monospace; letter-spacing: .08em; text-transform: uppercase; }
.forum-header nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.forum-header nav a { display: inline-flex; min-height: 44px; align-items: center; color: #d9e0e2; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; touch-action: manipulation; }
.forum-header nav a:hover { color: white; }
.forum-header nav a[aria-current="page"] { color: #ffe6a8; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.forum-header .email-nav { padding: 11px 14px; color: var(--navy); background: var(--gold); }
.forum-mobile-menu { display: none; }

.forum-flash { padding: 14px clamp(18px, 5vw, 72px); color: #12401f; border-bottom: 1px solid #a8d7b3; background: #e8f6eb; font-size: 13px; }
.forum-flash.error { color: #6f2115; border-color: #dfa99c; background: #fff0ed; }

.forum-hero { padding: 68px clamp(18px, 7vw, 108px) 54px; color: white; background: var(--navy); }
.forum-hero .eyebrow { color: var(--gold); font: 800 9px/1.2 monospace; letter-spacing: .12em; text-transform: uppercase; }
.forum-hero h1 { max-width: 900px; margin: 18px 0 14px; font: 400 clamp(42px, 7vw, 86px)/.95 Georgia, serif; letter-spacing: -.045em; }
.forum-hero p { max-width: 680px; margin: 0; color: #b7c3c8; font: 16px/1.65 Georgia, serif; }
.hero-actions { display: flex; margin-top: 30px; flex-wrap: wrap; gap: 10px; }

.button { display: inline-flex; padding: 0 18px; align-items: center; justify-content: center; border: 1px solid var(--ink); color: white; background: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; touch-action: manipulation; }
.button:hover { color: white; background: var(--rust); border-color: var(--rust); }
.button.secondary { color: var(--ink); background: transparent; }
.forum-hero .button.secondary { color: #ffe6a8; border-color: var(--gold); background: rgba(198,166,99,.09); box-shadow: inset 0 0 0 1px rgba(255,230,168,.08); }
.forum-hero .button.secondary:hover { color: var(--navy); border-color: var(--gold); background: var(--gold); }
.forum-hero .button.secondary:focus-visible { color: var(--navy); border-color: #ffe6a8; background: #ffe6a8; outline-color: white; }
.button.email { border-color: var(--rust); background: var(--rust); }
.button.email:hover { border-color: var(--rust-dark); background: var(--rust-dark); }
.form-note { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.access-label { display: inline-block; margin-bottom: 14px; color: var(--rust); font: 800 10px/1 monospace; letter-spacing: .1em; text-transform: uppercase; }
.button.danger { border-color: #9f2f23; background: #9f2f23; }
.button.small { min-height: 44px; padding: 0 12px; font-size: 9px; }

.forum-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 46px 0 80px; }
.forum-shell.narrow { width: min(760px, calc(100% - 36px)); }
.forum-tabs { display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: 36px; border: 1px solid var(--line); background: var(--white); }
.forum-tabs a { display: grid; min-height: 130px; padding: 22px 26px; align-content: center; gap: 8px; border-right: 1px solid var(--line); text-decoration: none; touch-action: manipulation; }
.forum-tabs a:last-child { border-right: 0; }
.forum-tabs a:hover { background: #faf7f0; }
.forum-tabs a.active { color: white; background: var(--navy); box-shadow: inset 0 -4px 0 var(--gold); }
.forum-tabs span { color: var(--rust); font: 800 9px/1 monospace; letter-spacing: .1em; text-transform: uppercase; }
.forum-tabs a.active span { color: var(--gold); }
.forum-tabs strong { font: 400 30px/1 Georgia, serif; }
.forum-tabs small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.forum-tabs a.active small { color: #b8c3c8; }
.forum-toolbar { display: flex; margin-bottom: 24px; align-items: end; justify-content: space-between; gap: 18px; }
.forum-toolbar h1 { margin: 0; font: 400 clamp(32px, 5vw, 54px)/1 Georgia, serif; }
.forum-toolbar p { max-width: 620px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }

.forum-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 24px; }
.forum-search input { min-height: 52px; padding: 0 16px; border: 1px solid var(--ink); border-right: 0; background: white; outline: none; }
.forum-search input:focus { box-shadow: inset 0 0 0 2px rgba(178,74,47,.25); }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 38px; }
.category-card { min-height: 165px; padding: 20px; border: 1px solid var(--line); background: var(--white); text-decoration: none; touch-action: manipulation; }
.category-card:hover { border-color: var(--rust); box-shadow: 0 12px 30px rgba(31,27,20,.07); transform: translateY(-2px); }
.category-card span { color: var(--rust); font: 800 9px/1 monospace; letter-spacing: .08em; }
.category-card h2 { margin: 28px 0 10px; font: 400 20px/1.1 Georgia, serif; }
.category-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.section-label { display: flex; margin: 28px 0 12px; align-items: center; justify-content: space-between; gap: 20px; }
.section-label h2 { margin: 0; font: 400 29px/1.1 Georgia, serif; }
.section-label span { color: var(--muted); font: 800 9px/1 monospace; letter-spacing: .08em; text-transform: uppercase; }

.thread-list { border-top: 1px solid var(--ink); }
.thread-row { display: grid; grid-template-columns: minmax(0, 1fr) 105px 155px; gap: 20px; padding: 22px 6px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; touch-action: manipulation; }
.thread-row:hover { background: rgba(255,255,255,.55); }
.thread-main { display: grid; gap: 7px; }
.thread-main strong { font: 400 19px/1.25 Georgia, serif; }
.thread-main small, .thread-stat { color: var(--muted); font-size: 10px; line-height: 1.45; }
.thread-category { color: var(--rust); font: 800 9px/1 monospace; letter-spacing: .06em; text-transform: uppercase; }
.status-locked { margin-left: 7px; padding: 3px 5px; color: #6a4d0f; background: #f4e8c2; font: 800 8px/1 monospace; text-transform: uppercase; }

.forum-panel { padding: clamp(24px, 4vw, 46px); border: 1px solid var(--line); background: var(--white); }
.forum-panel h1, .forum-panel h2 { margin-top: 0; font-family: Georgia, serif; font-weight: 400; }
.forum-panel h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1; }
.forum-panel h2 { font-size: 26px; }
.forum-panel p, .forum-panel li { color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.forum-panel hr { margin: 34px 0; border: 0; border-top: 1px solid var(--line); }

.forum-form { display: grid; gap: 18px; }
.forum-form label { display: grid; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.forum-form input, .forum-form select, .forum-form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); color: var(--ink); background: white; outline: none; font-size: 15px; line-height: 1.5; text-transform: none; }
.forum-form textarea { min-height: 190px; resize: vertical; }
.forum-form input:focus, .forum-form select:focus, .forum-form textarea:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(178,74,47,.1); }
.forum-form small { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.forum-form .check-label { display: flex; align-items: center; grid-template-columns: none; flex-direction: row; gap: 10px; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.forum-form .check-label input { width: 20px; height: 20px; padding: 0; flex: 0 0 auto; accent-color: var(--rust); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-links { display: flex; margin-top: 22px; padding-top: 20px; flex-wrap: wrap; justify-content: space-between; gap: 12px 22px; border-top: 1px solid var(--line); }
.auth-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--rust-dark); font-size: 12px; font-weight: 800; touch-action: manipulation; }

.forum-alert { margin-bottom: 22px; padding: 16px 18px; border: 1px solid #a8d7b3; color: #12401f; background: #e8f6eb; font-size: 13px; }
.forum-alert.error { color: #6f2115; border-color: #dfa99c; background: #fff0ed; }
.forum-alert ul { margin-bottom: 0; }

.thread-header { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.thread-header .breadcrumb { color: var(--rust); font: 800 9px/1.4 monospace; letter-spacing: .06em; text-transform: uppercase; }
.thread-header h1 { max-width: 900px; margin: 14px 0 11px; font: 400 clamp(34px, 6vw, 64px)/1 Georgia, serif; letter-spacing: -.025em; }
.thread-header p { color: var(--muted); font-size: 11px; }
.post { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 170px; border-bottom: 1px solid var(--line); background: var(--white); }
.post-author { padding: 24px; border-right: 1px solid var(--line); }
.avatar { width: 46px; height: 46px; margin-bottom: 13px; border-radius: 50%; object-fit: cover; background: var(--paper-deep); }
.avatar-fallback { display: grid; place-items: center; color: var(--rust); border: 1px solid var(--rust); font: 800 12px/1 monospace; }
.post-author strong { display: block; font: 400 17px/1.2 Georgia, serif; }
.post-author small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.post-content { display: flex; min-width: 0; padding: 26px; flex-direction: column; }
.post-content time { color: var(--muted); font: 9px/1 monospace; }
.post-body { margin: 22px 0; color: var(--ink-soft); font: 16px/1.7 Georgia, serif; overflow-wrap: anywhere; white-space: pre-wrap; }
.post-actions { display: flex; margin-top: auto; justify-content: flex-end; }
.post-actions a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.post-moderation, .member-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.post-moderation button, .member-actions button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink-soft); background: transparent; font-size: 8px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.post-moderation button:hover, .member-actions button:hover { color: white; border-color: var(--rust); background: var(--rust); }
.post-moderation .danger-action, .member-actions .danger-action, .moderation-actions .danger-action { color: #84281e; border-color: #c98d84; }
.post-moderation .danger-action:hover, .member-actions .danger-action:hover, .moderation-actions .danger-action:hover { color: white; border-color: #9f2f23; background: #9f2f23; }
.reply-panel { margin-top: 28px; }

.account-grid { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: start; }
.account-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: var(--paper-deep); }
.account-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.account-facts div { padding: 17px; background: var(--paper); }
.account-facts dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.account-facts dd { margin: 7px 0 0; font: 400 18px/1.2 Georgia, serif; }
.account-subsection { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }

.research-workspace { display: grid; gap: 28px; }
.research-workspace-hero { display: flex; min-height: 280px; padding: clamp(30px, 5vw, 64px); align-items: flex-end; justify-content: space-between; gap: 40px; color: white; background: var(--navy); box-shadow: inset 0 -4px 0 var(--gold); }
.research-workspace-hero h1 { max-width: 760px; margin: 7px 0 14px; font: 400 clamp(42px, 7vw, 76px)/.95 Georgia, serif; letter-spacing: -.04em; }
.research-workspace-hero p { max-width: 720px; margin: 0; color: #c8d1d5; font: 15px/1.7 Georgia, serif; }
.research-workspace-account { display: flex; min-width: 210px; padding: 16px; align-items: center; gap: 13px; border: 1px solid rgba(198,166,99,.45); background: rgba(255,255,255,.04); }
.research-workspace-account .account-avatar { width: 54px; height: 54px; flex: 0 0 auto; }
.research-workspace-account small, .research-workspace-account strong { display: block; }
.research-workspace-account small { margin-bottom: 5px; color: #aebbc0; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.research-workspace-account strong { font: 400 18px/1.2 Georgia, serif; overflow-wrap: anywhere; }
.research-global-status { margin: 0; }
.research-global-status[data-state="loading"], .research-list-status[data-state="loading"] { color: #5c4719; border-color: #dac68f; background: #faf3dc; }
.research-jump-nav { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); }
.research-jump-nav a { display: grid; min-height: 74px; padding: 16px 18px; place-items: center; border-right: 1px solid var(--line); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: center; text-decoration: none; text-transform: uppercase; touch-action: manipulation; }
.research-jump-nav a:last-child { border-right: 0; }
.research-jump-nav a:hover { color: white; background: var(--rust); }
.research-section { display: grid; gap: 16px; scroll-margin-top: 100px; }
.research-section > .section-label { margin: 14px 0 0; align-items: end; }
.research-section > .section-label > div > span { display: block; margin-bottom: 8px; color: var(--rust-dark); font: 800 10px/1 monospace; letter-spacing: .1em; }
.research-section > .section-label h2 { margin: 0; font: 400 clamp(32px, 5vw, 54px)/1 Georgia, serif; }
.research-two-column { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); align-items: start; gap: 14px; }
.research-two-column.balanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.research-panel { min-width: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); background: var(--white); }
.research-panel > header { margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.research-panel > header h3 { margin: 0; font: 400 27px/1.1 Georgia, serif; }
.research-panel > header p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.research-panel-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.research-inline-filter { display: grid; min-width: 190px; gap: 6px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.research-inline-filter select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); color: var(--ink); background: white; font-size: 14px; text-transform: none; }
.research-form { display: grid; gap: 14px; }
.research-form + .research-list-status, .research-form + .research-card-list { margin-top: 18px; }
.research-form label { display: grid; min-width: 0; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.research-form label > span { color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.research-form input, .research-form select, .research-form textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: white; outline: none; font-size: 15px; line-height: 1.45; text-transform: none; }
.research-form input, .research-form select { min-height: 46px; }
.research-form textarea { resize: vertical; }
.research-form input:focus, .research-form select:focus, .research-form textarea:focus, .research-inline-filter select:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(178,74,47,.1); }
.research-form[aria-busy="true"] { opacity: .68; }
.research-grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.research-grid-form .span-two { grid-column: 1 / -1; }
.research-create-disclosure { margin-bottom: 18px; border: 1px solid var(--line); background: var(--paper); }
.research-create-disclosure > summary { display: flex; min-height: 50px; padding: 0 15px; align-items: center; color: var(--rust-dark); cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; touch-action: manipulation; }
.research-create-disclosure[open] > summary { color: white; background: var(--navy); }
.research-create-disclosure > .research-form { padding: 20px; border-top: 1px solid var(--line); background: var(--white); }
.research-list-status { padding: 15px; color: var(--muted); border: 1px dashed var(--line); font-size: 12px; line-height: 1.5; }
.research-list-status.error { color: #6f2115; border-color: #dfa99c; background: #fff0ed; }
.research-collection-list, .research-card-list { display: grid; gap: 10px; }
.research-collection-card, .research-item-card { min-width: 0; padding: 18px; border: 1px solid var(--line); background: white; overflow-wrap: anywhere; }
.research-collection-card { margin-top: 10px; }
.research-collection-card .research-form { gap: 10px; }
.research-collection-card .research-form input, .research-collection-card .research-form textarea { background: var(--paper); }
.research-item-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.research-item-card > header h4, .research-item-card > h4 { margin: 7px 0 0; font: 400 22px/1.2 Georgia, serif; }
.research-item-card > header small { color: var(--muted); font-size: 9px; line-height: 1.4; text-align: right; }
.research-type-badge, .research-status-badge { display: inline-flex; min-height: 24px; padding: 0 8px; align-items: center; color: #65301f; border: 1px solid #cf9c89; background: #fff2eb; font: 800 8px/1 monospace; letter-spacing: .03em; text-transform: uppercase; }
.research-status-badge.status-accepted { color: #12401f; border-color: #8fc49b; background: #e8f6eb; }
.research-status-badge.status-rejected { color: #6f2115; border-color: #dfa99c; background: #fff0ed; }
.research-status-badge.status-needs_info { color: #5c4719; border-color: #dac68f; background: #faf3dc; }
.research-status-badge.status-reviewing { color: #24465d; border-color: #9dbbcf; background: #edf6fb; }
.research-card-meta { margin: 9px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.research-bookmark-excerpt { max-height: 220px; overflow: auto; overflow-wrap: anywhere; }
.research-private-note, .research-admin-note { margin-top: 13px; padding: 14px; border-left: 3px solid var(--gold); background: var(--paper); }
.research-admin-note { border-left-color: var(--rust); }
.research-private-note strong, .research-admin-note strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.research-private-note p, .research-admin-note p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.research-tags { display: flex; margin-top: 13px; flex-wrap: wrap; gap: 5px; }
.research-tags span { padding: 5px 7px; color: #435058; border: 1px solid var(--line); background: var(--paper); font: 800 8px/1 monospace; }
.research-card-actions { display: flex; margin-top: 16px; padding-top: 14px; flex-wrap: wrap; gap: 7px; border-top: 1px solid var(--line); }
.research-card-actions .button, .research-collection-card .button { min-height: 44px; }
.research-saved-query { margin: 10px 0; padding: 12px; color: var(--ink); background: var(--paper); font: 14px/1.55 Georgia, serif; white-space: pre-wrap; }
.research-correction-detail { margin-top: 14px; border: 1px solid var(--line); }
.research-correction-detail > summary { display: flex; min-height: 44px; padding: 0 13px; align-items: center; cursor: pointer; color: var(--rust-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.research-correction-detail > :not(summary) { margin-right: 14px; margin-left: 14px; }
.research-correction-detail > strong { display: block; margin-top: 15px; font-size: 10px; text-transform: uppercase; }
.research-correction-detail > p { color: var(--ink-soft); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.research-history { margin-top: 14px; padding: 15px; border: 1px solid var(--line); background: var(--paper); }
.research-history h5 { margin: 0 0 12px; font: 400 20px/1.2 Georgia, serif; }
.research-history-list { display: grid; margin: 0; padding-left: 20px; gap: 12px; }
.research-history-list li { padding-left: 4px; }
.research-history-list strong, .research-history-list small { display: block; }
.research-history-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.research-history-list p { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.research-empty { margin: 0; padding: 36px 18px; color: var(--muted); border: 1px dashed var(--line); text-align: center; font-size: 12px; line-height: 1.6; }
.research-load-more { width: 100%; margin-top: 12px; }

.report-list { display: grid; gap: 12px; }
.report-card { padding: 20px; border: 1px solid var(--line); background: white; }
.report-card header { display: flex; justify-content: space-between; gap: 20px; }
.report-card p { white-space: pre-wrap; }
.moderation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.moderation-actions button { min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); color: var(--ink); background: transparent; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.filter-tabs { display: flex; margin: 0 0 20px; flex-wrap: wrap; gap: 7px; }
.filter-tabs a { display: inline-flex; min-height: 44px; padding: 0 13px; align-items: center; border: 1px solid var(--line); background: var(--white); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.filter-tabs a[aria-current="page"] { color: white; border-color: var(--navy); background: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.report-card .moderation-actions { margin-top: 20px; padding-top: 18px; align-items: end; border-top: 1px solid var(--line); }
.report-card .moderation-actions label { display: grid; min-width: 190px; flex: 1 1 260px; gap: 7px; color: var(--ink); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.report-card .moderation-actions select, .report-card .moderation-actions textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); color: var(--ink); background: white; font-size: 15px; line-height: 1.45; text-transform: none; }
.report-card .moderation-actions textarea { min-height: 84px; resize: vertical; }
.moderation-history { margin-top: 42px; }
.history-row { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 24px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.history-row strong, .history-row small { display: block; }
.history-row small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.history-row p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }

.member-list { display: grid; gap: 12px; }
.member-card { padding: 20px; border: 1px solid var(--line); background: var(--white); }
.member-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.member-card header strong, .member-card header small { display: block; }
.member-card header strong { font: 400 20px/1.2 Georgia, serif; }
.member-card header small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.member-card > p { color: var(--muted); font-size: 11px; }
.member-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.member-badges span { padding: 5px 7px; color: #435058; border: 1px solid var(--line); background: var(--paper); font: 800 8px/1 monospace; text-transform: uppercase; }
.member-badges .mute-badge { color: #6a4d0f; border-color: #dfc776; background: #faf0cc; }
.member-badges .danger-badge { color: #7a251c; border-color: #dda198; background: #fff0ed; }
.member-actions { justify-content: flex-start; }
.protected-admin { padding: 11px 13px; color: #5c4719 !important; border: 1px solid #dac68f; background: #faf3dc; }

.pagination { display: flex; margin: 24px 0; justify-content: center; gap: 8px; }
.pagination a, .pagination span { display: grid; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid var(--line); background: white; font-size: 11px; text-decoration: none; }
.pagination .current { color: white; border-color: var(--rust); background: var(--rust); }
.empty-state { padding: 45px 20px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; }

.forum-footer { display: flex; min-height: 105px; padding: 28px clamp(18px, 5vw, 72px); align-items: center; justify-content: space-between; gap: 24px; color: #9dacb2; background: var(--navy); font-size: 10px; }
.forum-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.forum-footer a { display: inline-flex; min-height: 44px; align-items: center; color: #eef3f4; touch-action: manipulation; }

@media (max-width: 1160px) {
  .forum-header { position: sticky; padding-top: 13px; padding-bottom: 13px; align-items: center; }
  .forum-desktop-nav { display: none !important; }
  .forum-mobile-menu { position: relative; display: block; margin-left: auto; }
  .forum-mobile-menu summary {
    display: inline-grid;
    min-width: 76px;
    min-height: 44px;
    padding: 0 13px;
    place-items: center;
    color: var(--gold);
    border: 1px solid rgba(198,166,99,.72);
    cursor: pointer;
    font: 800 10px/1 monospace;
    list-style: none;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .forum-mobile-menu summary::-webkit-details-marker { display: none; }
  .forum-mobile-menu[open] summary { color: var(--navy); background: var(--gold); }
  .forum-header .forum-mobile-menu nav {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: min(310px, calc(100vw - 32px));
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(198,166,99,.45);
    background: #0b1922;
    box-shadow: 0 22px 60px rgba(0,0,0,.45);
  }
  .forum-header .forum-mobile-menu nav a {
    display: flex;
    min-height: 48px;
    padding: 0 14px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .forum-header .forum-mobile-menu nav a:last-child { border-bottom: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .thread-row { grid-template-columns: minmax(0, 1fr) 90px; }
  .thread-row > :last-child { display: none; }
  .research-workspace-hero { align-items: flex-start; flex-direction: column; }
  .research-two-column, .research-two-column.balanced { grid-template-columns: 1fr; }
  .research-workspace-account { min-width: min(100%, 320px); }
}

@media (max-width: 650px) {
  .forum-header { flex-direction: row; }
  .forum-hero { padding-top: 48px; }
  .forum-toolbar { align-items: flex-start; flex-direction: column; }
  .forum-tabs { grid-template-columns: 1fr; }
  .forum-tabs a { min-height: 110px; border-right: 0; border-bottom: 1px solid var(--line); }
  .forum-tabs a:last-child { border-bottom: 0; }
  .forum-search { grid-template-columns: 1fr; }
  .forum-search input { border-right: 1px solid var(--ink); }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 135px; }
  .thread-row { grid-template-columns: 1fr; }
  .thread-row > :nth-child(2) { display: none; }
  .post { grid-template-columns: 1fr; }
  .post-author { display: grid; grid-template-columns: 46px 1fr; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-author .avatar { grid-row: 1 / 3; margin: 0; }
  .account-grid { grid-template-columns: 1fr; }
  .account-facts { grid-template-columns: 1fr; }
  .member-card > header, .history-row { grid-template-columns: 1fr; flex-direction: column; }
  .member-badges { justify-content: flex-start; }
  .research-jump-nav { grid-template-columns: 1fr; }
  .research-jump-nav a { border-right: 0; border-bottom: 1px solid var(--line); }
  .research-jump-nav a:last-child { border-bottom: 0; }
  .research-panel-header { align-items: stretch; flex-direction: column; }
  .research-inline-filter { min-width: 0; }
  .research-grid-form { grid-template-columns: 1fr; }
  .research-grid-form .span-two { grid-column: auto; }
  .research-item-card > header { flex-direction: column; }
  .research-item-card > header small { text-align: left; }
  .research-card-actions { display: grid; grid-template-columns: 1fr; }
  .research-card-actions .button { width: 100%; justify-content: center; }
  .filter-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-tabs a { justify-content: center; }
  .report-card .moderation-actions { display: grid; grid-template-columns: 1fr; }
  .report-card .moderation-actions label { min-width: 0; }
  .forum-footer { align-items: flex-start; flex-direction: column; }
  .forum-form input, .forum-form select, .forum-form textarea, .forum-search input, .research-form input, .research-form select, .research-form textarea, .research-inline-filter select { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 360px) {
  .forum-header { padding-right: 14px; padding-left: 14px; }
  .forum-brand { gap: 9px; }
  .forum-brand strong { font-size: 16px; }
  .forum-shell, .forum-shell.narrow { width: min(100% - 28px, 1180px); }
  .forum-panel { padding: 22px 18px; }
}

/* --------------------------------------------------------------------------
   2026 visual refinement: shared MassVLC editorial system
   -------------------------------------------------------------------------- */

:root {
  --ink: #13212b;
  --ink-soft: #35434d;
  --paper: #f4f1ea;
  --paper-deep: #e8e0d3;
  --white: #fffefa;
  --line: rgba(19,33,43,.15);
  --rust: #9e402b;
  --rust-dark: #762f21;
  --gold: #d0b275;
  --gold-ink: #796238;
  --navy: #071923;
  --navy-2: #0f2a38;
  --muted: #53616a;
  --font-ui: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-editorial: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-code: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-soft: 0 16px 44px rgba(11,25,34,.09);
  --shadow-deep: 0 26px 76px rgba(2,12,18,.34);
}

::selection { color: var(--navy); background: #e6c985; }
body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 7%, rgba(208,178,117,.1), transparent 30rem),
    linear-gradient(180deg, #f8f5ef 0, var(--paper) 32rem);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.forum-header {
  z-index: 50;
  min-height: 80px;
  padding-right: max(clamp(20px,4vw,62px), calc((100vw - 1540px) / 2 + 22px));
  padding-left: max(clamp(20px,4vw,62px), calc((100vw - 1540px) / 2 + 22px));
  border-bottom-color: rgba(208,178,117,.2);
  background: rgba(7,25,35,.965);
  box-shadow: 0 10px 34px rgba(2,11,17,.2);
  backdrop-filter: blur(18px);
}
.forum-brand { gap: 13px; }
.forum-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(208,178,117,.12), rgba(208,178,117,.025));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  font: 800 11px/1 var(--font-code);
  letter-spacing: .08em;
}
.forum-brand strong { font: 600 17px/1.05 var(--font-editorial); letter-spacing: .01em; }
.forum-header nav { gap: 4px; }
.forum-header nav a {
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  color: #c4cfd4;
  font-size: 10.5px;
  letter-spacing: .055em;
}
.forum-header nav a:hover { color: #fff; background: rgba(255,255,255,.065); }
.forum-header nav a[aria-current="page"] {
  color: #f6e8c8;
  border-color: rgba(208,178,117,.34);
  background: rgba(208,178,117,.105);
  box-shadow: inset 0 -2px 0 var(--gold);
  text-decoration: none;
}
.forum-header .email-nav {
  margin-left: 5px;
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold);
}

.forum-flash { padding-top: 15px; padding-bottom: 15px; font-size: 13.5px; }
.forum-hero {
  position: relative;
  min-height: 310px;
  padding: clamp(52px,6vw,76px) max(clamp(24px,6vw,92px), calc((100vw - 1540px) / 2 + 28px));
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 25%, rgba(208,178,117,.15), transparent 25rem),
    linear-gradient(110deg, rgba(7,25,35,.995), rgba(12,38,50,.965)),
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(255,255,255,.035) 96px),
    var(--navy);
}
.forum-hero::after {
  content: "FORUM";
  position: absolute;
  right: -22px;
  bottom: -64px;
  color: rgba(255,255,255,.025);
  font: 700 clamp(130px,18vw,260px)/1 var(--font-editorial);
  pointer-events: none;
}
.forum-hero > * { position: relative; z-index: 1; }
.forum-hero .eyebrow { font: 800 10.5px/1.2 var(--font-code); letter-spacing: .09em; }
.forum-hero h1 {
  max-width: 880px;
  margin: 20px 0 15px;
  font: 400 clamp(44px,5.8vw,70px)/.97 var(--font-editorial);
  letter-spacing: -.03em;
}
.forum-hero p { max-width: 720px; color: #c2cdd2; font: 16.5px/1.68 var(--font-editorial); }
.hero-actions { margin-top: 27px; }

.button {
  min-height: 46px;
  padding: 0 17px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  letter-spacing: .05em;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button.secondary { color: var(--ink); border-color: rgba(19,33,43,.3); background: transparent; }
.forum-hero .button.secondary {
  color: #f6e4ba;
  border-color: rgba(208,178,117,.68);
  background: rgba(208,178,117,.085);
  box-shadow: none;
}
.forum-hero .button.secondary:hover { color: var(--navy); border-color: var(--gold); background: var(--gold); }
.forum-hero .button.secondary:focus-visible { color: var(--navy); border-color: #ffe6a8; background: #ffe6a8; outline-color: white; }
.button.small { min-height: 44px; font-size: 9px; }
.access-label { font-size: 10.5px; letter-spacing: .075em; }
.form-note { font-size: 13.5px; }

.forum-shell {
  width: min(1240px, calc(100% - clamp(32px,7vw,108px)));
  padding: 48px 0 84px;
}
.forum-shell.narrow { width: min(780px, calc(100% - 32px)); padding-top: 58px; }
.forum-shell.narrow .forum-panel {
  border-top: 3px solid var(--rust);
  box-shadow: var(--shadow-soft);
}
.forum-tabs {
  gap: 10px;
  margin-bottom: 38px;
  border: 0;
  background: transparent;
}
.forum-tabs a {
  min-height: 112px;
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,254,250,.92);
  box-shadow: 0 8px 24px rgba(17,29,40,.035);
}
.forum-tabs a:last-child { border-right: 1px solid var(--line); }
.forum-tabs a:hover { border-color: rgba(158,64,43,.34); background: #fffefa; }
.forum-tabs a.active { border-color: rgba(208,178,117,.44); background: var(--navy); box-shadow: inset 0 -3px 0 var(--gold), 0 13px 34px rgba(7,25,35,.15); }
.forum-tabs span { font: 800 10px/1 var(--font-code); letter-spacing: .075em; }
.forum-tabs strong { font: 400 28px/1.05 var(--font-editorial); }
.forum-tabs small { font-size: 12px; line-height: 1.5; }

.forum-toolbar { margin-bottom: 25px; }
.forum-toolbar h1 { font: 400 clamp(34px,4.5vw,50px)/1 var(--font-editorial); letter-spacing: -.025em; }
.forum-toolbar p { color: var(--ink-soft); font-size: 13.5px; }
.forum-search { gap: 8px; }
.forum-search input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(19,33,43,.27);
  border-radius: var(--radius-xs);
  background: #fff;
  font-size: 16px;
}
.forum-search input + .button { border-radius: var(--radius-xs); }

.category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.category-card {
  min-height: 158px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: rgba(255,254,250,.95);
  box-shadow: 0 8px 24px rgba(17,29,40,.035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(17,29,40,.075); }
.category-card span { font: 800 10px/1 var(--font-code); }
.category-card h2 { margin-top: 25px; font: 400 22px/1.15 var(--font-editorial); }
.category-card p { font-size: 12px; line-height: 1.55; }

.section-label h2 { font: 400 29px/1.1 var(--font-editorial); }
.section-label span { font: 800 9.5px/1 var(--font-code); }
.thread-list { border-top-color: rgba(19,33,43,.55); }
.thread-row {
  margin-top: 7px;
  padding: 20px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,254,250,.74);
}
.thread-row:hover { border-color: rgba(158,64,43,.28); background: #fffefa; }
.thread-main strong { font: 400 20px/1.3 var(--font-editorial); }
.thread-main small, .thread-stat { font-size: 10.5px; }
.thread-category { font: 800 9.5px/1 var(--font-code); }

.forum-panel {
  border-radius: var(--radius-md);
  background: rgba(255,254,250,.97);
}
.forum-panel h1, .forum-panel h2 { font-family: var(--font-editorial); }
.forum-panel h1 { font-size: clamp(36px,4.6vw,50px); letter-spacing: -.025em; }
.forum-panel p, .forum-panel li { font-size: 14.5px; }
.forum-form label { font-size: 11px; letter-spacing: .045em; }
.forum-form input, .forum-form select, .forum-form textarea,
.research-form input, .research-form select, .research-form textarea,
.research-inline-filter select {
  border-radius: var(--radius-xs);
  background: #fff;
}
.forum-form small { font-size: 11px; }
.auth-links a { font-size: 12.5px; }
.forum-alert { border-radius: var(--radius-xs); font-size: 13.5px; }

.thread-header h1 { font: 400 clamp(36px,5.2vw,58px)/1 var(--font-editorial); letter-spacing: -.025em; }
.post {
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,254,250,.96);
}
.post-author { background: #f7f3eb; }
.post-author strong { font: 400 18px/1.2 var(--font-editorial); }
.post-body { font: 16.5px/1.72 var(--font-editorial); }
.post-moderation button, .member-actions button, .moderation-actions button { border-radius: var(--radius-xs); font-size: 9px; }

.account-facts, .research-jump-nav { border-radius: var(--radius-sm); overflow: hidden; }
.account-facts dd { font: 400 19px/1.2 var(--font-editorial); }
.research-workspace-hero {
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 80% 20%, rgba(208,178,117,.12), transparent 22rem),
    linear-gradient(112deg, #071923, #0d2a38);
  box-shadow: inset 0 -3px 0 var(--gold), var(--shadow-deep);
}
.research-workspace-hero h1 { font: 400 clamp(42px,6vw,68px)/.97 var(--font-editorial); }
.research-workspace-hero p { font: 15.5px/1.7 var(--font-editorial); }
.research-workspace-account { border-radius: var(--radius-sm); }
.research-jump-nav { gap: 7px; padding: 7px; border: 1px solid var(--line); background: rgba(255,254,250,.95); box-shadow: var(--shadow-soft); }
.research-jump-nav a { min-height: 60px; border: 0; border-radius: var(--radius-xs); font-size: 10.5px; }
.research-jump-nav a:last-child { border-right: 0; }
.research-section > .section-label h2 { font: 400 clamp(34px,4.5vw,50px)/1 var(--font-editorial); }
.research-panel, .research-collection-card, .research-item-card,
.report-card, .member-card {
  border-radius: var(--radius-sm);
  background: rgba(255,254,250,.96);
  box-shadow: 0 8px 25px rgba(17,29,40,.035);
}
.research-panel > header h3 { font: 400 27px/1.1 var(--font-editorial); }
.research-item-card > header h4, .research-item-card > h4 { font: 400 22px/1.2 var(--font-editorial); }
.research-type-badge, .research-status-badge, .member-badges span { border-radius: 999px; }
.filter-tabs a, .pagination a, .pagination span { border-radius: var(--radius-xs); }

.forum-footer {
  min-height: 112px;
  padding-right: max(clamp(24px,6vw,92px), calc((100vw - 1540px) / 2 + 28px));
  padding-left: max(clamp(24px,6vw,92px), calc((100vw - 1540px) / 2 + 28px));
  border-top: 1px solid rgba(208,178,117,.16);
  color: #aebbc2;
  background: #04121b;
  font-size: 10.5px;
}
.forum-footer a { color: #f1e5ca; }

@media (min-width: 1480px) {
  .category-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (max-width: 1160px) {
  .forum-header { min-height: 74px; padding-top: 10px; padding-bottom: 10px; }
  .forum-mobile-menu summary { border-radius: var(--radius-xs); }
  .forum-header .forum-mobile-menu nav { border-radius: var(--radius-sm); }
  .research-workspace-hero { min-height: 0; }
}

@media (max-width: 650px) {
  .forum-header { min-height: 70px; padding-right: 16px; padding-left: 16px; }
  .forum-brand { gap: 10px; }
  .forum-brand-mark { width: 40px; height: 40px; border-radius: 9px; }
  .forum-brand strong { font-size: 15px; }
  .forum-hero { min-height: 0; padding: 44px 20px; }
  .forum-hero h1 { font-size: clamp(39px,11.6vw,50px); }
  .forum-hero p { font-size: 15.5px; }
  .forum-shell, .forum-shell.narrow { width: min(100% - 24px, 1240px); padding-top: 34px; }
  .forum-tabs { grid-template-columns: 1fr; gap: 8px; }
  .forum-tabs a { min-height: 100px; border: 1px solid var(--line); }
  .forum-tabs a:last-child { border-bottom: 1px solid var(--line); }
  .forum-search { gap: 8px; }
  .forum-search input { border-right: 1px solid rgba(19,33,43,.27); }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 135px; }
  .forum-panel { padding: 25px 19px; border-radius: var(--radius-sm); }
  .post { border-radius: var(--radius-sm); }
  .post-author { padding: 18px; }
  .post-content { padding: 20px 18px; }
  .research-workspace-hero { padding: 30px 20px; border-radius: var(--radius-sm); }
  .research-jump-nav { grid-template-columns: 1fr; }
  .research-jump-nav a { min-height: 54px; }
  .research-panel { padding: 21px 18px; }
  .forum-footer { padding: 27px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .category-card { transition: none; }
}

/* --------------------------------------------------------------------------
   Forum presentation pass: polished public-record reading room
   -------------------------------------------------------------------------- */

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    linear-gradient(rgba(15,42,56,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,42,56,.014) 1px, transparent 1px),
    radial-gradient(circle at 11% 4%, rgba(208,178,117,.12), transparent 30rem),
    linear-gradient(180deg, #faf8f3 0, var(--paper) 34rem);
  background-size: 36px 36px, 36px 36px, auto, auto;
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

.forum-header {
  isolation: isolate;
}

.forum-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(208,178,117,.56) 50%, transparent 96%);
}

.forum-brand-mark {
  position: relative;
  overflow: hidden;
}

.forum-brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(208,178,117,.2);
  border-radius: 6px;
}

.forum-brand-copy small {
  color: #adbac0;
  font-family: var(--font-code);
  letter-spacing: .1em;
}

.forum-header nav a,
.forum-mobile-menu summary {
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.forum-header .email-nav {
  box-shadow: 0 7px 20px rgba(0,0,0,.18);
}

.forum-flash {
  position: relative;
  z-index: 4;
  border-bottom-width: 1px;
  box-shadow: 0 8px 24px rgba(11,25,34,.06);
  font-weight: 650;
  text-align: center;
}

.forum-hero {
  display: grid;
  min-height: 350px;
  align-content: center;
  border-bottom: 1px solid rgba(208,178,117,.26);
}

.forum-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 34px;
  right: max(24px, 5vw);
  width: clamp(150px, 20vw, 280px);
  aspect-ratio: 1;
  border: 1px solid rgba(208,178,117,.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 14px rgba(208,178,117,.025),
    0 0 0 15px rgba(208,178,117,.07),
    inset 0 0 0 20px rgba(208,178,117,.018);
  pointer-events: none;
}

.forum-hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
}

.forum-hero .eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.forum-hero h1 {
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0,0,0,.22);
}

.forum-hero p {
  text-wrap: pretty;
}

.hero-actions {
  gap: 12px;
}

.forum-hero .button:not(.secondary) {
  color: #fffdf8;
  border-color: #a94b35;
  background: #a94b35;
  box-shadow: 0 10px 24px rgba(0,0,0,.19);
}

.forum-hero .button:not(.secondary):hover {
  color: white;
  border-color: #c35b42;
  background: #c35b42;
}

/* The archive CTA is intentionally solid: its earlier translucent treatment
   was too quiet against the hero on several phone displays. */
.forum-hero .button.secondary {
  color: #061721;
  border-color: #e7ca8e;
  background: #e7ca8e;
  box-shadow: 0 10px 24px rgba(0,0,0,.19);
}

.forum-hero .button.secondary:hover,
.forum-hero .button.secondary:focus-visible {
  color: #031019;
  border-color: #f6dfad;
  background: #f6dfad;
}

.button {
  position: relative;
  overflow: hidden;
  font-weight: 750;
  box-shadow: 0 5px 14px rgba(12,28,38,.08);
}

.button.secondary {
  box-shadow: none;
}

.button:active {
  transform: translateY(0);
}

.forum-shell {
  position: relative;
}

.forum-tabs {
  position: relative;
  margin-top: -68px;
  margin-bottom: 50px;
}

.forum-tabs a {
  position: relative;
  overflow: hidden;
  padding-right: 62px;
  backdrop-filter: blur(16px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.forum-tabs a::after {
  content: "\2192";
  position: absolute;
  right: 24px;
  bottom: 23px;
  color: var(--rust);
  font: 400 25px/1 var(--font-editorial);
  transition: transform .2s ease;
}

.forum-tabs a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.forum-tabs a:hover::after {
  transform: translateX(4px);
}

.forum-tabs a.active::after {
  color: var(--gold);
}

.forum-toolbar {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(19,33,43,.14);
}

.forum-toolbar > span {
  display: inline-flex;
  min-height: 36px;
  padding: 0 13px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(158,64,43,.24);
  border-radius: 999px;
  color: var(--rust-dark);
  background: rgba(158,64,43,.065);
  font: 750 10px/1 var(--font-code);
  letter-spacing: .065em;
  text-transform: uppercase;
  white-space: nowrap;
}

.forum-toolbar h1,
.section-label h2,
.forum-panel h1,
.forum-panel h2,
.thread-header h1 {
  text-wrap: balance;
}

.forum-search {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(19,33,43,.12);
  border-radius: var(--radius-sm);
  background: rgba(255,254,250,.84);
  box-shadow: 0 10px 30px rgba(11,25,34,.055);
}

.forum-search input {
  border-color: transparent;
  background: transparent;
}

.forum-search input:focus {
  border-color: rgba(158,64,43,.44);
  background: white;
  box-shadow: 0 0 0 3px rgba(158,64,43,.09);
}

.category-grid {
  counter-reset: category;
  gap: 14px;
}

.category-card {
  position: relative;
  counter-increment: category;
  overflow: hidden;
  border-top: 3px solid rgba(158,64,43,.72);
}

.category-card::before {
  content: counter(category, decimal-leading-zero);
  position: absolute;
  top: 17px;
  right: 18px;
  color: rgba(19,33,43,.13);
  font: 500 27px/1 var(--font-editorial);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(208,178,117,.18);
  border-radius: 50%;
}

.category-card:hover {
  border-top-color: var(--rust);
}

.category-card h2 {
  max-width: calc(100% - 28px);
  text-wrap: balance;
}

.section-label {
  margin-top: 38px;
}

.section-label::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  order: 1;
  background: linear-gradient(90deg, rgba(19,33,43,.18), transparent);
}

.section-label h2 {
  order: 0;
}

.section-label > span {
  order: 2;
}

.thread-list {
  display: grid;
  gap: 9px;
  border-top: 0;
}

.thread-row {
  position: relative;
  margin-top: 0;
  padding: 22px 18px 22px 22px;
  overflow: hidden;
  box-shadow: 0 7px 22px rgba(11,25,34,.035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.thread-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: transparent;
  transition: background-color .18s ease;
}

.thread-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 30px rgba(11,25,34,.07);
}

.thread-row:hover::before {
  background: var(--rust);
}

.thread-main {
  min-width: 0;
}

.thread-main strong {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.thread-stat {
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.thread-stat strong {
  color: var(--ink);
  font: 600 20px/1 var(--font-editorial);
}

.empty-state {
  border: 1px dashed rgba(19,33,43,.22);
  border-radius: var(--radius-sm);
  background: rgba(255,254,250,.58);
  font-family: var(--font-editorial);
  font-size: 15px;
}

.forum-shell.narrow .forum-panel {
  position: relative;
  overflow: hidden;
}

.forum-shell.narrow .forum-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 116px;
  height: 116px;
  border-radius: 0 0 0 100%;
  background: radial-gradient(circle at 100% 0, rgba(208,178,117,.19), transparent 68%);
  pointer-events: none;
}

.forum-panel > :first-child {
  position: relative;
}

.forum-panel h1 {
  margin-bottom: 18px;
  color: #0b202b;
}

.forum-panel h2 {
  line-height: 1.12;
}

.forum-panel p,
.forum-panel li {
  max-width: 72ch;
}

.forum-form {
  gap: 20px;
}

.forum-form label {
  gap: 8px;
  color: #1a2d37;
}

.forum-form input,
.forum-form select,
.forum-form textarea {
  min-height: 50px;
  border-color: rgba(19,33,43,.2);
  box-shadow: inset 0 1px 2px rgba(11,25,34,.025);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.forum-form textarea {
  min-height: 210px;
}

.forum-form input:hover,
.forum-form select:hover,
.forum-form textarea:hover {
  border-color: rgba(19,33,43,.38);
}

.forum-form input:focus,
.forum-form select:focus,
.forum-form textarea:focus {
  border-color: var(--rust);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(158,64,43,.1);
}

.forum-form .check-label {
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid rgba(19,33,43,.12);
  border-radius: var(--radius-xs);
  background: #f8f5ee;
}

.forum-form .check-label input {
  min-height: 20px;
}

.auth-links {
  margin-top: 27px;
}

.auth-links a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.auth-links a:hover {
  color: var(--rust);
  text-decoration-thickness: 2px;
}

.forum-alert {
  border-left-width: 4px;
  box-shadow: 0 8px 20px rgba(11,25,34,.04);
}

.thread-header {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom-color: rgba(19,33,43,.35);
}

.thread-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: min(150px, 35%);
  height: 3px;
  background: var(--rust);
}

.post {
  box-shadow: 0 8px 24px rgba(11,25,34,.04);
}

.post-author {
  background:
    linear-gradient(180deg, rgba(208,178,117,.08), transparent 100px),
    #f7f3eb;
}

.avatar,
.account-avatar {
  border: 3px solid #fffefa;
  box-shadow: 0 0 0 1px rgba(19,33,43,.14), 0 7px 18px rgba(11,25,34,.1);
}

.avatar-fallback {
  color: var(--rust-dark);
  background: linear-gradient(145deg, #f4e7d4, #fffefa);
}

.post-content time {
  font-family: var(--font-code);
  letter-spacing: .025em;
}

.post-body {
  max-width: 79ch;
  color: #263944;
}

.account-facts {
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: 0 9px 24px rgba(11,25,34,.035);
}

.account-facts div {
  background: #f8f5ee;
}

.account-facts dt {
  font-family: var(--font-code);
  font-weight: 750;
  letter-spacing: .06em;
}

.account-facts dd,
.member-card > header strong,
.member-card > header small {
  overflow-wrap: anywhere;
}

.member-card > header > div:first-child {
  min-width: 0;
}

.research-panel,
.research-collection-card,
.research-item-card,
.report-card,
.member-card {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.research-item-card:hover,
.research-collection-card:hover,
.member-card:hover {
  border-color: rgba(158,64,43,.24);
  box-shadow: 0 13px 32px rgba(11,25,34,.065);
}

.forum-footer {
  position: relative;
  margin-top: auto;
  overflow: hidden;
}

.forum-footer::before {
  content: "PUBLIC RECORD \00B7  SOURCE FIRST";
  position: absolute;
  right: 4vw;
  bottom: -21px;
  color: rgba(255,255,255,.025);
  font: 700 clamp(42px,7vw,90px)/1 var(--font-editorial);
  white-space: nowrap;
  pointer-events: none;
}

.forum-footer > * {
  position: relative;
  z-index: 1;
}

.forum-footer a {
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .forum-header nav a:hover {
    transform: translateY(-1px);
  }
}

body.forum-feedback-open { overflow: hidden; }
.feedback-modal-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  padding: 16px;
  place-items: center;
  overflow: auto;
  background: rgba(4, 15, 22, .78);
  backdrop-filter: blur(7px);
}
.feedback-dialog {
  position: relative;
  display: flex;
  width: min(710px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(198, 166, 99, .68);
  border-radius: 16px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
}
.feedback-dialog::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rust), var(--gold), #ead69d);
  content: "";
}
.feedback-dialog-header {
  display: flex;
  min-height: 102px;
  padding: 25px 27px 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: white;
  background: radial-gradient(circle at 82% 20%, rgba(198,166,99,.13), transparent 34%), var(--navy);
}
.feedback-dialog-header > div { min-width: 0; }
.feedback-dialog-header span {
  color: var(--gold);
  font: 800 9px/1.3 monospace;
  letter-spacing: .12em;
}
.feedback-dialog-header h2 {
  margin: 7px 0 0;
  color: white;
  font: 400 clamp(27px, 4vw, 38px)/1.06 Georgia, serif;
}
.feedback-close {
  min-width: 76px;
  min-height: 44px;
  padding: 0 13px;
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font: 800 9px/1 monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.feedback-close:hover,
.feedback-close:focus-visible { color: var(--navy); background: var(--gold); outline: none; }
.feedback-dialog-body {
  padding: 26px 28px 24px;
  overflow: auto;
  background: linear-gradient(rgba(32,42,47,.025) 1px, transparent 1px) 0 0 / 100% 32px, var(--white);
}
.feedback-intro { margin: 0 0 21px; color: #142731; font: 400 19px/1.5 Georgia, serif; }
.feedback-form { display: grid; gap: 12px; }
.feedback-form label { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.feedback-form label span { color: #182c36; font: 800 10px/1.35 monospace; text-transform: uppercase; letter-spacing: .06em; }
.feedback-form label small { color: var(--muted); font: 700 10px/1.4 monospace; }
.feedback-form textarea {
  width: 100%;
  min-height: 210px;
  max-height: 48vh;
  padding: 16px 17px;
  resize: vertical;
  border: 1px solid rgba(32,42,47,.25);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font: 16px/1.58 Arial, sans-serif;
}
.feedback-form textarea:focus { border-color: var(--rust); outline: 3px solid rgba(178,74,47,.14); outline-offset: 1px; }
.feedback-privacy { margin: 0; color: var(--muted); font: 600 10.5px/1.55 monospace; }
.feedback-actions { display: flex; margin-top: 4px; justify-content: flex-end; gap: 9px; }
.feedback-actions button,
.feedback-confirmation button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  cursor: pointer;
  font: 800 9.5px/1.2 monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.feedback-dismiss { border: 1px solid rgba(32,42,47,.28); color: var(--ink-soft); background: transparent; }
.feedback-submit,
.feedback-confirmation button { border: 1px solid var(--navy); color: white; background: var(--navy); box-shadow: 0 4px 0 var(--gold); }
.feedback-actions button:hover,
.feedback-actions button:focus-visible,
.feedback-confirmation button:hover,
.feedback-confirmation button:focus-visible { border-color: var(--rust); outline: 2px solid rgba(178,74,47,.2); outline-offset: 2px; }
.feedback-actions button:disabled { cursor: wait; opacity: .62; }
.feedback-status { min-height: 20px; margin: 13px 0 0; color: var(--rust-dark); font: 700 11px/1.45 monospace; }
.feedback-status:empty { min-height: 0; margin-top: 0; }
.feedback-confirmation {
  display: grid;
  min-height: 260px;
  padding: 28px;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px solid rgba(198,166,99,.42);
  border-radius: 12px;
  background: rgba(243,239,231,.75);
}
.feedback-confirmation > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: white; background: var(--rust); font: 700 22px/1 Georgia, serif; }
.feedback-confirmation h3 { margin: 14px 0 5px; font: 400 28px/1.1 Georgia, serif; }
.feedback-confirmation p { max-width: 430px; margin: 0 0 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }

@media (max-width: 540px) {
  .feedback-modal-backdrop { padding: 8px; align-items: end; }
  .feedback-dialog { width: 100%; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 13px; }
  .feedback-dialog-header { min-height: 82px; padding: 20px 18px 16px; gap: 12px; }
  .feedback-dialog-header h2 { font-size: 26px; }
  .feedback-close { min-width: 66px; padding-inline: 9px; }
  .feedback-dialog-body { padding: 20px 18px 16px; }
  .feedback-intro { margin-bottom: 17px; font-size: 17px; line-height: 1.45; }
  .feedback-form label { display: grid; gap: 3px; }
  .feedback-form textarea { min-height: 180px; max-height: 38vh; }
  .feedback-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-actions button { width: 100%; padding-inline: 9px; }
  .feedback-privacy { font-size: 9.5px; }
}

@media (max-height: 560px) {
  .feedback-modal-backdrop { align-items: start; }
  .feedback-dialog-header { min-height: 68px; padding-block: 14px 12px; }
  .feedback-dialog-body { padding-block: 15px 13px; }
  .feedback-intro { margin-bottom: 12px; font-size: 16px; }
  .feedback-form textarea { min-height: 115px; max-height: 28vh; }
}

@media (max-width: 1160px) {
  .forum-mobile-menu summary {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  }

  .forum-header .forum-mobile-menu nav {
    max-height: min(75vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .forum-header .forum-mobile-menu nav a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .forum-tabs {
    margin-top: -54px;
  }
}

@media (min-width: 1400px) {
  .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .forum-hero::before,
  .forum-hero::after {
    opacity: .55;
  }

  .forum-tabs {
    margin-top: -45px;
  }

  .forum-toolbar .button {
    width: 100%;
  }

  .account-grid {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .account-avatar {
    width: 112px;
    height: 112px;
  }
}

@media (max-width: 650px) {
  .forum-header {
    box-shadow: 0 7px 24px rgba(2,11,17,.24);
  }

  .forum-brand-copy small {
    font-size: 8px;
  }

  .forum-hero {
    min-height: 300px;
    padding-top: 46px;
    padding-bottom: 70px;
  }

  .forum-hero h1 {
    max-width: 11ch;
    line-height: .98;
  }

  .forum-hero p {
    line-height: 1.6;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 50px;
  }

  .forum-tabs {
    margin-top: -48px;
    margin-bottom: 38px;
  }

  .forum-tabs a {
    padding-right: 56px;
  }

  .forum-toolbar {
    padding-bottom: 17px;
  }

  .forum-toolbar > span {
    align-self: flex-start;
  }

  .report-card header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .forum-search {
    padding: 6px;
  }

  .forum-search .button {
    min-height: 50px;
  }

  .section-label {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .section-label::after {
    display: none;
  }

  .category-card::before {
    font-size: 23px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .thread-row {
    padding: 19px 17px 19px 20px;
  }

  .thread-stat {
    padding-left: 0;
    border-left: 0;
  }

  .forum-panel h1 {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .forum-panel p,
  .forum-panel li {
    font-size: 14px;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions .button {
    width: 100%;
  }

  .auth-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-links a {
    justify-content: flex-start;
  }

  .post-author {
    background: #f7f3eb;
  }

  .post-body {
    font-size: 16px;
    line-height: 1.7;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-avatar {
    width: 96px;
    height: 96px;
  }

  .forum-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 2px 16px;
  }

  .forum-footer a {
    min-height: 46px;
  }
}

@media (max-width: 380px) {
  .forum-brand-copy small {
    display: none;
  }

  .forum-mobile-menu summary {
    min-width: 68px;
  }

  .forum-hero {
    padding-right: 17px;
    padding-left: 17px;
  }

  .forum-shell,
  .forum-shell.narrow {
    width: calc(100% - 18px);
  }

  .forum-tabs a {
    padding: 18px 50px 18px 19px;
  }

  .forum-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .forum-footer nav {
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  .forum-header,
  .forum-hero,
  .forum-footer,
  .forum-tabs a.active {
    border: 1px solid CanvasText;
  }

  .category-card,
  .thread-row,
  .forum-panel {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .forum-header nav a,
  .forum-tabs a,
  .forum-tabs a::after,
  .thread-row,
  .thread-row::before,
  .forum-form input,
  .forum-form select,
  .forum-form textarea,
  .research-panel,
  .research-collection-card,
  .research-item-card,
  .report-card,
  .member-card {
    transition: none;
  }
}
