/* Orbit Community — creator discovery and versioned strategy marketplace. */
.community-page { min-width: 0; }
.community-work { padding: 28px clamp(18px, 2.4vw, 38px) 72px; }

.community-head {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(28px, 5vw, 80px); align-items: end;
  padding: clamp(26px, 4vw, 52px) 0 clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
}
.community-head .eyebrow { margin-bottom: 13px; }
.community-head h1 { max-width: 760px; font-size: clamp(38px, 4.2vw, 68px); font-weight: 520; line-height: .98; letter-spacing: -.045em; }
.community-head .lead { max-width: 68ch; margin-top: 22px; font-size: clamp(14px, 1.15vw, 17px); }
.trust-note {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px;
  padding: 16px; border-top: 1px solid var(--border); color: var(--muted);
}
.trust-note > span { color: var(--accent); padding-top: 2px; }
.trust-note p { margin: 0; font-size: 12.5px; line-height: 1.6; }
.trust-note strong { color: var(--fg); font-weight: 550; }

.creator-section { padding: 32px 0 38px; border-bottom: 1px solid var(--border); }
.section-line, .market-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-line h2, .market-head h2 { margin-top: 4px; font-size: 20px; font-weight: 580; letter-spacing: -.018em; }
.creator-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.creator-card {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px;
  min-width: 0; min-height: 154px; padding: 16px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--fg);
  transition: border-color .15s ease, background .15s ease, translate .15s ease;
}
.creator-card:hover { border-color: color-mix(in oklch, var(--accent) 50%, var(--border)); background: var(--surface-2); translate: 0 -1px; }
.creator-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.creator-avatar {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--border); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 11px; font-weight: 650; color: var(--fg);
}
.creator-blue { background: color-mix(in oklab, var(--stage-scan) 15%, var(--surface)); color: var(--stage-scan); }
.creator-cyan { background: color-mix(in oklab, var(--brand-2) 15%, var(--surface)); color: var(--brand-2); }
.creator-violet { background: color-mix(in oklab, var(--stage-watch) 15%, var(--surface)); color: var(--stage-watch); }
.creator-green { background: color-mix(in oklab, var(--yes) 15%, var(--surface)); color: var(--yes); }
.creator-main { min-width: 0; display: flex; flex-direction: column; }
.creator-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.creator-name i { font-style: normal; color: var(--accent); }
.creator-handle { margin-top: 1px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.creator-thesis { margin-top: 11px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.creator-proof { grid-column: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.creator-proof b { font-family: var(--font-mono); font-size: 14px; color: var(--yes); }
.creator-proof.is-down b { color: var(--no); }
.creator-proof small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; padding-top: 38px; }
.strategy-column { min-width: 0; }
.community-filters { display: grid; grid-template-columns: minmax(230px, 1fr) auto auto; gap: 10px; margin-bottom: 12px; }
.community-search { position: relative; min-width: 0; }
.community-search > span { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--muted); }
.community-search input {
  width: 100%; min-height: 38px; padding: 8px 12px 8px 36px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--fg); font: inherit; font-size: 13px;
}
.community-search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.community-filters .chipset { flex-wrap: nowrap; }
.community-filters .chipset button { min-height: 38px; }
.community-filters .select { min-width: 138px; min-height: 38px; font-size: 12.5px; }
.strategy-feed { display: grid; gap: 10px; }
.community-strategy { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.strategy-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--border); }
.strategy-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.strategy-author .creator-avatar { width: 32px; height: 32px; font-size: 9px; }
.strategy-author > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.strategy-author strong { font-size: 12.5px; font-weight: 580; }
.strategy-author small { font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); }
.save-btn { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--muted); }
.save-btn:hover { border-color: var(--border); color: var(--fg); background: var(--fg-soft); }
.save-btn[aria-pressed='true'] { color: var(--accent); background: var(--accent-soft); }
.strategy-copy { padding: 15px 16px 12px; }
.strategy-titleline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.strategy-titleline h3 { font-size: 17px; font-weight: 600; }
.strategy-copy > p { margin: 8px 0 0; max-width: 78ch; font-size: 13px; line-height: 1.55; color: var(--muted); }
.strategy-chain { padding: 0 16px 15px; }
.strategy-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; border-top: 1px solid var(--border); background: var(--surface-2); }
.strategy-metrics { display: flex; align-items: center; gap: 22px; }
.strategy-metrics > span { display: flex; flex-direction: column; gap: 1px; }
.strategy-metrics b { font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.strategy-metrics small { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.strategy-actions { display: flex; gap: 7px; }
.community-empty { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.community-empty p { margin: 0 0 13px; }

.learning-column { position: sticky; top: calc(var(--topbar) + 18px); }
.learning-panel, .boundary-panel { min-width: 0; }
.learning-panel .panel-head > span, .boundary-panel .panel-head > span { color: var(--accent); }
.learning-steps { list-style: none; margin: 0; padding: 4px 16px 8px; }
.learning-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.learning-steps li:last-child { border-bottom: 0; }
.learning-steps li > span { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }
.learning-steps strong { display: block; font-size: 12.5px; font-weight: 600; }
.learning-steps p { margin: 3px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.boundary-list { padding: 5px 16px 9px; }
.boundary-list p { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; margin: 0; padding: 10px 0; }
.boundary-list p + p { border-top: 1px solid var(--border); }
.boundary-list strong { display: block; font-size: 12px; font-weight: 580; }
.boundary-list small { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.45; color: var(--muted); }
.yes-mark { color: var(--yes); }.no-mark { color: var(--muted); }

.strategy-backdrop { position: fixed; inset: 0; z-index: 70; background: color-mix(in oklab, var(--bg) 58%, transparent); backdrop-filter: blur(3px); }
.strategy-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 71; width: min(560px, 100vw); height: 100dvh;
  display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--surface); box-shadow: -24px 0 60px color-mix(in oklab, var(--bg) 55%, transparent);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.drawer-head .micro { margin: 0 0 3px; }.drawer-head h2 { font-size: 19px; }
.drawer-head .btn-icon { font-size: 22px; font-weight: 300; }
.drawer-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px; }
.drawer-author { display: flex; align-items: center; gap: 10px; }
.drawer-author .creator-avatar { width: 34px; height: 34px; font-size: 9px; }
.drawer-author span:last-child { display: flex; flex-direction: column; }.drawer-author strong { font-size: 13px; }.drawer-author small { font-size: 11px; color: var(--muted); }
.drawer-description { margin: 18px 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.drawer-section { padding: 18px 0; border-top: 1px solid var(--border); }
.drawer-section h3 { font-size: 13px; font-weight: 600; }.drawer-section-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-pipeline { display: grid; gap: 0; margin-top: 14px; }
.drawer-stage { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; position: relative; padding-bottom: 19px; }
.drawer-stage:last-child { padding-bottom: 0; }
.drawer-stage:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 27px; bottom: 2px; border-left: 1px dashed var(--border); }
.drawer-stage > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font-family: var(--font-mono); font-size: 9px; color: var(--accent); }
.drawer-stage strong { display: block; font-size: 12.5px; }.drawer-stage small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.45; color: var(--muted); }
.drawer-section blockquote { margin: 12px 0 0; padding-left: 13px; border-left: 2px solid var(--border); font-size: 13px; line-height: 1.65; color: var(--muted); }
.drawer-disclosure { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }.drawer-disclosure > span { color: var(--accent); }.drawer-disclosure p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); }.drawer-disclosure strong { color: var(--fg); }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
body.has-drawer { overflow: hidden; }

