/* Laplexus — a human, evidence-first forecasting room. */
body[data-forum-page="community"] .modeswitch,
body[data-forum-page="community"] .top-create { display: none; }
body[data-forum-page="community"] .main {
  background:
    radial-gradient(circle at 22% -8%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 31rem),
    radial-gradient(circle at 94% 13%, color-mix(in srgb, var(--warn) 4%, transparent), transparent 25rem),
    var(--bg);
}
body[data-forum-page="community"] .topbar { border-bottom-color: var(--border-strong); }
.community-page { max-width: 1480px; }
.community-shell { display: flex; flex-direction: column; }

/* Masthead */
.community-masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .72fr);
  min-height: 232px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background:
    linear-gradient(118deg, color-mix(in srgb, var(--surface) 94%, var(--brand) 6%), var(--surface) 62%),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .1);
}
.community-masthead::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: -110px;
  bottom: -160px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  filter: blur(46px);
  pointer-events: none;
}
.community-masthead-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 42px;
}
.community-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font: 500 9px var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.community-eyebrow i,
.community-index-heading p i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 10%, transparent);
}
.community-masthead h2 {
  max-width: 760px;
  margin: 15px 0 11px;
  color: var(--ink);
  font-size: clamp(35px, 4vw, 55px);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -.045em;
}
.community-masthead h2 span {
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
  font: 550 9px/1 var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.community-masthead p {
  max-width: 650px;
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}
.community-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.community-primary,
.community-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.community-primary { color: var(--button-primary-text); border-color: var(--brand); background: var(--brand); }
.community-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.community-primary > span { font: 400 16px var(--font-mono); }
.community-secondary { color: var(--ink-2); background: var(--surface-2); }
.community-secondary:hover { color: var(--ink); border-color: var(--border-strong); background: var(--surface-3); }

.community-ledger {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: stretch;
  margin: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}
.community-ledger > div {
  display: flex;
  min-height: 100px;
  flex-direction: column;
  justify-content: center;
  padding: 17px 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.community-ledger > div:nth-child(2n) { border-right: 0; }
.community-ledger > div:nth-last-child(-n+2) { border-bottom: 0; }
.community-ledger dt,
.community-ledger small {
  color: var(--ink-3);
  font: 500 8px var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.community-ledger dd {
  margin: 9px 0 6px;
  color: var(--ink);
  font: 520 24px/1 var(--font-mono);
  letter-spacing: -.04em;
}
.community-ledger-standard dd { display: flex; align-items: center; gap: 8px; font: 550 15px var(--font-display); letter-spacing: 0; }
.community-ledger-standard dd i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 9%, transparent); }

/* View navigation */
.community-viewbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}
.community-browse-trigger,
.community-viewbar > small {
  color: var(--ink-3);
  font: 500 8px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.community-browse-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 8px; border-radius: 6px; }
.community-browse-trigger span { color: var(--brand); font-size: 10px; transition: transform .15s ease; }
.community-browse-trigger:hover { color: var(--ink); background: var(--surface-2); }
.community-browse-trigger:hover span { transform: translateY(2px); }
.community-browse-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.community-viewbar > div { display: flex; min-width: 0; }
.community-viewbar button,
.community-viewbar a {
  position: relative;
  min-height: 36px;
  margin-right: 2px;
  padding: 0 13px;
  color: var(--ink-3);
  border-radius: 6px;
  font-size: 11px;
  line-height: 36px;
  white-space: nowrap;
}
.community-viewbar button:hover,
.community-viewbar a:hover { color: var(--ink); background: color-mix(in srgb, var(--surface-2) 75%, transparent); }
.community-viewbar button.on { color: var(--ink); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border); }
.community-viewbar button.on::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 2px;
  left: 13px;
  height: 2px;
  background: var(--brand);
}

/* Main discussion layout */
.community-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 266px;
  align-items: start;
  gap: 20px;
  margin-top: 22px;
}
.community-rail { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 13px; }
.community-panel {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
}
.community-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
}
.community-panel h3 { margin: 0; color: var(--ink-2); font-size: 10px; font-weight: 650; letter-spacing: .02em; }
.community-panel-head small { color: var(--ink-3); font: 8px var(--font-mono); }
.community-categories { display: flex; flex-direction: column; padding: 6px; }
.community-categories button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 8px;
  color: var(--ink-2);
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  font-size: 11px;
}
.community-categories button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cat-color, var(--ink-3)); opacity: .68; }
.community-categories button span { margin-left: auto; color: var(--ink-3); font: 9px var(--font-mono); }
.community-categories button:hover { color: var(--ink); background: var(--surface-2); }
.community-categories button.on { color: var(--ink); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--cat-color, var(--brand)); }
.community-categories button.on::before { opacity: 1; }

