:root {
  --ink: #171e1b;
  --ink-soft: #454f49;
  --muted: #616a63;
  --muted-light: #62695f;
  --paper: #f3f2ea;
  --paper-deep: #ebe9df;
  --card: #fbfaf5;
  --white: #ffffff;
  --dark: #2c4257;
  --dark-raised: #35506a;
  --line: #d7d5c8;
  --line-strong: #c3c1b2;
  --coral: #b23a2e;
  --coral-dark: #9c3125;
  --coral-soft: #f3ded9;
  --lime: #d8b15a;
  --lime-soft: #f3ead5;
  --blue: #35506a;
  --blue-soft: #e4eaee;
  --violet: #6a5578;
  --violet-soft: #ece6f0;
  --green: #2f6b4f;
  --green-soft: #e1ece5;
  --red: #b23a2e;
  --red-soft: #f3ded9;
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(23, 30, 27, .4);
  --shadow-soft: 0 1px 0 var(--line);
  --font-display: "Space Grotesk", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--ink);
  background: var(--lime);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul,
ol {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 11px 15px;
  color: var(--dark);
  background: var(--lime);
  border: 2px solid var(--dark);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: block;
  margin: 0;
  color: var(--muted-light);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(243, 243, 237, .96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(calc(100% - 40px), 1480px);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: var(--lime);
  border: 1px solid var(--dark);
  border-radius: 12px 12px 4px 12px;
  box-shadow: 2px 2px 0 var(--dark);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  transform: rotate(-2deg);
}

.brand-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.brand-name strong {
  color: var(--coral-dark);
}

.origin-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px 4px 5px;
  color: #6d3029;
  background: var(--coral-soft);
  border: 1px solid #efbbb2;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.origin-badge a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.origin-glyph {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--coral-dark);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 900;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.primary-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 750;
  transition: color .18s ease, background .18s ease;
}

.primary-nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.primary-nav a.is-current {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 9px rgba(24, 32, 29, .06);
}

.header-account {
  min-width: 98px;
  display: flex;
  justify-content: flex-end;
}

.mobile-primary-nav {
  display: none;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--dark);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
}

.auth-link-small {
  min-height: 40px;
  padding: 0 15px;
}

.signed-in-account {
  max-width: 190px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-avatar,
.author-avatar {
  display: grid;
  place-items: center;
  color: var(--dark);
  background: var(--lime);
  border: 1px solid var(--dark);
  font-weight: 900;
}

.account-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  font-size: 9px;
}

.account-name {
  max-width: 82px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  padding: 4px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.text-button:hover {
  color: var(--ink);
}

.service-banner {
  position: relative;
  z-index: 5;
  width: min(calc(100% - 40px), 1420px);
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 16px auto 0;
  padding: 14px 16px;
  color: #5f4b20;
  background: #fff1c5;
  border: 1px solid #e5ce88;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.service-banner > div {
  flex: 1;
}

.service-banner strong {
  display: block;
  font-size: 12px;
}

.service-banner p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.state-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  color: var(--white);
  background: #8b6a1e;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.state-icon-error {
  background: var(--red);
}