@media (max-width: 1280px) {
  .creator-grid { grid-template-columns: 1fr 1fr; }
  .community-filters { grid-template-columns: minmax(220px, 1fr) auto; }
  .community-filters .chipset { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
}
@media (max-width: 1040px) {
  .community-head { grid-template-columns: 1fr; align-items: start; }
  .trust-note { max-width: 620px; }
  .community-layout { grid-template-columns: 1fr; }
  .learning-column { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .learning-column .panel + .panel { margin-top: 0; }
}
@media (max-width: 720px) {
  .community-work { padding-inline: 14px; }
  .community-head h1 { font-size: clamp(36px, 10vw, 50px); }
  .creator-grid { grid-template-columns: 1fr; }
  .creator-card { min-height: 132px; }
  .community-filters { grid-template-columns: 1fr; }
  .community-filters .chipset { grid-column: auto; grid-row: auto; }
  .community-filters .select { width: 100%; }
  .community-search input, .community-filters .select, .community-filters .chipset button { min-height: 44px; }
  .community-page .topbar-right .btn-primary { min-height: 44px; }
  .strategy-bottom { align-items: flex-start; flex-direction: column; }
  .strategy-actions { width: 100%; }.strategy-actions .btn { flex: 1; min-height: 44px; }
  .save-btn { width: 44px; height: 44px; }
  .learning-column { grid-template-columns: 1fr; }
  .drawer-foot { align-items: stretch; flex-direction: column; }.drawer-foot .btn { min-height: 44px; }
  .drawer-head .btn-icon { width: 44px; height: 44px; min-height: 44px; }
}
@media (max-width: 620px) {
  .community-page .topbar-right .btn-secondary { display: none; }
}
@media (max-width: 480px) {
  .community-head { padding-top: 22px; }
  .community-head h1 br { display: none; }
  .section-line { align-items: flex-start; flex-direction: column; }
  .strategy-metrics { width: 100%; justify-content: space-between; gap: 10px; }
  .strategy-chain { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .strategy-chain::-webkit-scrollbar { display: none; }
  .strategy-titleline h3 { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .creator-card { transition: none; }.creator-card:hover { translate: none; }
}