.community-standards { padding-bottom: 5px; }
.community-rule { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; margin: 0 13px; padding: 13px 0; color: var(--ink-3); border-bottom: 1px solid var(--border); font-size: 10px; line-height: 1.5; }
.community-rule:last-child { border-bottom: 0; }
.community-rule > i { display: grid; place-items: center; width: 24px; height: 24px; color: var(--brand); border: 1px solid var(--brand-line); border-radius: 3px; background: var(--brand-soft); font: 600 8px var(--font-mono); }
.community-rule span b { display: block; margin-bottom: 2px; color: var(--ink-2); font-size: 10px; }
.community-safety {
  display: flex;
  gap: 10px;
  padding: 13px;
  color: var(--ink-3);
  border: 1px solid color-mix(in srgb, var(--up) 20%, var(--border));
  border-radius: 6px;
  background: color-mix(in srgb, var(--up) 3%, var(--surface));
  font-size: 9px;
  line-height: 1.55;
}
.community-safety b { display: block; margin-bottom: 3px; color: var(--ink-2); font-size: 10px; }
.community-safety-icon { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; color: var(--up); border: 1px solid color-mix(in srgb, var(--up) 24%, var(--border)); border-radius: 50%; }
.community-marketplace-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: var(--ink-2);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  font-size: 10px;
}
.community-marketplace-link:hover { color: var(--ink); background: var(--surface-2); }
.community-marketplace-link span small { display: block; margin-bottom: 3px; color: var(--brand); font: 8px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.community-marketplace-link > b { color: var(--brand); font: 400 17px var(--font-mono); }

.community-badge-guide { padding: 4px 13px 7px; }
.community-badge-explainer { padding: 11px 0; border-bottom: 1px solid var(--border); }
.community-badge-explainer:last-child { border-bottom: 0; }
.community-badge-explainer p { margin: 7px 0 0; color: var(--ink-3); font-size: 9px; line-height: 1.45; }

/* Feed */
.community-feed { display: flex; min-width: 0; flex-direction: column; }
.community-index-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 13px; }
.community-index-heading span { color: var(--brand); font: 500 8px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.community-index-heading h3 { margin: 6px 0 0; color: var(--ink); font-size: 24px; font-weight: 560; letter-spacing: -.03em; }
.community-index-heading p { display: flex; align-items: center; gap: 8px; margin: 0 1px 2px; color: var(--ink-3); font: 8px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.community-index-heading p b { color: var(--ink-2); font-weight: 500; }
.community-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto; margin-bottom: 9px; }
.community-search { position: relative; }
.community-search svg { position: absolute; top: 50%; left: 13px; width: 14px; height: 14px; color: var(--ink-3); transform: translateY(-50%); }
.community-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 5px 0 0 5px;
  outline: none;
  background: var(--surface);
  font: 11px var(--font-display);
}
.community-search input::placeholder { color: var(--ink-3); }
.community-search input:focus { position: relative; z-index: 1; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 9%, transparent); }
.community-sort { display: flex; padding: 3px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 5px 5px 0; background: var(--surface); }
.community-sort button { min-width: 82px; padding: 0 12px; color: var(--ink-3); border-radius: 3px; font-size: 10px; }
.community-sort button.on { color: var(--ink); background: var(--surface-3); }
.community-thread-index { display: flex; flex-direction: column; gap: 9px; background: transparent; }
.community-topic {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 17px 18px 15px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 96%, var(--cat-color) 4%);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.community-topic::before { content: ""; position: absolute; inset: 14px auto 14px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--cat-color, var(--brand)); opacity: .72; }
.community-topic:hover { border-color: color-mix(in srgb, var(--cat-color, var(--brand)) 34%, var(--border-strong)); background: color-mix(in srgb, var(--surface-2) 94%, var(--cat-color) 6%); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.community-topic-pinned { border-color: color-mix(in srgb, var(--up) 22%, var(--border-strong)); background: color-mix(in srgb, var(--surface) 95%, var(--up) 5%); }
.community-avatar {
  --avatar-color: hsl(var(--avatar-hue, 198) 70% 58%);
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: color-mix(in srgb, var(--avatar-color) 88%, white);
  border: 1px solid color-mix(in srgb, var(--avatar-color) 42%, var(--border));
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 22%, color-mix(in srgb, var(--avatar-color) 31%, transparent), transparent 42%),
    color-mix(in srgb, var(--avatar-color) 10%, var(--surface-2));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--surface) 72%, transparent);
  font: 650 9px var(--font-mono);
}
.community-avatar-staff::after { content: "✓"; position: absolute; right: -2px; bottom: -2px; display: grid; width: 14px; height: 14px; place-items: center; color: #071118; border: 2px solid var(--surface); border-radius: 50%; background: var(--up); font: 700 8px var(--font-display); }
.community-topic-main { min-width: 0; }
.community-topic-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--ink-3); font-size: 9px; }
.community-topic-author { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.community-topic-time::before { content: "·"; margin-right: 8px; }
.community-topic-context { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.community-category-pill { padding: 3px 7px; color: var(--cat-color, var(--data)); border: 1px solid color-mix(in srgb, var(--cat-color, var(--data)) 25%, var(--border)); border-radius: 999px; background: color-mix(in srgb, var(--cat-color, var(--data)) 6%, transparent); font: 600 8px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.community-author-name { color: var(--ink); font-size: 10px; font-weight: 650; }
.community-author-handle { color: var(--ink-3); font: 8px var(--font-mono); }
.community-pinned { display: inline-flex; align-items: center; gap: 4px; color: var(--up); font: 600 8px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.community-topic h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 600; line-height: 1.28; letter-spacing: -.018em; }
.community-topic h3 button { color: var(--ink); text-align: left; font: inherit; }
.community-topic h3 button::after { content: ""; position: absolute; inset: 0; }
.community-topic h3 button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.community-topic p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ink-2); font-size: 10px; line-height: 1.68; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.community-topic-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border); }
.community-tags { position: relative; z-index: 1; display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; }
.community-tags span { padding: 3px 7px; color: var(--ink-3); border: 1px solid color-mix(in srgb, var(--border) 65%, transparent); border-radius: 999px; background: var(--surface-2); font: 8px var(--font-mono); }
.community-topic-stats { display: flex; align-items: center; flex: 0 0 auto; gap: 11px; color: var(--ink-3); font-size: 9px; }
.community-topic-stats > span { white-space: nowrap; }
.community-topic-stats b { color: var(--ink-2); font: 600 9px var(--font-mono); }
.community-save { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 26px; padding: 0 8px; color: var(--ink-3); border: 1px solid transparent; border-radius: 6px; background: transparent; font-size: 9px; }
.community-save:hover,
.community-save.on { color: var(--up); border-color: color-mix(in srgb, var(--up) 30%, var(--border)); background: color-mix(in srgb, var(--up) 5%, var(--surface)); }

.community-forecast { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 11px; padding: 10px 11px; border: 1px solid color-mix(in srgb, #8b7cf6 25%, var(--border)); border-radius: 4px; background: color-mix(in srgb, #8b7cf6 4%, var(--surface-2)); }
.community-forecast small,
.community-forecast b { display: block; }
.community-forecast small { color: var(--ink-3); font: 8px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.community-forecast small i { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: #8b7cf6; }
.community-forecast b { margin-top: 4px; overflow: hidden; color: var(--ink-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.community-forecast strong { color: #a99df9; font: 500 21px var(--font-mono); }
.community-forecast strong span { margin-left: 1px; font-size: 10px; }
.community-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 3px; color: var(--brand); border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-soft); font: 650 8px var(--font-display); white-space: nowrap; }
.community-badge-mark { display: grid; min-width: 14px; height: 14px; padding: 0 2px; place-items: center; color: currentColor; border-radius: 50%; background: color-mix(in srgb, currentColor 12%, transparent); font: 700 7px var(--font-mono); }
.community-badge-staff { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.community-badge-founding { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 34%, var(--border)); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.community-badge-evidence { color: var(--data); border-color: color-mix(in srgb, var(--data) 30%, var(--border)); background: color-mix(in srgb, var(--data) 6%, var(--surface)); }
.community-badge-calibration { color: var(--up); border-color: color-mix(in srgb, var(--up) 30%, var(--border)); background: color-mix(in srgb, var(--up) 6%, var(--surface)); }
.community-mention { color: var(--brand); font-weight: 550; }

/* Empty and loading states */
.community-empty,
.community-loading { display: grid; min-height: 260px; place-content: center; justify-items: center; gap: 8px; padding: 32px; color: var(--ink-3); text-align: center; }
.community-empty > i { display: grid; width: 34px; height: 34px; margin-bottom: 4px; place-items: center; color: var(--brand); border: 1px solid var(--brand-line); border-radius: 50%; background: var(--brand-soft); font-style: normal; }
.community-empty b,
.community-loading b { color: var(--ink); font-size: 14px; }
.community-empty span,
.community-loading span { max-width: 360px; font-size: 10px; line-height: 1.5; }
.community-empty .community-primary { margin-top: 8px; }
.community-loading > i { width: 18px; height: 18px; margin-bottom: 4px; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: community-spin .8s linear infinite; }

/* Composer and thread detail */
.community-overlay { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(3, 5, 11, .76); backdrop-filter: blur(8px); animation: community-fade .14s ease both; }
.community-overlay[hidden] { display: none; }
.community-modal { width: min(720px, 100%); max-height: min(820px, calc(100vh - 56px)); overflow: auto; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); box-shadow: 0 30px 90px rgba(0, 0, 0, .52); animation: community-enter .18s ease both; }
.community-modal.wide { width: min(900px, 100%); }
.community-modal-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: flex-start; gap: 12px; padding: 19px 21px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); }
.community-modal-head > div { min-width: 0; }
.community-modal-head span { color: var(--brand); font: 600 8px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.community-modal-head h2 { margin: 5px 0 0; color: var(--ink); font-size: 20px; font-weight: 550; line-height: 1.28; }
.community-modal-close { display: grid; width: 31px; height: 31px; margin-left: auto; flex: 0 0 31px; place-items: center; color: var(--ink-3); border: 1px solid var(--border); border-radius: 4px; font-size: 18px; }
.community-modal-close:hover { color: var(--ink); background: var(--surface-2); }
.community-form,
.community-detail-body { padding: 21px; }
.community-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.community-field { display: flex; flex-direction: column; gap: 6px; }
.community-field.wide { grid-column: 1 / -1; }
.community-field label { color: var(--ink-2); font-size: 10px; font-weight: 550; }
.community-field small { color: var(--ink-3); font-size: 9px; line-height: 1.4; }
.community-field input,
.community-field select,
.community-field textarea { width: 100%; padding: 10px 11px; color: var(--ink); border: 1px solid var(--border); border-radius: 4px; outline: none; background: var(--surface-2); font: 11px var(--font-display); }
.community-field textarea { min-height: 132px; resize: vertical; line-height: 1.6; }
.community-field input:focus,
.community-field select:focus,
.community-field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 9%, transparent); }
.community-forecast-editor { grid-column: 1 / -1; padding: 13px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-inset); }
.community-forecast-toggle { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 11px; cursor: pointer; }
.community-forecast-toggle input { accent-color: var(--brand); }
.community-forecast-fields { display: grid; grid-template-columns: 1fr 130px 150px; gap: 10px; margin-top: 12px; }
.community-forecast-fields[hidden] { display: none; }
.community-forecast-fields .criteria { grid-column: 1 / -1; }
.community-form-foot { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border); }
.community-form-foot p { margin: 0; color: var(--ink-3); font-size: 9px; line-height: 1.45; }
.community-form-foot button { margin-left: auto; flex: 0 0 auto; }
.community-form-error { margin-top: 10px; color: var(--down); font-size: 10px; }
.community-signin { padding: 14px; color: var(--ink-2); border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); font-size: 11px; line-height: 1.55; }
.community-signin a { color: var(--brand); }