.forum-hero {
  width: min(calc(100% - 40px), 1420px);
  min-height: 470px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, .7fr);
  gap: 28px;
  align-items: stretch;
  margin: 20px auto 30px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 78px);
  color: var(--white);
  background: var(--dark);
  border: 1px solid var(--dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy .eyebrow {
  color: #a5afaa;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 14px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.hero-copy h1 span {
  color: var(--lime);
}

.hero-intro {
  max-width: 790px;
  margin-bottom: 0;
  color: #b6c0bb;
  font-size: 14px;
  line-height: 1.75;
}

.hero-policy {
  max-width: 760px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0 0;
  padding: 12px 14px;
  color: #c7d0cb;
  background: var(--dark-raised);
  border: 1px solid #34403b;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.55;
}

.hero-policy > span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  color: var(--dark);
  background: var(--lime);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-lanes {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.lanes-heading h2 {
  margin: 9px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.5vw, 34px);
  letter-spacing: -.05em;
  line-height: 1.08;
}

.hero-lanes ul {
  display: grid;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.hero-lanes li {
  min-height: 51px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.hero-lanes li > span {
  color: var(--coral-dark);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
}

.hero-lanes li strong {
  font-family: var(--font-display);
  font-size: 13px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled,
.button[aria-busy="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  color: var(--white);
  background: var(--coral-dark);
}

.button-primary:hover:not(:disabled) {
  background: #b63b31;
}

.button-dark {
  color: var(--white);
  background: var(--dark);
}

.button-outline {
  color: var(--ink);
  background: var(--card);
  border-color: var(--line-strong);
}

.button-primary-outline {
  color: var(--white);
  background: transparent;
  border-color: #53605a;
}

.button-quiet {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.button-small {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 10px;
}

.button-full {
  width: 100%;
}

.forum-layout {
  width: min(calc(100% - 40px), 1420px);
  display: grid;
  grid-template-columns: 220px minmax(330px, .85fr) minmax(430px, 1.15fr);
  gap: 17px;
  align-items: start;
  margin: 0 auto 62px;
}

.forum-sidebar,
.thread-browser,
.reader-panel,
.publication-policy {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.forum-sidebar {
  overflow: hidden;
}

.sidebar-sticky {
  position: sticky;
  top: 96px;
}

.category-nav {
  padding: 21px 13px 15px;
}

.category-nav > .eyebrow {
  margin: 0 10px 10px;
}

.category-button {
  position: relative;
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #68716b;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
  transition: color .16s ease, background .16s ease;
}

.category-button > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-button > span:last-child {
  color: #6f736f;
  font-size: 9px;
  font-weight: 900;
  text-align: right;
}

.category-button:hover {
  color: var(--ink);
  background: var(--paper);
}

.category-button.is-active {
  color: var(--ink);
  background: var(--lime-soft);
}

.category-button.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 21px;
  background: var(--coral-dark);
  border-radius: 0 3px 3px 0;
}

.category-button.is-active > span:last-child {
  color: var(--coral-dark);
}

.guideline-card {
  margin: 0 13px 13px;
  padding: 17px;
  background: var(--dark);
  border-radius: 14px;
}

.guideline-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: var(--lime);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 900;
}

.guideline-card h2 {
  margin: 13px 0 6px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: -.03em;
}

.guideline-card p {
  margin-bottom: 11px;
  color: #a4b0aa;
  font-size: 9px;
  line-height: 1.6;
}

.guideline-card a {
  color: var(--lime);
  font-size: 9px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-links {
  display: grid;
  padding: 15px 21px 20px;
  border-top: 1px solid var(--line);
}

.sidebar-links .eyebrow {
  margin-bottom: 8px;
}

.sidebar-links a {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid #eceee7;
  font-size: 9px;
  font-weight: 750;
}

.sidebar-links a:hover {
  color: var(--ink);
}

.panel {
  min-width: 0;
  overflow: hidden;
}

.thread-browser {
  padding: 22px 18px 18px;
}

.browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.browser-header h2 {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -.045em;
}

.search-field {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  background: #f5f5f0;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .16s ease, background .16s ease;
}

.search-field:focus-within {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(86, 109, 229, .12);
}

.search-icon {
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
}

.search-field input {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
}

.search-field input::placeholder {
  color: #6b706c;
}

.search-field kbd {
  min-width: 22px;
  min-height: 22px;
  display: grid;
  place-items: center;
  color: #707672;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
}

.results-summary {
  min-height: 31px;
  display: flex;
  align-items: center;
  margin: 9px 2px 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.state-panel {
  display: grid;
  justify-items: center;
  padding: 48px 20px;
  color: var(--muted);
  background: #f7f7f2;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
}

.state-panel strong {
  margin-top: 11px;
  color: var(--ink);
  font-size: 12px;
}

.state-panel p {
  max-width: 360px;
  margin: 5px 0 13px;
  font-size: 10px;
  line-height: 1.55;
}

.state-panel .state-icon {
  margin: 0;
}

.loading-ring {
  width: 28px;
  height: 28px;
  border: 3px solid #d8ddd4;
  border-top-color: var(--coral-dark);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.thread-list,
.reply-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.thread-list {
  gap: 8px;
}

.thread-list li,
.reply-list li {
  min-width: 0;
}

.thread-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease;
}

.thread-card:hover {
  border-color: #b9c0b6;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.thread-card.is-selected {
  background: #fbfdef;
  border-color: #91ad48;
  box-shadow: inset 3px 0 0 var(--coral-dark);
}

.thread-card-top,
.thread-card-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thread-card-top {
  flex-wrap: wrap;
}

.thread-card-bottom {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 10px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.thread-card-bottom .thread-stat:nth-child(2) {
  margin-left: auto;
}

.thread-category,
.category-badge,
.approved-badge,
.reply-count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
}

.thread-category {
  padding: 5px 7px;
  color: #4d5c55;
  background: var(--paper);
  border: 1px solid var(--line);
}

.thread-category.category-strategy,
.category-badge.category-strategy {
  color: #485bbd;
  background: var(--blue-soft);
}

.thread-category.category-quant,
.category-badge.category-quant {
  color: #a63c31;
  background: var(--coral-soft);
}

.thread-category.category-varc,
.category-badge.category-varc {
  color: #62419b;
  background: var(--violet-soft);
}

.thread-category.category-dilr,
.category-badge.category-dilr {
  color: #52711a;
  background: var(--lime-soft);
}

.thread-category.category-mock-results,
.category-badge.category-mock-results {
  color: #856029;
  background: #fff0cf;
}

.thread-category.category-community,
.category-badge.category-community {
  color: #3b6254;
  background: var(--green-soft);
}

.thread-published {
  margin-left: auto;
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 700;
}

.thread-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.025em;
  line-height: 1.32;
}

.thread-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thread-byline {
  color: #778079;
  font-size: 8px;
  font-weight: 700;
}

.thread-stat {
  white-space: nowrap;
}

.thread-open-label {
  color: var(--coral-dark);
  font-weight: 850;
}

.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.load-more p {
  margin: 0;
  color: var(--muted-light);
  font-size: 8px;
}

.reader-panel {
  position: sticky;
  top: 93px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.reader-placeholder {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px;
  text-align: center;
}

.reader-placeholder-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--dark);
  background: var(--lime);
  border: 1px solid var(--dark);
  border-radius: 17px 17px 5px 17px;
  font-size: 22px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.reader-placeholder h2 {
  max-width: 370px;
  margin: 10px 0;
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -.045em;
  line-height: 1.16;
}

.reader-placeholder > p:last-child {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.reader-state {
  margin: 20px;
}

.reader-content {
  min-width: 0;
}

.reader-header {
  position: relative;
  padding: 25px 25px 20px;
  border-bottom: 1px solid var(--line);
}

.reader-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding-right: 90px;
}

.category-badge {
  padding: 6px 8px;
}

.approved-badge {
  gap: 4px;
  padding: 6px 8px;
  color: #2a6d4e;
  background: var(--green-soft);
}

.report-button {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  color: #7d504b;
  background: var(--coral-soft);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 850;
}

.report-button:hover {
  color: #6f2b23;
  background: #ffd8d0;
}

.reader-header h2 {
  margin: 15px 0 17px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -.05em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.reader-byline {
  display: grid;
  grid-template-columns: 36px auto 1fr;
  align-items: center;
  gap: 9px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 9px;
}

.reader-byline > span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.reader-byline strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-byline small {
  color: var(--muted-light);
  font-size: 7px;
  font-weight: 750;
  text-transform: uppercase;
}

.reader-byline time {
  justify-self: end;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.post-body {
  padding: 24px 25px;
  color: #363d39;
  font-size: 12px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.post-body p {
  margin: 0 0 10px;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.body-shortened {
  display: block;
  margin-top: 12px;
  color: var(--muted-light);
  font-size: 8px;
  font-style: italic;
}

.reply-section {
  padding: 22px 25px 25px;
  background: #f6f6f0;
  border-top: 1px solid var(--line);
}

.reply-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.reply-heading h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -.035em;
}

.reply-count {
  padding: 6px 8px;
  color: var(--muted);
  background: var(--paper-deep);
  white-space: nowrap;
}

.compact-state {
  padding: 30px 15px;
}

.compact-state strong {
  font-size: 10px;
}

.compact-state p {
  font-size: 9px;
}

.reply-list {
  gap: 10px;
}

.reply-item {
  padding: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.reply-item-header {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.reply-item-header .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 8px;
}

.reply-author {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.reply-author strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-author time {
  color: var(--muted-light);
  font-size: 7px;
}

.reply-report-button {
  min-height: 28px;
  padding: 0 7px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 7px;
  font-weight: 800;
}

.reply-report-button:hover {
  color: var(--red);
  border-color: #e3b0aa;
}

.reply-body {
  color: #424944;
  font-size: 10px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.reply-body p {
  margin: 0 0 8px;
}

.reply-body p:last-child {
  margin-bottom: 0;
}

.compact-load-more {
  margin-top: 12px;
}

.reply-composer-button {
  width: 100%;
  margin-top: 15px;
}

.inline-auth-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.publication-policy {
  width: min(calc(100% - 40px), 1420px);
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 45px;
  margin: 0 auto 55px;
  padding: clamp(28px, 4vw, 50px);
  color: var(--white);
  background: var(--dark);
  border-color: var(--dark);
}

.policy-heading h2 {
  max-width: 520px;
  margin: 10px 0 15px;
  font-family: var(--font-display);
  font-size: clamp(29px, 4vw, 48px);
  letter-spacing: -.055em;
  line-height: 1.05;
}

.policy-heading .eyebrow {
  color: #9aa69f;
}

.policy-heading > p:last-child {
  max-width: 550px;
  margin: 0;
  color: #aab5af;
  font-size: 11px;
  line-height: 1.7;
}

.policy-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-steps li {
  min-height: 120px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  padding: 17px;
  background: var(--dark-raised);
  border: 1px solid #34403b;
  border-radius: 14px;
}

.policy-steps li > span {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
}

.policy-steps strong {
  color: var(--white);
  font-size: 10px;
}

.policy-steps p {
  margin: 4px 0 0;
  color: #8f9b95;
  font-size: 8px;
  line-height: 1.55;
}

.site-footer {
  color: #c3cbc7;
  background: #111714;
  border-top: 1px solid #2b3530;
}

.footer-inner {
  width: min(calc(100% - 40px), 1420px);
  display: grid;
  grid-template-columns: 1.1fr auto 1fr;
  gap: 35px;
  align-items: start;
  margin: 0 auto;
  padding: 38px 0;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-inner > div:first-child > p {
  max-width: 350px;
  margin: 14px 0 0;
  color: #84908a;
  font-size: 9px;
  line-height: 1.6;
}

.footer-inner nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 24px;
}

.footer-inner nav a {
  min-height: 30px;
  display: flex;
  align-items: center;
  color: #b5beb9;
  font-size: 9px;
  font-weight: 750;
}

.footer-inner nav a:hover,
.footer-inner nav a[aria-current="page"] {
  color: var(--lime);
}

.footer-note {
  margin: 0;
  color: #748079;
  font-size: 8px;
  line-height: 1.6;
  text-align: right;
}

.modal {
  width: min(650px, calc(100% - 30px));
  max-height: min(880px, calc(100dvh - 30px));
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.modal::backdrop {
  background: rgba(13, 19, 16, .76);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.modal-shell {
  max-height: min(880px, calc(100dvh - 30px));
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 25px 19px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 7px 0 0;
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.modal-context {
  max-width: 470px;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.dialog-auth-state,
.composer-form,
.submission-success,
.report-context {
  margin-right: 25px;
  margin-left: 25px;
}

.dialog-auth-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 31px 0;
}

.auth-dialog-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: var(--lime);
  border: 1px solid var(--dark);
  border-radius: 13px 13px 4px 13px;
  font-size: 17px;
  font-weight: 900;
}

.dialog-auth-state h3 {
  margin: 17px 0 7px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -.035em;
}

.dialog-auth-state > p {
  max-width: 520px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.auth-entry-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.general-sign-in-link {
  margin-top: 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.moderation-callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 25px 0;
  padding: 11px 12px;
  color: #655128;
  background: #fff3d7;
  border: 1px solid #ead6a5;
  border-radius: 11px;
}

.moderation-callout > span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  color: var(--white);
  background: #91702b;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 900;
}

.moderation-callout p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
}

.composer-form {
  padding: 21px 0 26px;
}

.field {
  position: relative;
  display: grid;
  gap: 7px;
  margin-top: 15px;
  color: #4f5852;
  font-size: 9px;
  font-weight: 800;
}

.field:first-child {
  margin-top: 0;
}

.field > span {
  letter-spacing: .02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: #f6f6f1;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  font-size: 11px;
  font-weight: 500;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 12px;
}

.field textarea {
  min-height: 150px;
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(86, 109, 229, .12);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: #dc8b82;
}

.field-hint {
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.5;
}

.character-count {
  position: absolute;
  right: 9px;
  bottom: 8px;
  padding: 3px 5px;
  color: var(--muted-light);
  background: rgba(255, 254, 250, .92);
  border-radius: 5px;
  font-size: 7px;
  font-weight: 800;
}

.report-context {
  margin-top: 18px;
  margin-bottom: 0;
  padding: 11px 12px;
  color: var(--muted);
  background: #f2f3ed;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.5;
}

.report-disclosure {
  margin: 13px 0 0;
  padding: 10px 11px;
  color: #6a5230;
  background: #fff4dc;
  border-radius: 9px;
  font-size: 8px;
  line-height: 1.5;
}

.form-status {
  min-height: 18px;
  margin: 13px 0 0;
  padding: 9px 10px;
  color: #455049;
  background: #f0f2eb;
  border-radius: 9px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
}

.form-status[data-type="error"] {
  color: #8c332c;
  background: var(--red-soft);
}

.form-status[data-type="success"] {
  color: #256849;
  background: var(--green-soft);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 19px;
}

.submission-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 0 38px;
}

.success-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
}

.submission-success h3 {
  margin: 16px 0 7px;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -.035em;
}

.submission-success p {
  max-width: 500px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  max-width: min(390px, calc(100% - 30px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--white);
  background: var(--dark);
  border: 1px solid #3b4741;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.toast-mark {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  color: var(--dark);
  background: var(--lime);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.toast[data-type="error"] .toast-mark {
  color: #7b2d26;
  background: var(--coral-soft);
}

.toast p {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 1240px) {
  .primary-nav a {
    padding-inline: 8px;
  }

  .origin-badge {
    display: none;
  }

  .forum-layout {
    grid-template-columns: 205px minmax(330px, .9fr) minmax(400px, 1.1fr);
  }
}

@media (max-width: 1080px) {
  .forum-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(285px, .65fr);
  }

  .hero-copy {
    padding: 45px;
  }

  .forum-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .reader-panel {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
  }

  .reader-placeholder {
    min-height: 300px;
  }

  .reader-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, .75fr);
  }

  .reader-header,
  .post-body {
    grid-column: 1;
  }

  .reply-section {
    grid-column: 2;
    grid-row: 1 / span 2;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 124px;
  }

  .header-inner {
    width: min(calc(100% - 28px), 760px);
    min-height: 68px;
  }

  .primary-nav {
    display: none;
  }

  .mobile-primary-nav {
    width: min(calc(100% - 28px), 760px);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 auto;
    padding: 0 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-primary-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-primary-nav a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 10px;
    color: var(--muted);
    background: var(--paper-deep);
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
  }

  .mobile-primary-nav a[aria-current="page"] {
    color: var(--white);
    background: var(--dark);
  }

  .header-account {
    margin-left: auto;
  }

  .forum-hero {
    width: min(calc(100% - 28px), 760px);
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 14px;
  }

  .hero-copy {
    min-height: 500px;
    padding: 38px 30px;
  }

  .hero-lanes {
    padding: 25px 30px;
  }

  .hero-lanes ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .forum-layout {
    width: min(calc(100% - 28px), 760px);
    grid-template-columns: minmax(0, 1fr);
  }

  .forum-sidebar,
  .thread-browser,
  .reader-panel {
    min-width: 0;
  }

  .forum-sidebar {
    overflow: visible;
  }

  .sidebar-sticky {
    position: static;
  }

  .category-nav {
    display: flex;
    gap: 6px;
    padding: 9px;
    overflow-x: auto;
    border-radius: 15px;
    scrollbar-width: thin;
  }

  .category-nav > .eyebrow,
  .guideline-card,
  .sidebar-links {
    display: none;
  }

  .category-button {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    display: flex;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
  }

  .category-button > span:last-child {
    display: none;
  }

  .category-button.is-active::before {
    display: none;
  }

  .reader-panel {
    grid-column: auto;
  }

  .reader-content {
    display: block;
  }

  .reply-section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .publication-policy {
    width: min(calc(100% - 28px), 760px);
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner {
    width: min(calc(100% - 28px), 760px);
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 18px;
  }

  .account-name {
    display: none;
  }

  .signed-in-account {
    gap: 6px;
  }

  .service-banner {
    width: calc(100% - 28px);
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .service-banner > div {
    min-width: calc(100% - 45px);
  }

  .service-banner .button {
    margin-left: 38px;
  }

  .hero-copy {
    min-height: 0;
    padding: 34px 23px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .hero-intro {
    font-size: 12px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-lanes {
    padding: 23px;
  }

  .hero-lanes ul {
    grid-template-columns: 1fr;
  }

  .forum-layout {
    width: calc(100% - 20px);
    gap: 12px;
  }

  .forum-sidebar,
  .thread-browser,
  .reader-panel,
  .publication-policy {
    border-radius: 15px;
  }

  .thread-browser {
    padding: 18px 12px 14px;
  }

  .browser-header h2 {
    font-size: 20px;
  }

  .search-field kbd {
    display: none;
  }

  .search-field input,
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .search-field {
    min-height: 50px;
  }

  .thread-card {
    padding: 13px;
  }

  .reader-header,
  .post-body,
  .reply-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .reader-labels {
    padding-right: 0;
  }

  .report-button {
    position: static;
    margin-top: 12px;
  }

  .reader-header h2 {
    font-size: 26px;
  }

  .reader-byline {
    grid-template-columns: 36px 1fr;
  }

  .reader-byline time {
    grid-column: 2;
    justify-self: start;
  }

  .policy-steps {
    grid-template-columns: 1fr;
  }

  .publication-policy {
    width: calc(100% - 20px);
    padding: 27px 21px;
  }

  .modal {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
    border-radius: 17px;
  }

  .modal-shell {
    max-height: calc(100dvh - 18px);
  }

  .modal-header {
    padding: 20px 18px 16px;
  }

  .dialog-auth-state,
  .composer-form,
  .submission-success,
  .report-context {
    margin-right: 18px;
    margin-left: 18px;
  }

  .moderation-callout {
    margin-right: 18px;
    margin-left: 18px;
  }

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

  .modal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

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

  .footer-inner {
    width: calc(100% - 28px);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Readability pass: keep labels and discussion metadata comfortably legible. */
body { font-size: 16px; line-height: 1.55; }
.eyebrow { font-size: 13px; letter-spacing: .1em; }
.primary-nav a, .auth-link, .account-name, .text-button { font-size: 14px; }
.origin-badge { font-size: 13px; }
.service-banner strong { font-size: 16px; }
.service-banner p { font-size: 14px; }
.forum-hero .hero-intro { font-size: 18px; line-height: 1.65; }
.forum-hero .hero-policy { font-size: 14px; line-height: 1.6; }
.hero-lanes li strong { font-size: 15px; }
.hero-lanes li > span { font-size: 13px; }
.category-button { min-height: 48px; font-size: 14px; }
.category-button > span:last-child { font-size: 13px; }
.guideline-card h2 { font-size: 19px; }
.guideline-card p, .guideline-card a, .sidebar-links a { font-size: 14px; line-height: 1.6; }
.browser-header .button, .button, .report-button { font-size: 14px; }
.search-field input { min-height: 48px; font-size: 16px; }
.results-summary { font-size: 14px; }
.thread-card { gap: 11px; padding: 18px; }
.thread-category, .category-badge, .approved-badge, .reply-count { font-size: 13px; line-height: 1.25; }
.thread-card-bottom, .thread-published, .thread-byline, .thread-open-label { font-size: 13px; line-height: 1.45; }
.thread-card h3 { font-size: 19px; line-height: 1.35; }
.thread-excerpt { font-size: 15px; line-height: 1.6; }
.load-more p { font-size: 14px; }
.reader-placeholder > p:last-child { font-size: 15px; }
.report-button { min-height: 38px; padding-inline: 10px; }
.reader-byline strong { font-size: 15px; }
.reader-byline small, .reader-meta, .reader-content p, .reader-content li { font-size: 15px; line-height: 1.65; }
.reader-content small { font-size: 13px; }
.footer-inner { font-size: 13px; }

@media (min-width: 821px) and (max-width: 1100px) {
  .forum-layout { grid-template-columns: 190px minmax(300px, 1fr); }
  .reader-panel { position: static; grid-column: 2; max-height: none; }
}

@media (max-width: 700px) {
  .forum-hero .hero-intro { font-size: 16px; }
  .thread-card h3 { font-size: 18px; }
  .thread-excerpt { font-size: 15px; }
  .reader-panel { grid-column: 1; }
}
