/* Laplexus reading surfaces. Core colors, controls, and navigation live in the shared shell. */
body[data-forum-page="community"] { background: var(--bg); }
.forum-main { padding: 32px 36px 64px; background: var(--bg); }
.community-page { max-width: 1360px; }
.community-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.community-page-heading h1 { font: 600 28px/1.25 var(--font-sans); letter-spacing: -.025em; }
.community-page-heading p { margin: 7px 0 0; color: var(--ink-2); font-size: 14px; }
.community-page-heading .community-risk-notice { max-width: 760px; margin-top: 10px; color: var(--ink-3); font-size: 12px; line-height: 1.55; }
.community-primary, .community-secondary { min-height: 40px; border-radius: 5px; padding: 10px 16px; font: 500 13px/1.4 var(--font-sans); box-shadow: none; }
.community-primary { color: var(--button-primary-text); background: var(--brand); border: 1px solid var(--brand); }
.community-primary:hover { transform: none; filter: brightness(1.08); }
.community-secondary { background: transparent; }

/* A square feature area, with the article beside it and quiet numbered navigation. */
.community-newsletter { width: 100%; margin: 0 0 32px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.community-newsletter-head { min-height: 0; padding: 0 0 12px; }
.community-newsletter-head h2 { font: 500 13px var(--font-sans); color: var(--ink-2); letter-spacing: 0; }
.community-newsletter-admin { min-height: 32px; border-radius: 4px; font-size: 12px; }
.community-newsletter-stage,
.community-newsletter-stage[data-tone="method"],
.community-newsletter-stage[data-tone="paper"] { min-height: 0; border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: none; background: var(--surface); }
.community-newsletter-slide { grid-template-columns: 300px minmax(0,1fr); min-height: 300px; animation: none; }
.community-newsletter-visual,
.community-newsletter-stage[data-tone="method"] .community-newsletter-visual.fallback,
.community-newsletter-stage[data-tone="paper"] .community-newsletter-visual.fallback { min-height: 300px; aspect-ratio: 1; padding: 28px; background: #e2e5de; color: #293932; }
.community-newsletter-visual::after,
.community-newsletter-stage[data-tone="paper"] .community-newsletter-visual.fallback::after { display: none; }
.community-newsletter-visual.fallback > span { top: 26px; left: 28px; font: 500 12px var(--font-sans); text-transform: none; letter-spacing: 0; opacity: 1; }
.community-newsletter-visual.fallback > strong { inset: 26px 26px auto auto; transform: none; color: #5b6c62; font: 400 13px var(--font-mono); letter-spacing: 0; opacity: 1; }
.community-newsletter-visual.fallback > p { margin: auto 0 12px; max-width: 240px; font: 500 36px/1.1 "Source Serif 4", Georgia, serif; letter-spacing: -.03em; text-wrap: balance; }
.community-newsletter-visual.fallback > small { position: relative; font: 400 12px var(--font-sans); color: #526358; }
.community-newsletter-visual.has-media { padding: 0; }
.community-newsletter-visual.has-media img { min-height: 300px; aspect-ratio: 1; object-fit: cover; }
.community-newsletter-detail { justify-content: center; padding: 30px 40px; background: var(--surface); }
.community-newsletter-kicker { padding: 0; border: 0; }
.community-newsletter-kicker span { color: var(--brand); font: 500 12px var(--font-sans); text-transform: none; letter-spacing: 0; }
.community-newsletter-kicker span::before { display: none; }
.community-newsletter-detail h3 { max-width: 650px; margin: 12px 0 0; color: var(--ink); font: 500 clamp(24px,2.4vw,32px)/1.2 var(--font-sans); letter-spacing: -.025em; }
.community-newsletter-detail > p { max-width: 620px; margin: 14px 0 0; color: var(--ink-2); font: 400 14px/1.65 var(--font-sans); -webkit-line-clamp: 3; }
.community-newsletter-tags { margin: 12px 0 0; }
.community-newsletter-tags span { padding: 0; border: 0; background: none; font: 400 12px var(--font-sans); color: var(--ink-3); }
.community-newsletter-detail > footer { margin-top: 24px; padding-top: 0; gap: 18px; }
.community-newsletter-detail > footer small { color: var(--ink-3); font: 400 12px var(--font-sans); }
.community-newsletter-action { min-height: 36px; padding: 8px 0; color: var(--brand); border: 0; border-radius: 0; background: none; font: 500 13px var(--font-sans); }
.community-newsletter-action:hover { transform: none; color: var(--ink); background: none; }
.community-newsletter-nav { margin: 0; padding: 12px 0 0; grid-template-columns: 80px 1fr 80px; }
.community-newsletter-nav > small { color: var(--ink-3); font: 400 11px var(--font-mono); }
.community-newsletter-nav .community-newsletter-dots { justify-content: center; gap: 6px; }
.community-newsletter-dots button { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); box-shadow: none; }
.community-newsletter-dots button.on { width: 30px; background: var(--surface-3); color: var(--ink); border: 0; }
.community-newsletter-dots button span { font: 400 11px var(--font-mono); }
.community-newsletter-controls { gap: 8px; }
.community-newsletter-controls button { width: 32px; height: 30px; border-radius: 4px; font-size: 14px; }

/* Categories, discussion list, and optional posting help. */
.community-layout { display: grid; grid-template-columns: 190px minmax(0,1fr) 220px; gap: 28px; margin: 0; align-items: start; }
.community-rail { top: 84px; gap: 24px; }
.community-panel { border: 0; border-radius: 0; background: none; box-shadow: none; }
.community-panel-head { padding: 0 10px 10px; border: 0; }
.community-panel-head h2 { font: 500 12px var(--font-sans); color: var(--ink-3); }
.community-categories { gap: 3px; padding: 0; }
.community-categories button { min-height: 38px; padding: 9px 10px; border-radius: 4px; color: var(--ink-2); font: 400 13px var(--font-sans); }
.community-categories button::before { width: 5px; height: 5px; opacity: .65; }
.community-categories button.on { color: var(--ink); background: var(--surface-3); box-shadow: none; }
.community-categories button span { font: 400 11px var(--font-mono); }
.community-room-line { display: grid; gap: 10px; margin: 0; padding: 20px 10px 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; }
.community-room-line > span { display: flex; justify-content: space-between; gap: 12px; }
.community-room-line small { color: var(--ink-3); font: 400 12px var(--font-sans); }
.community-room-line b { color: var(--ink-2); font: 400 12px var(--font-mono); }
.community-method-link { display: flex; justify-content: space-between; padding: 0 10px; color: var(--brand); font-size: 12px; }
.community-index-heading { flex-direction: row; align-items: baseline; gap: 12px; margin: 0 0 16px; }
.community-index-heading h2 { font: 500 20px/1.2 var(--font-sans); letter-spacing: -.015em; }
.community-index-heading p { font: 400 12px var(--font-sans); letter-spacing: 0; text-transform: none; }
.community-index-heading p b { color: var(--ink-3); font-weight: 400; }
.community-toolbar { display: flex; gap: 12px; margin: 0 0 16px; }
.community-search { flex: 1; min-width: 0; }
.community-search input { min-height: 40px; padding-left: 38px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface); color: var(--ink); font: 400 13px var(--font-sans); }
.community-search svg { width: 16px; height: 16px; }
.community-sort { flex-shrink: 0; padding: 3px; border: 1px solid var(--border); border-radius: 5px; background: transparent; }
.community-sort button { padding: 7px 12px; border-radius: 3px; font: 400 12px var(--font-sans); }
.community-sort button.on { color: var(--ink); background: var(--surface-3); box-shadow: none; }
.community-thread-index { gap: 0; border-block: 1px solid var(--border-strong); }
.community-topic { display: grid; grid-template-columns: 34px minmax(0,1fr) 64px; gap: 14px; padding: 22px 4px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none; }
.community-topic:last-child { border-bottom: 0; }
.community-topic::before { display: none; }
.community-topic:hover { border-color: var(--border); background: rgba(255,255,255,.018); box-shadow: none; transform: none; }
.community-topic-pinned { background: none; }
.community-topic > .community-avatar { width: 32px; height: 32px; margin-top: 5px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-3); box-shadow: none; color: var(--ink-2); font: 500 11px var(--font-sans); }
.community-topic-context { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 7px; }
.community-category-pill { padding: 0; border: 0; border-radius: 0; color: var(--ink-3); background: none; font: 400 11px var(--font-sans); text-transform: none; letter-spacing: 0; }
.community-pinned, .community-content-type { color: var(--brand); font: 400 11px var(--font-sans); }
.community-topic h3 { margin: 0 0 7px; color: var(--ink); font: 500 16px/1.4 var(--font-sans); letter-spacing: -.01em; }
.community-topic h3 button { padding: 0; text-align: left; }
.community-topic h3 button:hover { color: var(--brand); }
.community-topic p { margin: 0; color: var(--ink-2); font: 400 13px/1.65 var(--font-sans); -webkit-line-clamp: 2; }
.community-topic-meta { margin-top: 12px; gap: 8px; color: var(--ink-3); font: 400 11px var(--font-sans); }
.community-topic-time::before { content: "·"; margin-right: 8px; }
.community-topic-author, .community-author-name { font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--ink-2); }
.community-topic-activity { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; padding-top: 24px; color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.community-topic-activity b { font-weight: 500; color: var(--ink-2); }
.community-topic-activity small { font-size: 11px; }
.community-save { padding: 4px 0; min-height: 28px; border: 0; border-radius: 3px; background: none; font: 400 11px var(--font-sans); }
.community-save.on { color: var(--brand); background: none; }
.community-research-standard { margin: 0; padding: 0 0 20px 20px; border: 0; border-left: 1px solid var(--border); background: none; }
.community-research-standard h2 { font: 500 14px var(--font-sans); }
.community-research-standard p, .community-research-standard li { color: var(--ink-2); font: 400 12px/1.65 var(--font-sans); }
.community-research-standard p { margin: 12px 0; }
.community-research-standard ul { display: grid; gap: 9px; margin: 0; padding-left: 16px; }
.community-research-standard li::marker { color: var(--ink-3); }
.community-research-standard button { padding: 0; margin-top: 18px; color: var(--brand); font: 500 12px var(--font-sans); text-align: left; }
.community-badges-panel { padding-left: 20px; }
.community-badges-panel summary { color: var(--ink-3); cursor: pointer; font-size: 12px; }
.community-badge-guide { margin-top: 10px; padding: 0; }
.community-badge-guide small { font: 400 12px/1.6 var(--font-sans); }
.community-guest-access { align-items: center; gap: 14px; margin: 24px 0 0; padding: 16px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.community-guest-access > div:first-child > i { display: none; }
.community-guest-access b { font: 500 12px var(--font-sans); }
.community-guest-access small { color: var(--ink-3); font-size: 11px; }
.community-guest-access p { min-width: 0; font-size: 12px; }
.community-guest-links { display: grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); flex: 0 1 210px; gap: 8px; min-width: 0; }
.community-guest-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 34px;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.community-guest-links a:last-child { border-color: var(--brand); background: var(--brand); color: var(--button-primary-text, #071118); }
.community-empty, .community-loading { border: 0; border-radius: 0; background: none; }
.community-empty b { font: 500 18px var(--font-sans); }
.community-empty span { font: 400 13px/1.6 var(--font-sans); }

/* Readable discussion and composer dialogs. */
.community-modal { border-radius: 8px; background: var(--surface); }
.community-modal-head { padding: 24px; background: var(--surface); backdrop-filter: none; }
.community-modal-head span { font: 500 12px var(--font-sans); text-transform: none; letter-spacing: 0; }
.community-modal-head h2 { font: 500 24px/1.3 var(--font-sans); }
.community-detail-copy, .community-reply p { color: var(--ink-2); font: 400 15px/1.8 var(--font-sans); }
.community-detail-author b, .community-reply-head b { font-size: 13px; }
.community-detail-author small, .community-reply-head span { font-size: 12px; }
.community-detail-actions button, .community-signin, .community-signin a { font-size: 13px; }
.community-field label { font: 500 13px var(--font-sans); text-transform: none; letter-spacing: 0; }
.community-field input, .community-field select, .community-field textarea, .community-reply-form textarea { font: 400 14px/1.6 var(--font-sans); border-radius: 5px; }
.community-field small, .community-form-foot p { font-size: 12px; line-height: 1.6; }
.community-form-foot { flex-wrap: wrap; gap: 16px; }

.community-method-inline { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 10px; color: #8e99a2; border: 1px solid rgba(198,163,84,.2); background: #11130f; font: 400 8px var(--font-mono); }
.community-method-inline > span { display: grid; width: 19px; height: 19px; place-items: center; color: #d1ae61; border: 1px solid rgba(198,163,84,.32); }
.community-method-inline b { min-width: 0; overflow: hidden; color: #d7dadd; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.community-method-inline small { margin-left: auto; color: #7a858e; white-space: nowrap; }

.community-workflow-attachment { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 13px; margin: 0 24px 20px; padding: 14px 15px; border: 1px solid rgba(198,163,84,.26); background: #12140f; }
.community-workflow-glyph { display: grid; width: 40px; height: 40px; place-items: center; color: #dab45f; border: 1px solid rgba(198,163,84,.35); background: rgba(198,163,84,.06); font: 500 15px var(--font-display); }
.community-workflow-attachment div:nth-child(2) span,
.community-workflow-attachment div:nth-child(2) b,
.community-workflow-attachment div:nth-child(2) small { display: block; }
.community-workflow-attachment div:nth-child(2) span { color: #a68d54; font: 500 7px var(--font-mono); letter-spacing: .09em; }
.community-workflow-attachment div:nth-child(2) b { margin-top: 5px; color: #e3e4e1; font: 500 14px var(--font-display); }
.community-workflow-attachment div:nth-child(2) small { margin-top: 4px; color: #7f898f; font: 400 8px var(--font-mono); }
.community-workflow-attachment-actions { display: flex; gap: 7px; }
.community-workflow-attachment-actions a,
.community-workflow-attachment-actions button { padding: 8px 10px; color: #9fabb3; border: 1px solid var(--border); background: transparent; font: 500 9px var(--font-sans); text-decoration: none; }
.community-workflow-attachment-actions a:hover { color: #d5dde2; border-color: #53616b; }
.community-workflow-attachment-actions button:hover { color: #d59494; border-color: rgba(194,122,134,.45); }

.community-workflow-preview { margin: 22px 0; padding: 21px 22px 19px; border: 1px solid rgba(198,163,84,.25); background: linear-gradient(115deg,#12140f,#0e1215 70%); }
.community-workflow-preview header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.community-workflow-preview header span { color: #a58c55; font: 500 7px var(--font-mono); letter-spacing: .1em; }
.community-workflow-preview h3 { margin: 7px 0 0; color: #ebebe7; font: 500 22px/1.2 var(--font-display); }
.community-workflow-mark { display: grid; flex: 0 0 38px; height: 38px; place-items: center; color: #d8b461; border: 1px solid rgba(198,163,84,.32); font: 500 15px var(--font-display); }
.community-workflow-preview > p { max-width: 760px; margin: 12px 0 15px; color: #929ca3; font: 400 11px/1.65 var(--font-sans); }
.community-workflow-metrics { display: flex; flex-wrap: wrap; gap: 0; border-block: 1px solid rgba(255,255,255,.07); }
.community-workflow-metrics span { padding: 9px 15px 9px 0; margin-right: 15px; color: #77828a; font: 400 8px var(--font-mono); text-transform: capitalize; }
.community-workflow-metrics b { color: #d4d8da; font-weight: 500; }
.community-workflow-preview > a { display: inline-flex; gap: 12px; margin-top: 15px; color: #d0b36f; font: 500 10px var(--font-sans); text-decoration: none; }
.community-workflow-preview > a:hover { color: #ead08f; }


@media (max-width: 1200px) {
  .community-layout { grid-template-columns: 180px minmax(0,1fr); gap: 24px; }
  .community-rail.right { display: none; }
}
@media (max-width: 900px) {
  .forum-main { padding: 24px 20px 48px; }
  .community-page-heading h1 { font-size: 24px; }
  .community-newsletter-slide { grid-template-columns: 250px minmax(0,1fr); min-height: 250px; }
  .community-newsletter-visual, .community-newsletter-visual.has-media img,
  .community-newsletter-stage[data-tone="method"] .community-newsletter-visual.fallback,
  .community-newsletter-stage[data-tone="paper"] .community-newsletter-visual.fallback { min-height: 250px; }
  .community-newsletter-visual.fallback > p { font-size: 30px; }
  .community-newsletter-detail { padding: 24px; }
  .community-newsletter-detail h3 { font-size: 24px; }
  .community-newsletter-detail > footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .community-layout { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .community-rail.left { position: static; gap: 0; min-width: 0; }
  .community-panel.categories { display: block; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .community-panel.categories .community-panel-head { display: none; }
  .community-categories { flex-direction: row; overflow-x: auto; }
  .community-categories button { flex: 0 0 auto; min-height: 40px; }
  .community-room-line, .community-method-link { display: none; }
  .community-guest-access { align-items: flex-start; flex-wrap: wrap; }
  .community-guest-access p { flex: 1 1 240px; }
  .community-guest-links { flex: 1 1 190px; }
}
@media (max-width: 600px) {
  .forum-main { padding: 22px 16px 40px; }
  .community-page-heading { align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .community-page-heading h1 { font-size: 23px; }
  .community-page-heading p { font-size: 13px; max-width: 225px; }
  .community-page-heading .community-risk-notice { max-width: 230px; font-size: 11px; }
  .community-page-heading .community-primary { max-width: 115px; padding: 9px 12px; }
  .community-newsletter-slide { grid-template-columns: minmax(0,1fr); }
  .community-newsletter-visual,
  .community-newsletter-stage[data-tone="method"] .community-newsletter-visual.fallback,
  .community-newsletter-stage[data-tone="paper"] .community-newsletter-visual.fallback { min-height: 0; width: 100%; aspect-ratio: 1; padding: 28px; }
  .community-newsletter-visual.has-media img { min-height: 0; aspect-ratio: 1; }
  .community-newsletter-visual.fallback > p { font-size: 38px; }
  .community-newsletter-detail { min-height: 250px; padding: 24px; }
  .community-newsletter-detail h3 { font-size: 24px; }
  .community-newsletter-detail > p { font-size: 14px; }
  .community-newsletter-detail > footer small { display: none; }
  .community-newsletter-action { width: auto; }
  .community-newsletter-nav { grid-template-columns: 56px 1fr 72px; gap: 6px; }
  .community-newsletter-nav > small { display: block; }
  .community-newsletter-admin { font-size: 11px; }
  .community-toolbar { gap: 8px; }
  .community-sort button { padding: 8px; }
  .community-index-heading h2 { font-size: 18px; }
  .community-index-heading p { font-size: 11px; }
  .community-topic { grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 20px 0; }
  .community-topic > .community-avatar { width: 26px; height: 26px; font-size: 10px; }
  .community-topic h3 { font-size: 16px; }
  .community-topic-activity { grid-column: 2; flex-direction: row; align-items: center; padding: 0; gap: 16px; }
  .community-topic-activity .community-save { margin-left: auto; padding: 4px 8px; }
  .community-topic-meta { flex-wrap: wrap; font-size: 11px; }
  .community-guest-access { display: flex; flex-wrap: wrap; }
  .community-guest-access p { flex-basis: 100%; min-width: 0; }
  .community-guest-links { width: 100%; flex-basis: 100%; }
  .community-modal-head h2 { font-size: 21px; }
  .community-workflow-attachment { grid-template-columns: 36px minmax(0,1fr); margin-inline: 14px; }
  .community-workflow-attachment-actions { grid-column: 1/-1; flex-wrap: wrap; }
}