.community-detail-author { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font: 9px var(--font-mono); }
.community-detail-author b { color: var(--ink-2); font-size: 10px; }
.community-detail-author small { display: block; margin-top: 4px; color: var(--ink-3); font: 8px var(--font-mono); }
.community-detail-author .community-author-handle { margin-left: 5px; }
.community-detail-copy { margin: 20px 0; color: var(--ink-2); font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.community-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.community-detail-actions button { padding: 7px 10px; color: var(--ink-3); border: 1px solid var(--border); border-radius: 4px; font-size: 9px; }
.community-detail-actions button:hover,
.community-detail-actions button.on { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); background: var(--brand-soft); }
.community-follow-button { color: var(--brand) !important; border-color: var(--brand-line) !important; background: var(--brand-soft); }
.community-follow-button.on { color: var(--ink) !important; background: var(--surface-2); }
.community-report-box { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.community-report-box[hidden] { display: none; }
.community-report-box select { max-width: 210px; padding: 7px 28px 7px 8px; color: var(--ink-2); border: 1px solid var(--border); border-radius: 4px; background: var(--surface-2); font: 9px var(--font-display); }
.community-linked-research { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 17px 0 3px; padding: 13px; border: 1px solid color-mix(in srgb, var(--data) 25%, var(--border)); border-radius: 4px; background: color-mix(in srgb, var(--data) 4%, var(--surface)); }
.community-linked-research span,
.community-linked-research b,
.community-linked-research small { display: block; }
.community-linked-research span { color: var(--data); font: 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.community-linked-research b { margin-top: 4px; color: var(--ink-2); font-size: 11px; }
.community-linked-research small { margin-top: 3px; color: var(--ink-3); font: 8px var(--font-mono); }
.community-linked-research a { flex: 0 0 auto; color: var(--data); font-size: 10px; }
.community-research-links { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 5px; }
.community-research-links a { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-replies { margin-top: 21px; }
.community-replies h3 { margin: 0 0 8px; color: var(--ink); font-size: 13px; }
.community-reply { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--border); }
.community-reply:first-of-type { border-top: 0; }
.community-reply .community-avatar { width: 30px; height: 30px; }
.community-reply-head { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-3); font: 9px var(--font-mono); }
.community-reply-head b { color: var(--ink-2); }
.community-reply p { margin: 6px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.community-reply-form { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
.community-reply-form textarea { width: 100%; min-height: 86px; padding: 10px; color: var(--ink); border: 1px solid var(--border); border-radius: 4px; outline: none; resize: vertical; background: var(--surface-2); font: 11px var(--font-display); line-height: 1.55; }
.community-reply-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 9%, transparent); }
.community-reply-form > div { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.community-reply-form small { color: var(--ink-3); font-size: 9px; }
.community-reply-form button { margin-left: auto; }

@keyframes community-spin { to { transform: rotate(360deg); } }
@keyframes community-fade { from { opacity: 0; } }
@keyframes community-enter { from { opacity: 0; transform: translateY(8px) scale(.995); } }

@media (max-width: 1380px) {
  .community-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .community-rail.right { display: none; }
}
@media (max-width: 900px) {
  .community-masthead { grid-template-columns: 1fr; }
  .community-masthead-copy { padding: 34px; }
  .community-ledger { grid-template-columns: repeat(4, 1fr); }
  .community-ledger > div { min-height: 92px; padding: 15px; border-bottom: 0; }
  .community-ledger > div:nth-child(2) { border-right: 1px solid var(--border); }
  .community-ledger dd { font-size: 22px; }
  .community-viewbar { grid-template-columns: auto minmax(0, 1fr); gap: 14px; overflow: hidden; }
  .community-viewbar > div { overflow-x: auto; scrollbar-width: none; }
  .community-viewbar > small { display: none; }
  .community-layout { grid-template-columns: 1fr; }
  .community-rail.left { position: static; overflow: hidden; }
  .community-panel.categories { display: flex; align-items: stretch; }
  .community-panel.categories .community-panel-head { min-width: 116px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .community-categories { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .community-categories button { width: auto; white-space: nowrap; }
  .community-categories button span { display: none; }
}
@media (max-width: 640px) {
  .community-masthead-copy { padding: 27px 21px; }
  .community-masthead h2 { font-size: 35px; }
  .community-masthead p { font-size: 12px; }
  .community-ledger { grid-template-columns: repeat(3, 1fr); }
  .community-ledger > div { min-height: 78px; padding: 14px 10px; border-bottom: 0; }
  .community-ledger > div:nth-child(2) { border-right: 1px solid var(--border); }
  .community-ledger > div:nth-child(3) { border-right: 0; }
  .community-ledger-standard { display: none !important; }
  .community-ledger dd { margin: 8px 0 0; font-size: 20px; }
  .community-ledger small { display: none; }
  .community-viewbar { display: block; }
  .community-browse-trigger { width: 100%; justify-content: space-between; margin-bottom: 3px; padding-inline: 12px; }
  .community-viewbar button,
  .community-viewbar a { min-height: 38px; padding-inline: 12px; line-height: 38px; }
  .community-panel.categories { display: block; }
  .community-panel.categories .community-panel-head { min-width: 0; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .community-index-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .community-toolbar { grid-template-columns: 1fr; gap: 7px; }
  .community-search input,
  .community-sort { border: 1px solid var(--border-strong); border-radius: 5px; }
  .community-sort button { flex: 1; }
  .community-topic { grid-template-columns: 34px minmax(0, 1fr); padding: 15px 13px; }
  .community-topic .community-avatar { width: 33px; height: 33px; }
  .community-topic-footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  .community-topic-stats { width: 100%; gap: 10px; }
  .community-save { margin-left: auto; }
  .community-overlay { padding: 10px; }
  .community-modal { max-height: calc(100vh - 20px); }
  .community-modal-head,
  .community-form,
  .community-detail-body { padding: 16px; }
  .community-form-grid,
  .community-forecast-fields { grid-template-columns: 1fr; }
  .community-forecast-fields .criteria { grid-column: auto; }
  .community-form-foot { align-items: stretch; flex-direction: column; }
  .community-form-foot button { width: 100%; margin-left: 0; }
  .community-detail-actions { align-items: stretch; }
  .community-report-box { width: 100%; margin-left: 0; }
  .community-report-box select { max-width: none; flex: 1; }
  .community-linked-research { align-items: flex-start; flex-direction: column; }
  .community-research-links { width: 100%; align-items: flex-start; }
}

/* Human media layer ------------------------------------------------------- */
.community-media-composer { position: relative; margin-top: 9px; }
.community-media-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.community-media-toolbar > span { margin-right: 3px; color: var(--ink-3); font: 500 8px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.community-media-toolbar button { display: inline-flex; min-height: 30px; align-items: center; gap: 6px; padding: 6px 9px; color: var(--ink-2); border: 1px solid var(--border); border-radius: 6px; background: color-mix(in srgb, var(--surface-2) 88%, transparent); font: 500 9px var(--font-display); }
.community-media-toolbar button b { display: inline-grid; min-width: 17px; height: 17px; place-items: center; color: var(--brand); font: 600 10px var(--font-mono); }
.community-media-toolbar button:hover,
.community-media-toolbar button.on { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); background: color-mix(in srgb, var(--brand-soft) 75%, var(--surface)); }
.community-media-picker { position: relative; margin-top: 8px; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 9px; background: #0d1217; box-shadow: 0 18px 48px rgba(0,0,0,.24); }
.community-media-picker[hidden] { display: none; }
.community-media-picker-head { display: flex; align-items: center; padding: 9px 11px; border-bottom: 1px solid var(--border); background: #11171d; }
.community-media-picker-head b { color: var(--ink); font-size: 10px; font-weight: 600; }
.community-media-picker-head button { width: 26px; height: 26px; margin-left: auto; color: var(--ink-3); font-size: 16px; }
.community-media-picker > [data-media-content] { max-height: 360px; overflow: auto; padding: 12px; }
.community-media-note { margin: 10px 2px 0; color: var(--ink-3); font: 8px/1.5 var(--font-mono); }
.community-media-loading { padding: 20px; color: var(--ink-3); text-align: center; font: 9px var(--font-mono); }
.community-media-message { display: flex; min-height: 90px; align-items: center; gap: 13px; padding: 15px; color: var(--ink-3); border: 1px dashed var(--border-strong); border-radius: 7px; background: var(--surface-2); font-size: 10px; line-height: 1.5; }
.community-media-message.compact { min-height: 70px; }
.community-media-message.error { color: var(--down); }
.community-media-message b,
.community-media-message span { display: block; }
.community-media-message b { color: var(--ink); font-size: 11px; }
.community-media-provider-mark { display: grid !important; width: 42px; height: 34px; flex: 0 0 42px; place-items: center; color: var(--brand) !important; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); border-radius: 6px; font: 600 10px var(--font-mono); }
.community-emoji-fallback { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.community-emoji-fallback button { display: grid; aspect-ratio: 1; place-items: center; border-radius: 5px; font-size: 20px; }
.community-emoji-fallback button:hover { background: var(--surface-3); transform: translateY(-1px); }
.community-emoji-picker { width: 100%; height: 330px; --background: var(--surface); --border-color: transparent; --input-border-color: var(--border-strong); --input-font-color: var(--ink); --input-placeholder-color: var(--ink-3); --outline-color: var(--brand); --category-font-color: var(--ink-2); --indicator-color: var(--brand); }
.community-sticker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.community-sticker-grid button { display: grid; min-width: 0; justify-items: center; gap: 5px; padding: 10px 6px 8px; color: var(--ink-2); border: 1px solid var(--border); border-radius: 7px; background: color-mix(in srgb, var(--surface-2) 90%, transparent); font-size: 8px; }
.community-sticker-grid button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); background: var(--surface-3); }
.community-sticker-grid img { width: min(72px, 100%); height: 72px; object-fit: contain; filter: drop-shadow(0 7px 12px rgba(0,0,0,.22)); }
.community-gif-search { display: flex; gap: 7px; }
.community-gif-search label { flex: 1; }
.community-gif-search input,
.community-video-add input { width: 100%; height: 36px; padding: 0 10px; color: var(--ink); border: 1px solid var(--border-strong); border-radius: 5px; outline: none; background: var(--surface); font: 10px var(--font-display); }
.community-gif-search input:focus,
.community-video-add input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.community-gif-search > button,
.community-video-add > button { min-height: 36px; padding: 0 13px; color: var(--button-primary-text); border-radius: 5px; background: var(--brand); font: 600 9px var(--font-display); }
.community-gif-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.community-gif-results > button { overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); }
.community-gif-results > button:hover { border-color: var(--brand); }
.community-gif-results img { width: 100%; height: 100%; object-fit: cover; }
.community-gif-results .community-media-message { grid-column: 1 / -1; }
.community-video-add { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: end; gap: 8px; }
.community-video-add label > span { display: block; margin-bottom: 5px; color: var(--ink-2); font-size: 9px; }
.community-video-add label small { color: var(--ink-3); font: 8px var(--font-mono); }
.community-video-add > p { grid-column: 1 / -1; margin: 0; color: var(--down); font-size: 9px; }
.community-media-selected { margin-top: 10px; padding: 10px; border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border)); border-radius: 8px; background: color-mix(in srgb, var(--brand-soft) 28%, var(--surface-2)); }
.community-media-selected[hidden] { display: none; }
.community-media-selected > div:first-child { display: flex; align-items: center; margin-bottom: 8px; color: var(--ink-3); font: 500 8px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.community-media-selected > div:first-child button { margin-left: auto; color: var(--down); font: 500 8px var(--font-mono); }
.community-media-card { display: flex; min-height: 54px; align-items: center; gap: 10px; margin-top: 11px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
.community-media-card .community-media-play { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); border-radius: 50%; background: var(--brand-soft); font-size: 10px; }
.community-media-card small,
.community-media-card b { display: block; }
.community-media-card small { margin-bottom: 3px; color: var(--brand); font: 7px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.community-media-card b { color: var(--ink-2); font-size: 10px; font-weight: 550; }
.community-media-embed,
.community-media-image { margin: 15px 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-inset); }
.community-video-frame { position: relative; aspect-ratio: 16/9; background: #05080b; }
.community-video-frame iframe { position: absolute; width: 100%; height: 100%; inset: 0; border: 0; }
.community-media-embed figcaption,
.community-media-image figcaption { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 11px; color: var(--ink-3); border-top: 1px solid var(--border); font-size: 9px; }
.community-media-embed figcaption span { color: var(--brand); font: 600 7px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.community-media-embed figcaption b,
.community-media-image figcaption b { min-width: 0; overflow: hidden; color: var(--ink-2); font-size: 9px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.community-media-embed figcaption a { margin-left: auto; flex: 0 0 auto; color: var(--brand); }
.community-media-image { width: min(460px, 100%); }
.community-media-image > img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: radial-gradient(circle at 50% 45%, rgba(94,190,235,.08), transparent 62%); }
.community-media-image.sticker { width: min(280px, 100%); }
.community-media-image.sticker > img { height: 220px; padding: 22px; }
.community-media-image.compact { width: min(300px, 100%); margin: 11px 0 0; border-radius: 6px; }
.community-media-image.compact > img { max-height: 150px; }
.community-media-image.compact.sticker > img { height: 120px; padding: 10px; }
.community-media-image.compact figcaption { min-height: 33px; padding: 6px 8px; }
.community-media-image.compact figcaption span { display: none; }
.community-reactions { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.community-reaction-chip,
.community-reaction-add > button { display: inline-flex; min-height: 29px; align-items: center; gap: 5px; padding: 5px 8px; color: var(--ink-3); border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 9px; }
.community-reaction-chip span { font-size: 14px; }
.community-reaction-chip b { color: var(--ink-2); font: 600 9px var(--font-mono); }
.community-reaction-chip:hover,
.community-reaction-chip.on,
.community-reaction-add > button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 44%, var(--border)); background: var(--brand-soft); }
.community-reaction-add { position: relative; }
.community-reaction-menu { position: absolute; z-index: 8; bottom: calc(100% + 7px); left: 0; display: grid; width: 210px; padding: 6px; border: 1px solid var(--border-strong); border-radius: 8px; background: #11171d; box-shadow: 0 18px 50px rgba(0,0,0,.38); }
.community-reaction-menu[hidden] { display: none; }
.community-reaction-menu button { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 7px; padding: 7px 8px; color: var(--ink-2); border-radius: 5px; text-align: left; }
.community-reaction-menu button:hover { color: var(--ink); background: var(--surface-3); }
.community-reaction-menu button span { font-size: 15px; }
.community-reaction-menu button b { font-size: 9px; font-weight: 500; }

@media (max-width: 640px) {
  .community-media-toolbar > span { width: 100%; }
  .community-media-toolbar button { flex: 1; justify-content: center; }
  .community-emoji-fallback { grid-template-columns: repeat(6, 1fr); }
  .community-sticker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-gif-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-video-add { grid-template-columns: 1fr; }
  .community-video-add > p { grid-column: auto; }
  .community-media-embed figcaption { align-items: flex-start; flex-direction: column; }
  .community-media-embed figcaption a { margin-left: 0; }
  .community-reaction-menu { right: 0; left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .community-emoji-fallback button { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .community-primary,
  .community-topic,
  .community-modal,
  .community-overlay { animation: none; transition: none; }
}

/* Public guest reading: previews stay open, with five complete discussions before signup. */
.community-guest-access {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 12px 0;
  padding: 12px 15px;
  color: var(--ink-2);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand-soft) 34%, var(--surface));
}
.community-guest-access[hidden] { display: none; }
.community-guest-access > div:first-child { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.community-guest-access > div:first-child > i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.community-guest-access b,
.community-guest-access small { display: block; }
.community-guest-access b { color: var(--ink); font-size: 11px; }
.community-guest-access small { margin-top: 2px; color: var(--brand-2); font-size: 9px; }
.community-guest-access p { margin: 0; flex: 1; color: var(--ink-3); font-size: 10px; line-height: 1.45; }
.community-guest-links { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.community-guest-links a { min-height: 32px; padding: 8px 10px; color: var(--ink-2); border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); font-size: 9px; font-weight: 600; text-decoration: none; }
.community-guest-links a:last-child { color: var(--button-primary-text); border-color: var(--brand); background: var(--brand); }
.community-guest-access.limit-reached { border-color: color-mix(in srgb, var(--warn) 34%, var(--border)); background: color-mix(in srgb, var(--warn) 5%, var(--surface)); }
.community-guest-access.limit-reached > div:first-child > i { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 10%, transparent); }
.community-guest-access.limit-reached small { color: var(--warn); }

.community-read-limit { position: relative; width: min(560px, 100%); padding: 36px; overflow: visible; text-align: center; }
.community-read-limit > .community-modal-close { position: absolute; top: 14px; right: 14px; }
.community-read-limit-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 15px; place-items: center; color: var(--brand-2); border: 1px solid var(--brand-line); border-radius: 50%; background: var(--brand-soft); font: 600 16px var(--font-mono); }
.community-read-limit > span { color: var(--brand); font: 600 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.community-read-limit h2 { margin: 8px 0 0; color: var(--ink); font-size: 24px; font-weight: 600; }
.community-read-limit > p { max-width: 470px; margin: 12px auto 0; color: var(--ink-2); font-size: 12px; line-height: 1.65; }
.community-limit-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.community-limit-actions > button { min-height: 38px; padding: 9px 12px; color: var(--ink-3); font-size: 10px; }
.community-locked { display:flex; align-items:flex-start; gap:11px; margin-top:14px; padding:13px; color:var(--ink-3); border:1px solid color-mix(in srgb,var(--warn) 25%,var(--border)); border-radius:9px; background:color-mix(in srgb,var(--warn) 4%,var(--surface-2)); }
.community-locked > span { display:grid; width:27px; height:27px; flex:0 0 27px; place-items:center; color:var(--warn); border:1px solid color-mix(in srgb,var(--warn) 30%,var(--border)); border-radius:50%; }
.community-locked b { display:block; color:var(--ink-2); font-size:11px; }
.community-locked p { margin:3px 0 0; font-size:9.5px; line-height:1.5; }

@media (max-width: 720px) {
  .community-guest-access { align-items: flex-start; flex-wrap: wrap; }
  .community-guest-access p { min-width: calc(100% - 190px); }
  .community-guest-links { width: 100%; }
  .community-guest-links a { flex: 1; text-align: center; }
}
@media (max-width: 520px) {
  .community-guest-access { display: grid; gap: 10px; }
  .community-guest-access p { min-width: 0; }
  .community-limit-actions { align-items: stretch; flex-direction: column; }
  .community-limit-actions > * { width: 100%; }
}

/* A warmer, fuller Laplexus: people and prompts before dashboard furniture. */
.community-masthead.community-welcome-card {
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr);
  min-height: 300px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 11% 18%, color-mix(in srgb, var(--brand) 11%, transparent), transparent 23rem),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, var(--brand) 6%), color-mix(in srgb, var(--surface) 96%, var(--warn) 4%));
}
.community-welcome-card .community-masthead-copy { padding: 39px 44px 34px; }
.community-welcome-card .community-eyebrow {
  color: var(--ink-2);
  font: 600 11px var(--font-display);
  letter-spacing: 0;
  text-transform: none;
}
.community-welcome-card .community-masthead-copy h2 { max-width: 690px; margin-top: 13px; font-size: clamp(38px, 4.2vw, 55px); line-height: 1.02; }
.community-welcome-card .community-masthead-copy h2 span { margin-bottom: 9px; font: 600 11px var(--font-display); letter-spacing: 0; text-transform: none; }
.community-welcome-card .community-masthead-copy > p { max-width: 660px; font-size: 14px; line-height: 1.65; }
.community-people { display: flex; align-items: center; gap: 12px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--border); }
.community-people > p { margin: 0; color: var(--ink-3); font-size: 11px; line-height: 1.45; }
.community-face-stack { display: flex; min-width: 31px; padding-left: 5px; }
.community-face-stack .community-avatar { width: 31px; height: 31px; margin-left: -6px; border-width: 2px; border-color: var(--surface); font-size: 8px; }
.community-face-stack .community-avatar-staff::after { display: none; }

.community-prompt-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  margin: 18px;
  padding: 27px 26px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--warn) 26%, var(--border));
  border-radius: 14px;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--warn) 8%, var(--surface-2)), color-mix(in srgb, var(--surface-2) 96%, var(--brand) 4%));
}
.community-prompt-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -75px; bottom: -100px; border-radius: 50%; background: color-mix(in srgb, var(--warn) 9%, transparent); }
.community-prompt-card > span { color: var(--warn); font: 600 10px var(--font-display); }
.community-prompt-card > div { height: 34px; margin-top: 23px; color: color-mix(in srgb, var(--warn) 70%, var(--ink)); font: 500 50px/.8 Georgia, serif; }
.community-prompt-card h3 { max-width: 300px; margin: 9px 0 0; color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.18; letter-spacing: -.025em; }
.community-prompt-card p { max-width: 310px; margin-top: 12px; font-size: 12px; line-height: 1.58; }
.community-prompt-card button { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 9px 0; color: var(--brand-2); font-size: 11px; font-weight: 650; }
.community-prompt-card button:hover { color: var(--brand); }
.community-prompt-card button b { transition: transform .16s ease; }
.community-prompt-card button:hover b { transform: translateX(3px); }

.community-room-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 19px;
  margin-top: 14px;
  padding: 12px 16px;
  color: var(--ink-3);
  border: 1px solid var(--border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  font-size: 10px;
}
.community-room-line b { margin-right: 3px; color: var(--ink); font: 650 11px var(--font-display); }
.community-room-open { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--ink-2); }
.community-room-open i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }
.community-viewbar { margin-top: 10px; padding: 7px 9px; }
.community-browse-trigger,
.community-viewbar > small { font-family: var(--font-display); font-size: 9.5px; font-weight: 550; letter-spacing: 0; text-transform: none; }

.community-layout { grid-template-columns: 190px minmax(480px, 1fr) 245px; gap: 16px; margin-top: 26px; }
.community-rail.right { display: flex; }
.community-panel { border-radius: 12px; }
.community-panel-head h3,
.community-panel h3 { font-size: 11px; }
.community-panel-head small { font-family: var(--font-display); font-size: 9px; }
.community-categories button { min-height: 38px; font-size: 11.5px; }

.community-starter-list { display: grid; padding: 6px; }
.community-starter-list button { display: grid; gap: 4px; padding: 12px 10px; border-radius: 8px; text-align: left; }
.community-starter-list button + button { border-top: 1px solid var(--border); border-radius: 0; }
.community-starter-list button:hover { background: var(--surface-2); }
.community-starter-list b { color: var(--ink-2); font-size: 10.5px; font-weight: 600; line-height: 1.35; }
.community-starter-list small { color: var(--ink-3); font-size: 9px; line-height: 1.4; }
.community-host-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px; color: var(--ink-3); border: 1px solid color-mix(in srgb, var(--warn) 18%, var(--border)); border-radius: 11px; background: color-mix(in srgb, var(--warn) 4%, var(--surface)); font-size: 9.5px; line-height: 1.55; }
.community-host-note p { margin: 0; }
.community-host-note b { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 10.5px; }
.community-host-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 28%, var(--border)); border-radius: 50%; background: color-mix(in srgb, var(--warn) 7%, var(--surface-2)); font: 650 8px var(--font-mono); }

.community-index-heading > div > span { color: var(--ink-3); font: 600 10px var(--font-display); letter-spacing: 0; text-transform: none; }
.community-index-heading h3 { margin-top: 4px; font-size: 27px; }
.community-index-heading p { font-family: var(--font-display); font-size: 9px; letter-spacing: 0; text-transform: none; }
.community-toolbar { margin-bottom: 11px; }
.community-search input { height: 44px; border-radius: 9px 0 0 9px; font-size: 12px; }
.community-sort { border-radius: 0 9px 9px 0; }
.community-thread-index { gap: 12px; }
.community-topic { grid-template-columns: 44px minmax(0, 1fr); gap: 15px; padding: 20px 20px 17px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, var(--cat-color) 6%); }
.community-topic::before { inset-block: 18px; width: 4px; }
.community-topic .community-avatar { width: 42px; height: 42px; }
.community-topic-meta { font-size: 10px; }
.community-author-name { font-size: 11px; }
.community-topic-context { margin-top: 8px; }
.community-category-pill { padding: 4px 8px; font: 600 9px var(--font-display); letter-spacing: 0; text-transform: none; }
.community-pinned { font-family: var(--font-display); font-size: 9px; letter-spacing: 0; text-transform: none; }
.community-topic h3 { margin: 12px 0 7px; font-size: 20px; line-height: 1.25; }
.community-topic p { font-size: 12px; line-height: 1.62; -webkit-line-clamp: 3; }
.community-topic-footer { margin-top: 15px; padding-top: 13px; }
.community-tags span { font-family: var(--font-display); font-size: 9px; }
.community-topic-stats,
.community-topic-stats b { font-family: var(--font-display); font-size: 9.5px; }

@media (max-width: 1180px) {
  .community-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .community-rail.right { display: none; }
}
@media (max-width: 900px) {
  .community-masthead.community-welcome-card { grid-template-columns: 1fr; }
  .community-prompt-card { margin: 0 24px 24px; }
  .community-room-open { width: 100%; margin: 2px 0 0; }
  .community-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .community-welcome-card .community-masthead-copy { padding: 29px 22px 24px; }
  .community-welcome-card .community-masthead-copy h2 { font-size: 38px; }
  .community-prompt-card { margin: 0 14px 14px; padding: 23px 20px; }
  .community-prompt-card > div { margin-top: 16px; }
  .community-room-line { gap: 8px 14px; }
  .community-room-line > span:not(.community-room-open) { flex: 1; min-width: 90px; }
  .community-people { align-items: flex-start; }
  .community-topic { grid-template-columns: 38px minmax(0, 1fr); padding: 17px 14px; }
  .community-topic .community-avatar { width: 36px; height: 36px; }
  .community-topic h3 { font-size: 18px; }
  .community-topic p { font-size: 11.5px; }
}

/* Front-page newsletter: announcements become a rotating editorial lead. */
.community-newsletter {
  display: grid;
  grid-template-columns: minmax(430px, 650px) minmax(300px, 1fr);
  width: min(1180px, 100%);
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 22px 65px rgba(0, 0, 0, .14);
}
.community-newsletter-stage {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  color: #f7f5ee;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.14), transparent 22%),
    linear-gradient(145deg, #173a42, #0a1d25 66%, #07161d);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.community-newsletter-stage.is-swiping { cursor: grabbing; }
.community-newsletter-stage[data-tone="method"] {
  background:
    radial-gradient(circle at 14% 83%, rgba(255,255,255,.12), transparent 21%),
    linear-gradient(145deg, #55364a, #241b2f 64%, #151320);
}
.community-newsletter-stage[data-tone="paper"] {
  color: #262219;
  background:
    radial-gradient(circle at 87% 9%, rgba(166,123,48,.13), transparent 23%),
    linear-gradient(145deg, #eee7d7, #d8cdb7);
}
.community-newsletter-paper {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(13px, 2vw, 23px);
  padding: clamp(28px, 4vw, 54px);
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: community-newsletter-in .36s ease both;
}
.community-newsletter-issue-number {
  position: absolute;
  top: clamp(58px, 8vw, 94px);
  right: clamp(24px, 4vw, 53px);
  color: currentColor;
  font: 600 clamp(74px, 11vw, 150px)/.8 var(--font-mono);
  letter-spacing: -.12em;
  opacity: .045;
  pointer-events: none;
}
.community-newsletter-stage[data-tone="paper"] .community-newsletter-paper {
  background-image:
    linear-gradient(rgba(47,39,25,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,39,25,.05) 1px, transparent 1px);
}
.community-newsletter-kicker,
.community-newsletter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.community-newsletter-kicker {
  padding-bottom: 18px;
  border-bottom: 1px solid currentColor;
  font: 600 10px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.community-newsletter-kicker span { display: inline-flex; align-items: center; gap: 9px; }
.community-newsletter-kicker span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #73dcc5; box-shadow: 0 0 0 5px rgba(115,220,197,.13); }
.community-newsletter-stage[data-tone="method"] .community-newsletter-kicker span::before { background: #ee9fc9; box-shadow: 0 0 0 5px rgba(238,159,201,.13); }
.community-newsletter-stage[data-tone="paper"] .community-newsletter-kicker span::before { background: #9e6c1e; box-shadow: 0 0 0 5px rgba(158,108,30,.12); }
.community-newsletter-kicker b { font-weight: 500; opacity: .64; }
.community-newsletter-copy { max-width: 520px; }
.community-newsletter-copy > p:first-child { margin: 0 0 15px; font: 500 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .62; }
.community-newsletter-copy h1 { margin: 0; color: inherit; font: 550 clamp(34px, 4.25vw, 61px)/.98 var(--font-serif); letter-spacing: -.045em; text-wrap: balance; }
.community-newsletter-copy > p:last-child { display: -webkit-box; max-width: 480px; margin: 19px 0 0; overflow: hidden; color: inherit; font-size: clamp(12px, 1.1vw, 14px); line-height: 1.65; opacity: .76; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.community-newsletter-rule { display: flex; align-items: center; gap: 6px; width: 92px; margin-top: 25px; }
.community-newsletter-rule i { display: block; width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 50%; opacity: .5; }
.community-newsletter-rule i:first-child { width: 54px; border-radius: 0; }
.community-newsletter-dots { display: flex; align-items: center; gap: 8px; }
.community-newsletter-dots button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: currentColor;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font: 600 8px var(--font-mono);
  opacity: .42;
  transition: width .2s ease, opacity .2s ease, color .2s ease, background .2s ease;
}
.community-newsletter-dots button:hover { opacity: .8; }
.community-newsletter-dots button.on { width: 52px; color: #07161d; border-color: #73dcc5; background: #73dcc5; opacity: 1; }
.community-newsletter-stage[data-tone="method"] .community-newsletter-dots button.on { border-color: #ee9fc9; background: #ee9fc9; }
.community-newsletter-stage[data-tone="paper"] .community-newsletter-dots button.on { color: #fff9eb; border-color: #7e5518; background: #7e5518; }
.community-newsletter-foot { padding-top: 18px; border-top: 1px solid currentColor; }
.community-newsletter-foot small { font: 500 9px var(--font-mono); letter-spacing: .04em; opacity: .65; }
.community-newsletter-foot a,
.community-newsletter-foot button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 15px;
  color: #07161d;
  border: 1px solid #73dcc5;
  border-radius: 999px;
  background: #73dcc5;
  font-size: 10px;
  font-weight: 700;
}
.community-newsletter-stage[data-tone="method"] .community-newsletter-foot a,
.community-newsletter-stage[data-tone="method"] .community-newsletter-foot button { border-color: #ee9fc9; background: #ee9fc9; }
.community-newsletter-stage[data-tone="paper"] .community-newsletter-foot a,
.community-newsletter-stage[data-tone="paper"] .community-newsletter-foot button { color: #fff9eb; border-color: #7e5518; background: #7e5518; }
.community-newsletter-foot a:hover,
.community-newsletter-foot button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.community-newsletter-foot span { font-size: 15px; transition: transform .16s ease; }
.community-newsletter-foot a:hover span,
.community-newsletter-foot button:hover span { transform: translateX(3px); }

.community-newsletter-index { display: flex; min-width: 0; flex-direction: column; padding: clamp(24px, 3vw, 39px); background: color-mix(in srgb, var(--surface-2) 78%, var(--surface)); }
.community-newsletter-index > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--border-strong); }
.community-newsletter-index > header span { display: flex; align-items: center; gap: 8px; color: var(--brand-2); font: 650 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.community-newsletter-index > header span i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }
.community-newsletter-index > header h2 { margin: 8px 0 0; color: var(--ink); font-size: clamp(25px, 2.4vw, 35px); font-weight: 560; letter-spacing: -.035em; }
.community-newsletter-index > header small { color: var(--ink-3); font: 500 10px var(--font-mono); white-space: nowrap; }
.community-newsletter-list { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.community-newsletter-list > button { position: relative; display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 4px 12px; flex: 1; align-content: center; padding: 17px 22px 17px 2px; color: var(--ink-3); border-bottom: 1px solid var(--border); text-align: left; }
.community-newsletter-list > button > span { grid-row: 1 / 3; padding-top: 2px; font: 500 9px var(--font-mono); }
.community-newsletter-list > button > b { color: var(--ink-2); font-size: 11px; font-weight: 650; }
.community-newsletter-list > button > small { display: -webkit-box; overflow: hidden; font-size: 10px; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.community-newsletter-list > button > i { position: absolute; top: 50%; right: 2px; width: 7px; height: 7px; border: 1px solid var(--ink-3); border-radius: 50%; transform: translateY(-50%); }
.community-newsletter-list > button:hover { color: var(--ink-2); }
.community-newsletter-list > button.on > span,
.community-newsletter-list > button.on > b { color: var(--brand-2); }
.community-newsletter-list > button.on > i { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.community-newsletter-index > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 23px; }
.community-newsletter-index > footer > p { max-width: 210px; margin: 0; color: var(--ink-3); font-size: 9px; line-height: 1.45; }
.community-newsletter-controls { display: flex; gap: 6px; }
.community-newsletter-controls button { display: grid; width: 37px; height: 37px; place-items: center; color: var(--ink-2); border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); font: 550 12px var(--font-mono); }
.community-newsletter-controls button:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); }
.community-newsletter-controls button:focus-visible,
.community-newsletter-list > button:focus-visible,
.community-newsletter-foot a:focus-visible,
.community-newsletter-foot button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@keyframes community-newsletter-in { from { opacity: .35; transform: translateY(7px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .community-newsletter { grid-template-columns: minmax(390px, 1fr) minmax(280px, .72fr); }
  .community-newsletter-paper { padding: 28px; gap: 11px; }
  .community-newsletter-copy h1 { font-size: 34px; }
  .community-newsletter-copy > p:last-child { margin-top: 12px; -webkit-line-clamp: 3; }
  .community-newsletter-rule { margin-top: 15px; }
  .community-newsletter-list > button { padding-block: 12px; }
}
@media (max-width: 760px) {
  .community-newsletter { grid-template-columns: 1fr; border-radius: 15px; }
  .community-newsletter-stage { aspect-ratio: 1; }
  .community-newsletter-index { padding: 23px 20px; }
  .community-newsletter-list > button { min-height: 85px; }
}
@media (max-width: 480px) {
  .community-newsletter-paper { padding: 22px; gap: 10px; }
  .community-newsletter-issue-number { top: 58px; right: 24px; font-size: 76px; }
  .community-newsletter-copy h1 { font-size: clamp(28px, 8.8vw, 36px); }
  .community-newsletter-copy > p:last-child,
  .community-newsletter-rule { display: none; }
  .community-newsletter-foot { gap: 12px; }
  .community-newsletter-foot small { display: none; }
  .community-newsletter-foot a,
  .community-newsletter-foot button { margin-left: auto; }
  .community-newsletter-index > footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .community-newsletter-paper { animation: none; }
  .community-newsletter-dots button,
  .community-newsletter-foot a,
  .community-newsletter-foot button,
  .community-newsletter-foot span { transition: none; }
}

/* Featured-news showcase: media-led, compact, and swipeable like a storefront feature rail. */
.community-newsletter {
  display: block;
  width: min(1180px, 100%);
  margin: 0 auto 26px;
  padding: 18px;
  overflow: visible;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 94%, var(--brand) 6%);
  box-shadow: 0 22px 65px rgba(0, 0, 0, .14);
}
.community-newsletter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 4px 14px;
}
.community-newsletter-head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 13px; }
.community-newsletter-head span { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-2); font: 650 9px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.community-newsletter-head span i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }
.community-newsletter-head h2 { margin: 0; color: var(--ink); font-size: 23px; font-weight: 610; letter-spacing: -.025em; }
.community-newsletter-admin { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; color: var(--ink-2); border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface-2); font-size: 9px; font-weight: 650; }
.community-newsletter-admin:hover { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); }
.community-newsletter-admin span { color: var(--brand); font-size: 12px; }

.community-newsletter-stage,
.community-newsletter-stage[data-tone="method"],
.community-newsletter-stage[data-tone="paper"] {
  aspect-ratio: auto;
  min-height: 438px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: 0 13px 34px rgba(0, 0, 0, .16);
}
.community-newsletter-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, .78fr);
  min-height: 438px;
  animation: community-feature-in .34s ease both;
}
.community-newsletter-visual {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 438px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(30px, 4vw, 52px);
  color: #f4fbfa;
  background:
    radial-gradient(circle at 72% 24%, rgba(97,225,199,.24), transparent 22%),
    linear-gradient(135deg, #153d46, #0a222c 62%, #081921);
}
.community-newsletter-stage[data-tone="method"] .community-newsletter-visual.fallback { background: radial-gradient(circle at 25% 75%, rgba(238,159,201,.22), transparent 25%), linear-gradient(135deg, #51354b, #261e36 66%, #151420); }
.community-newsletter-stage[data-tone="paper"] .community-newsletter-visual.fallback { color: #332719; background: radial-gradient(circle at 73% 23%, rgba(177,126,43,.18), transparent 23%), linear-gradient(135deg, #efe8d9, #d8cbb3); }
.community-newsletter-visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.55)); }
.community-newsletter-stage[data-tone="paper"] .community-newsletter-visual.fallback::after { background: linear-gradient(180deg, transparent 50%, rgba(83,60,24,.12)); }
.community-newsletter-visual.has-media { padding: 0; background: #081921; }
.community-newsletter-visual.has-media img { width: 100%; height: 100%; min-height: 438px; object-fit: cover; }
.community-newsletter-visual.has-media > span { position: absolute; z-index: 2; right: 24px; bottom: 22px; left: 24px; color: #fff; font: 650 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 12px #000; }
.community-newsletter-visual.fallback > span { position: absolute; z-index: 1; top: 32px; left: 36px; font: 600 9px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .68; }
.community-newsletter-visual.fallback > strong { position: absolute; z-index: 1; top: 50%; left: 50%; font: 620 clamp(110px, 18vw, 244px)/.8 var(--font-mono); letter-spacing: -.14em; opacity: .13; transform: translate(-52%, -52%); }
.community-newsletter-visual.fallback > p { position: relative; z-index: 2; max-width: 420px; margin: 0; color: inherit; font: 560 clamp(28px, 3.5vw, 48px)/1 var(--font-serif); letter-spacing: -.035em; text-wrap: balance; }
.community-newsletter-visual.fallback > i { position: absolute; z-index: 2; right: 34px; bottom: 37px; width: 75px; height: 1px; background: currentColor; opacity: .54; }
.community-newsletter-visual.video { align-items: center; justify-content: center; text-align: center; }
.community-newsletter-play { position: relative; z-index: 2; display: grid; width: 78px; height: 78px; margin-bottom: 18px; place-items: center; color: #081921; border-radius: 50%; background: #73dcc5; box-shadow: 0 0 0 12px rgba(115,220,197,.12); font-size: 22px; }
.community-newsletter-visual.video span,
.community-newsletter-visual.video b { position: relative; z-index: 2; }
.community-newsletter-visual.video span { max-width: 460px; font-size: 19px; font-weight: 650; }
.community-newsletter-visual.video b { margin-top: 7px; font: 600 9px var(--font-mono); letter-spacing: .13em; opacity: .65; }

.community-newsletter-detail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px 29px 27px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 88%, var(--brand) 12%), var(--surface-2));
}
.community-newsletter-detail .community-newsletter-kicker { padding: 0 0 18px; color: var(--ink-3); border-bottom: 1px solid var(--border); font: 600 8px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.community-newsletter-detail .community-newsletter-kicker span { color: var(--brand-2); }
.community-newsletter-detail .community-newsletter-kicker span::before { width: 6px; height: 6px; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.community-newsletter-detail h1 { margin: 24px 0 0; color: var(--ink); font: 580 clamp(24px, 2.3vw, 34px)/1.08 var(--font-serif); letter-spacing: -.035em; text-wrap: balance; }
.community-newsletter-detail > p { display: -webkit-box; margin: 17px 0 0; overflow: hidden; color: var(--ink-2); font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.community-newsletter-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.community-newsletter-tags span { padding: 5px 7px; color: var(--ink-3); border: 1px solid var(--border); border-radius: 4px; background: var(--surface-3); font: 550 8px var(--font-mono); }
.community-newsletter-detail > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.community-newsletter-detail > footer small { color: var(--ink-3); font: 500 8px var(--font-mono); }
.community-newsletter-action { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 0 13px; color: #07161d; border: 1px solid var(--brand); border-radius: 6px; background: var(--brand); font-size: 9px; font-weight: 700; }
.community-newsletter-action:hover { filter: brightness(1.07); transform: translateY(-1px); }
.community-newsletter-action span { font-size: 14px; }

.community-newsletter-nav { display: grid; grid-template-columns: 80px 1fr 120px; align-items: center; gap: 16px; padding: 15px 4px 0; }
.community-newsletter-nav > small { color: var(--ink-3); font: 600 9px var(--font-mono); }
.community-newsletter-nav .community-newsletter-dots { justify-content: center; }
.community-newsletter-dots button { width: 28px; height: 28px; color: var(--ink-3); border-color: var(--border-strong); background: var(--surface-2); opacity: 1; }
.community-newsletter-dots button.on { width: 46px; color: #07161d; border-color: var(--brand); background: var(--brand); }
.community-newsletter-nav .community-newsletter-controls { justify-content: flex-end; }
.community-newsletter-controls button { width: 32px; height: 32px; }
.community-newsletter-stage:focus-visible,
.community-newsletter-admin:focus-visible,
.community-newsletter-action:focus-visible,
.community-newsletter-dots button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@keyframes community-feature-in { from { opacity: .45; transform: translateX(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .community-newsletter-slide { grid-template-columns: minmax(0, 1.4fr) minmax(270px, .85fr); }
  .community-newsletter-detail { padding: 25px 23px 23px; }
  .community-newsletter-detail h1 { font-size: 25px; }
}
@media (max-width: 720px) {
  .community-newsletter { padding: 12px; border-radius: 14px; }
  .community-newsletter-head { padding: 3px 3px 12px; }
  .community-newsletter-head h2 { font-size: 20px; }
  .community-newsletter-admin { min-height: 31px; padding-inline: 9px; }
  .community-newsletter-stage,
  .community-newsletter-stage[data-tone="method"],
  .community-newsletter-stage[data-tone="paper"] { min-height: 0; }
  .community-newsletter-slide { grid-template-columns: 1fr; min-height: 0; }
  .community-newsletter-visual { min-height: 0; aspect-ratio: 16 / 10; padding: 27px; }
  .community-newsletter-visual.has-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .community-newsletter-visual.fallback > span { top: 22px; left: 25px; }
  .community-newsletter-visual.fallback > p { max-width: 300px; font-size: clamp(25px, 8vw, 38px); }
  .community-newsletter-detail { min-height: 282px; padding: 23px 22px 21px; }
  .community-newsletter-detail h1 { margin-top: 18px; font-size: 27px; }
  .community-newsletter-detail > p { margin-top: 13px; -webkit-line-clamp: 4; }
  .community-newsletter-nav { grid-template-columns: 55px 1fr auto; gap: 8px; }
}
@media (max-width: 460px) {
  .community-newsletter-head > div { display: block; }
  .community-newsletter-head h2 { margin-top: 5px; }
  .community-newsletter-admin { font-size: 0; }
  .community-newsletter-admin span { font-size: 12px; }
  .community-newsletter-detail { min-height: 310px; }
  .community-newsletter-detail > footer { align-items: flex-start; flex-direction: column; }
  .community-newsletter-action { width: 100%; justify-content: space-between; }
  .community-newsletter-nav { grid-template-columns: 1fr auto; }
  .community-newsletter-nav > small { display: none; }
  .community-newsletter-nav .community-newsletter-dots { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .community-newsletter-slide { animation: none; }
  .community-newsletter-action,
  .community-newsletter-dots button { transition: none; }
}
