/* Cube — public corp recruiting (directory + corp page).
 * Drops onto pages that extend base.html / public_base.html.
 * The corp's per-page accent is set inline as `--accent` on the page root.
 */

.crp {
  --bg: var(--darker-bg, #0a0a0c);
  --bg-1: #101015;
  --bg-2: #16161d;
  --bg-3: #1d1d27;
  --line: #262630;
  --line-2: #353542;
  --ink: #ececec;
  --ink-2: #b4b4be;
  --ink-3: #797982;
  --accent: #ff8c00;
  --good: #3ba55d;
  --font-display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}
.crp * { box-sizing: border-box; }
.crp a { color: inherit; text-decoration: none; }
.crp button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
/* ─── Density modes — scale card padding + main grid gaps. ─── */
.crp.cp-density-compact .cp-card-head { padding: 14px 18px 0; }
.crp.cp-density-compact .cp-card-body { padding: 12px 18px 18px; }
.crp.cp-density-compact .cp-grid { gap: 8px; }
.crp.cp-density-spacious .cp-card-head { padding: 26px 30px 0; }
.crp.cp-density-spacious .cp-card-body { padding: 20px 30px 30px; }
.crp.cp-density-spacious .cp-grid { gap: 22px; }

.crp.scanlines::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ─── Hero art (CSS-only fallback when no hero_image) ─── */
.crp-hero-art { position: absolute; inset: 0; background: linear-gradient(135deg, #0a0a0c 0%, #14141c 50%, #0a0a0c 100%); overflow: hidden; }
.crp-hero-art-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0,0,0,.6) 100%); }
.crp-hero-art-glow { position: absolute; inset: 0; }
.crp-hero-art-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.crp-pattern-grid { background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.crp-pattern-dots { background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.06) 0 1.5px, transparent 2px), radial-gradient(circle at 70% 80%, rgba(255,255,255,.04) 0 1.5px, transparent 2px); background-size: 60px 60px; }
.crp-pattern-stripes { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px); }
.crp-pattern-lines { background-image: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,.03) 40px 41px); }
.crp-pattern-noise { background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.06) 0 1.5px, transparent 2px), repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px); background-size: 60px 60px, auto; }

/* ─── Kill ticker ─── */
.kill-ticker { position: relative; display: flex; align-items: center; height: 32px; overflow: hidden; background: rgba(0,0,0,.5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kill-ticker-lane { display: flex; gap: 32px; padding: 0 16px; white-space: nowrap; animation: kt-scroll 60s linear infinite; }
.kt-item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; }
.kt-tag { color: var(--ink-3); letter-spacing: .15em; }
.kt-ship { color: var(--ink); font-weight: 500; }
.kt-sep { color: var(--ink-3); }
.kt-isk { font-weight: 600; color: var(--accent); }
.kt-sys { color: var(--ink-2); }
@keyframes kt-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .kill-ticker-lane { animation: none; } }

/* ─── Discord widget ─── */
.discord-widget { background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.dw-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.dw-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); }
.dw-title { flex: 1; }
.dw-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.dw-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.dw-online-pip { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; box-shadow: 0 0 4px var(--good); }
.dw-cta { display: block; padding: 10px; border-radius: 6px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: #000; letter-spacing: .03em; background: var(--accent); }

/* ─── Directory ─── */
.dir-topnav { display: flex; align-items: center; gap: 24px; padding: 14px 28px; flex-wrap: nowrap; background: rgba(10,10,12,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.dir-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; flex-shrink: 0; }
.dir-crest { display: inline-block; width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #c44d00); display: grid; place-items: center; color: #0a0a0c; font-size: 14px; }
.dir-wordmark { font-size: 14px; white-space: nowrap; }
.dir-tag { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.dir-topnav nav { margin-left: auto; display: flex; gap: 24px; }
.dir-topnav nav a { color: var(--ink-2); font-size: 13px; }
.dir-topnav nav a.active { color: var(--ink); }
.dir-login { padding: 8px 14px; border-radius: 4px; color: #000; font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; background: var(--accent); }

.dir-hero { max-width: 1280px; margin: 0 auto; padding: 56px 28px 32px; }
.dir-hero-eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .15em; text-transform: lowercase; }
.dir-hero-title { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -.01em; margin: 8px 0 14px; line-height: 1.1; }
.dir-hero-strike { color: var(--ink-3); font-weight: 400; }
.dir-hero-lede { color: var(--ink-2); max-width: 640px; font-size: 16px; line-height: 1.6; }

.dir-grid { display: grid; grid-template-columns: 280px 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 24px 28px 80px; }
@media (max-width: 880px) { .dir-grid { grid-template-columns: 1fr; } }

.dir-filters { align-self: start; padding-right: 8px; }
@media (min-width: 881px) { .dir-filters { position: sticky; top: 86px; max-height: calc(100vh - 110px); overflow-y: auto; } }
.dir-filter-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--ink-3); }
.dir-clear { color: var(--accent); font-size: 11px; text-decoration: underline; cursor: pointer; background: none; border: none; padding: 0; }
.dir-filter-section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dir-filter-section:last-child { border-bottom: 0; }
.dir-filter-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 10px; }
.dir-search { width: 100%; padding: 8px 10px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; color: var(--ink); }
.dir-search:focus { outline: none; border-color: var(--accent); }

.fchip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip-col { flex-direction: column; }
.fchip { display: inline-block; padding: 5px 10px; border-radius: 4px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: all .15s; }
.fchip:hover { border-color: var(--accent); color: var(--accent); }
.fchip.on { border-color: var(--accent); color: var(--accent); background: rgba(255,140,0,.08); }
.fchip-col .fchip { text-align: left; }
.dir-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.dir-toggle input { width: 16px; height: 16px; appearance: none; border: 1px solid var(--line-2); border-radius: 3px; position: relative; cursor: pointer; }
.dir-toggle input:checked { background: var(--accent); border-color: var(--accent); }
.dir-toggle input:checked::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #000; font-size: 11px; font-weight: 700; }
.dir-sort-select { width: 100%; padding: 8px 10px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-size: 13px; }

.dir-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.dir-results-head strong { color: var(--ink); font-weight: 600; }
.dir-empty { padding: 60px 20px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 8px; }
.dir-empty button { display: inline-block; margin-top: 12px; }
.dir-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1080px) { .dir-cards { grid-template-columns: 1fr; } }
/* Lead card — first ranked corp gets the spotlight (handoff §08). */
.dir-card-lead { grid-column: 1 / -1; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dir-card-lead .dir-card-art { height: 220px; }
.dir-card-lead .dir-card-titles h3 { font-size: 28px; }
@media (max-width: 880px) {
  .dir-topnav { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .dir-brand { font-size: 12px; gap: 6px; }
  .dir-crest { width: 22px; height: 22px; font-size: 12px; }
  .dir-wordmark { font-size: 12px; }
  .dir-tag { display: none; }
  .dir-topnav nav { display: none; }
  .dir-login { padding: 6px 10px; font-size: 10px; }
  .dir-hero { padding: 32px 16px 20px; }
  .dir-hero-title { font-size: 30px; line-height: 1.15; }
  .dir-hero-lede { font-size: 14px; }
  .dir-grid { padding: 16px 16px 56px; gap: 16px; }
  .dir-card-titles h3 { font-size: 15px; }
  .dir-card-art { height: 90px; }
  .dir-card-foot { gap: 12px; flex-wrap: wrap; }
  .dir-card-cta { padding: 6px 10px; font-size: 11px; }
}
.dir-card { display: flex; flex-direction: column; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; color: inherit; text-decoration: none; }
.dir-card:hover { transform: translateY(-2px); border-color: var(--card-accent, var(--accent)); box-shadow: 0 12px 36px rgba(0,0,0,.5); }
.dir-card.closed { opacity: .55; }
.dir-card-art { position: relative; height: 120px; overflow: hidden; }
.dir-card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dir-card-row1 { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.dir-card-logo { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); flex-shrink: 0; }
.dir-card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dir-card-titles h3 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.dir-card-ticker { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; }
.dir-card-online { color: var(--good); display: inline-flex; align-items: center; gap: 4px; }
.dir-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--good); display: inline-block; box-shadow: 0 0 4px var(--good); }
.dir-badge { font-family: var(--font-mono); font-size: 10px; padding: 3px 7px; border-radius: 3px; border: 1px solid; letter-spacing: .1em; text-transform: uppercase; flex-shrink: 0; align-self: start; }
.dir-badge.closed { color: var(--ink-3); border-color: var(--line); }
.dir-card-tagline { color: var(--ink-2); font-size: 13px; line-height: 1.5; margin: 0; }
.dir-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.dir-tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 6px; border-radius: 3px; background: var(--bg-3); color: var(--ink-2); }
.dir-tag.tz { background: rgba(255,140,0,.1); color: var(--accent); }
.dir-dot { color: var(--ink-3); }
.dir-card-stat { text-align: left; }
.dir-stat-num { font-family: var(--font-display); font-size: 16px; font-weight: 700; }
.dir-stat-lbl { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); white-space: nowrap; }

/* Directory card V2: outer is a div (not anchor) so we can attach a
 * separate Apply button without nesting interactive elements. The
 * `.dir-card-link` wraps the art + body so clicking anywhere on the
 * card body still navigates to the corp page; `.dir-card-actions`
 * sits below as siblings with explicit View + Apply buttons (Apply
 * only renders for authenticated visitors). */
.dir-card-link { display: block; color: inherit; text-decoration: none; flex: 1; }
.dir-card-stats-row { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.dir-card-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-1); }
.dir-card-action-view, .dir-card-action-apply {
  flex: 1; padding: 8px 12px; border-radius: 4px;
  text-align: center; text-decoration: none;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
.dir-card-action-view {
  color: var(--ink); background: transparent; border: 1px solid var(--line);
}
.dir-card-action-view:hover { border-color: var(--card-accent, var(--accent)); color: var(--card-accent, var(--accent)); }
.dir-card-action-apply {
  color: #000; font-weight: 700;
  /* background-color set inline per-corp via accent */
}
.dir-card-action-apply:hover { filter: brightness(1.1); }

/* ─── Corp page ─── */
.cp-page { min-height: 100vh; background: var(--bg); }

.cp-sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,10,12,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transform: translateY(-100%); transition: transform .25s; }
.cp-sticky.show { transform: translateY(0); }
.cp-sticky-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 28px; }
.cp-sticky-inner > img { width: 32px; height: 32px; border-radius: 4px; }
.cp-sticky-info { flex: 1; min-width: 0; }
.cp-sticky-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.cp-sticky-ticker { color: var(--accent); font-family: var(--font-mono); font-size: 11px; margin-left: 4px; }
.cp-sticky-meta { font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.cp-pip { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; box-shadow: 0 0 4px var(--good); }
.cp-sticky-cta { padding: 8px 16px; border-radius: 4px; color: #000; font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-family: var(--font-display); background: var(--accent); }

.cp-topnav { display: flex; align-items: center; gap: 24px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.cp-back { color: var(--ink-2); font-size: 13px; }
.cp-back:hover { color: var(--accent); }
.cp-brand { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; font-size: 13px; }
.cp-brand .crest { color: var(--accent); }
.cp-login { padding: 6px 12px; border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

.cp-hero { position: relative; min-height: 460px; overflow: hidden; border-bottom: 1px solid var(--line); }
.cp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(10,10,12,.4) 50%, var(--bg) 100%); }
.cp-hero-ticker { position: absolute; top: 0; left: 0; right: 0; }
.cp-hero-content { position: relative; max-width: 1280px; margin: 0 auto; padding: 88px 28px 56px; z-index: 2; }
.cp-hero-logo { position: absolute; top: 50%; transform: translateY(-50%); max-width: 240px; max-height: 240px; opacity: .92; z-index: 2; pointer-events: none; }
.cp-hero-logo-right { right: 56px; }
.cp-hero-logo-left { left: 56px; }
.cp-hero-logo-center { left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 880px) {
  .cp-hero-logo { max-width: 110px; max-height: 110px; opacity: .85; }
  .cp-hero-logo-right { right: 16px; }
  .cp-hero-logo-left { left: 16px; }
}

.cp-hero-status { position: absolute; top: 50px; right: 32px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(0,0,0,.6); border: 1px solid var(--accent); border-radius: 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); backdrop-filter: blur(8px); z-index: 3; white-space: nowrap; }
.cp-recruiting-pip { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cp-recruiting-pip.pulse { animation: cp-pulse 1.6s infinite; }
@keyframes cp-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .cp-recruiting-pip.pulse, .ap-pip.pulse { animation: none; } }
.cp-sep { color: var(--ink-3); }

/* Magazine vibe */
.cp-vibe-magazine .cp-hero { min-height: 460px; }
.cp-mag-issue { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .2em; text-transform: uppercase; display: flex; gap: 10px; margin-bottom: 12px; }
.cp-title-mag { font-family: var(--font-display); font-size: 96px; font-weight: 700; letter-spacing: -.03em; line-height: .9; margin: 0; max-width: 900px; text-wrap: balance; }
.cp-mag-rule { width: 80px; height: 4px; margin: 24px 0 16px; background: var(--accent); }
.cp-mag-tagline { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--ink-2); max-width: 720px; line-height: 1.3; margin-bottom: 20px; }
.cp-mag-byline { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .05em; }

/* Cinematic vibe */
.cp-vibe-cinematic .cp-hero { min-height: 560px; }
.cp-vibe-cinematic .cp-hero-overlay { background: radial-gradient(60% 80% at 25% 50%, transparent 0%, rgba(10,10,12,.7) 60%, var(--bg) 100%); }
.cp-vibe-cinematic .cp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 140px; background: var(--bg); clip-path: polygon(0 60%, 100% 0%, 100% 100%, 0 100%); z-index: 1; }
.cp-cinematic .cp-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; color: var(--accent); }
.cp-title-big { font-family: var(--font-display); font-size: 120px; font-weight: 700; letter-spacing: -.04em; line-height: .9; margin: 0; max-width: 880px; text-wrap: balance; }
.cp-title-big .accent { color: var(--accent); }
.cp-tagline-big { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--ink); margin-top: 16px; max-width: 640px; line-height: 1.2; }
@media (max-width: 880px) {
  .cp-title-big { font-size: 56px; line-height: .95; text-wrap: balance; }
  .cp-title-mag { font-size: 48px; line-height: .95; text-wrap: balance; }
  .cp-tagline-big { font-size: 18px; }
  .cp-mag-tagline { font-size: 16px; }
  .cp-hero { min-height: 380px; }
  .cp-vibe-magazine .cp-hero { min-height: 380px; }
  .cp-vibe-cinematic .cp-hero { min-height: 440px; }
  .cp-hero-content { padding: 72px 16px 40px; }
  /* Move the recruiting badge below the kill ticker on mobile so they don't
   * collide. Ticker is 32px tall; sit the badge well clear of it. */
  .cp-hero-status { top: 48px; right: 14px; font-size: 9px; padding: 5px 9px; gap: 6px; }
  .cp-recruiting-pip { width: 6px; height: 6px; }
  .cp-stats { padding: 24px 16px; gap: 10px; }
  .cp-stat { padding: 12px; }
  .cp-stat-num { font-size: 26px; }
  .cp-grid { padding: 32px 16px 56px; gap: 12px; }
  .cp-card-head { padding: 16px 18px 0; }
  .cp-card-body { padding: 12px 18px 18px; }
  .cp-card-head h2 { font-size: 20px; }
  .cp-mag-issue { font-size: 10px; }
  .cp-eyebrow { font-size: 11px; }
  .cp-topnav { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .cp-back { font-size: 12px; }
  .cp-brand { font-size: 11px; gap: 6px; }
  .cp-login { padding: 5px 10px; font-size: 10px; }
}
@media (max-width: 480px) {
  .cp-title-big { font-size: 44px; }
  .cp-title-mag { font-size: 38px; }
}

/* Stats module — renders inline as a card. The grid inside scales by column:
 * left column = 4-up wide, right rail = 1-up vertical. The legacy
 * `<section class="cp-stats">` wrapper is gone; stats now flow with the
 * other modules so they can be reordered alongside everything else. */
.cp-module-stats { padding: 4px; }
.cp-module-stats .cp-stats-grid { display: grid; gap: 12px; padding: 12px; }
/* Stats grid adapts to the module's span — at span 1 it's 2×2 (4 short
 * tiles), at span 2 it's also 2×2 but roomier, at span 3 it's a single
 * horizontal row. Avoids cramming 4 stats into a narrow card. */
.cp-module-stats.cp-module-span-1 .cp-stats-grid { grid-template-columns: repeat(2, 1fr); }
.cp-module-stats.cp-module-span-2 .cp-stats-grid { grid-template-columns: repeat(2, 1fr); }
.cp-module-stats.cp-module-span-3 .cp-stats-grid { grid-template-columns: repeat(4, 1fr); }
.cp-module-stats:not([class*="cp-module-span-"]) .cp-stats-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .cp-module-stats .cp-stats-grid { grid-template-columns: repeat(2, 1fr) !important; } }
.cp-stat { padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-1); }
.cp-module-span-1 .cp-stat { padding: 10px; }
.cp-stat-num { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1; color: var(--accent); }
.cp-module-span-1 .cp-stat-num { font-size: 22px; }
.cp-stat-lbl { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }
.cp-module-span-1 .cp-stat-lbl { font-size: 9px; margin-top: 4px; }

/* ─── Page grid (handoff §04) — 3 columns, modules pick a span 1 / 2 / 3.
 *  Mobile (≤ 720px) clamps every span to 1.
 *
 *  Default sparse `grid-auto-flow: row` (no `dense`) so visual order
 *  matches source order. `dense` would backfill earlier column gaps
 *  with later span-1 modules, which silently defeats the layout
 *  invariant that a span-2 always anchors a row before its paired
 *  span-1. We accept the occasional empty trailing column in exchange
 *  for predictable order.
 */
.cp-grid {
  max-width: 1280px; margin: 0 auto; padding: 48px 28px 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  /* default `align-items: stretch` — cards in the same row match the
   * tallest one's height. Without this, short cards (e.g. About with a
   * one-line tagline) leave dead space below them when paired with a
   * tall neighbor (e.g. Find us elsewhere with 4 link rows). */
}
/* Layout-only modules (dividers, spacers) shouldn't stretch — they
 * collapse to their natural height so they read as breaks/spaces, not
 * as full-height cards. */
.cp-grid > .cp-module-divider,
.cp-grid > .cp-module-spacer { align-self: start; }
.cp-module-span-1 { grid-column: span 1; min-width: 0; }
.cp-module-span-2 { grid-column: span 2; min-width: 0; }
.cp-module-span-3 { grid-column: span 3; min-width: 0; }
/* Per-module height tier for the heightable group (FC roster, doctrines,
 * Discord widget, gallery). The cap stops a content-heavy small card
 * from stretching a paired row into a wall of vertical space; the card
 * body scrolls internally if content exceeds. Free-text modules (about,
 * requirements, what_to_expect, faq) intentionally have no .cp-module-h-*
 * rule — they flow to natural height. Stats and killboard are also
 * excluded; both are short fixed-height strips. */
.cp-grid > :where(.cp-module-fc, .cp-module-doctrines,
                  .cp-module-discord, .cp-module-gallery).cp-module-h-normal { max-height: 360px; }
.cp-grid > :where(.cp-module-fc, .cp-module-doctrines,
                  .cp-module-discord, .cp-module-gallery).cp-module-h-tall   { max-height: 720px; }
.cp-grid > :where(.cp-module-fc, .cp-module-doctrines,
                  .cp-module-discord, .cp-module-gallery) .cp-card-body,
.cp-grid > :where(.cp-module-fc, .cp-module-doctrines,
                  .cp-module-discord, .cp-module-gallery)
  > :where(.cp-fc-list, .dw-list, .cp-gallery, .cp-gallery-grid) {
  overflow: auto; min-height: 0;
}
/* Mobile: drop the cap so each card flows naturally on a 1-col layout. */
@media (max-width: 720px) {
  .cp-grid > .cp-module-h-normal,
  .cp-grid > .cp-module-h-tall { max-height: none; }
}
@media (max-width: 720px) {
  .cp-grid { grid-template-columns: 1fr; }
  .cp-grid > .cp-module { grid-column: 1 / -1 !important; }
}
.cp-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cp-card-head { padding: 20px 24px 0; }
.cp-card-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; text-transform: lowercase; color: var(--accent); }
.cp-card-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 6px 0 0; color: var(--ink); }
.cp-card-body { padding: 16px 24px 24px; }
.cp-prose p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; white-space: pre-line; }
.cp-prose p:last-child { margin-bottom: 0; }
.cp-tag-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; margin: 16px 0 0; }
.cp-tag-row li { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 3px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.cp-tag-row li.style { border-color: var(--accent); color: var(--accent); }
.cp-tag-row li.tz { background: rgba(255,140,0,.08); }
.cp-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cp-checklist li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.cp-check { width: 22px; height: 22px; border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; }
.cp-timeline { display: flex; flex-direction: column; gap: 12px; }
.cp-tl-row { display: flex; gap: 14px; align-items: flex-start; }
.cp-tl-pip { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #000; font-weight: 700; font-family: var(--font-mono); font-size: 12px; display: grid; place-items: center; flex-shrink: 0; }
.cp-tl-text { flex: 1; padding-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cp-gallery-tile { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 6px; background: var(--bg-3); }
.cp-gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-gallery-label { position: absolute; bottom: 8px; left: 12px; font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.7); }
.cp-faq-row { border-bottom: 1px solid var(--line); }
.cp-faq-row:last-child { border-bottom: 0; }
.cp-faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; text-align: left;
  font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink);
}
.cp-faq-q-text { flex: 1 1 auto; min-width: 0; }
.cp-faq-q-text:hover { color: var(--accent); }
.cp-faq-toggle {
  flex-shrink: 0; padding: 4px 10px;
  background: transparent; border: 0; border-radius: 4px;
  font-family: var(--font-mono); font-size: 18px; color: var(--accent);
  cursor: pointer; line-height: 1;
}
.cp-faq-toggle:hover { background: rgba(255,255,255,.06); }
.cp-faq-a { padding: 0 0 16px; color: var(--ink-2); line-height: 1.65; font-size: 14px; white-space: pre-line; display: none; }
.cp-faq-row.open .cp-faq-a { display: block; }

/* ─── Hero module (handoff §03) ─────────────────────────────────────── */
.cp-module-hero {
  position: relative; padding: 0; overflow: hidden;
  display: grid; /* one cell — children stack via z-index */
}

/* Height variants — drama level. Use explicit height (not min-height) so
 * the user gets a predictable visual difference; content scrolls/clips
 * inside the band rather than stretching the band to fit. */
.cp-hero-h-short  { height: 240px; min-height: 240px; }
.cp-hero-h-normal { height: 380px; min-height: 380px; }
.cp-hero-h-tall   { height: 560px; min-height: 560px; }

/* The image art layer fills the whole module. */
.cp-module-hero .cp-hero-art {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg-2);
  cursor: default;
}
body.cp-editor-mode:not(.preview) .cp-module-hero[data-dropzone] { cursor: pointer; }
/* Editable + style-bar regions revert to normal cursor so users know
   those zones don't open the upload picker. */
body.cp-editor-mode:not(.preview) .cp-module-hero [contenteditable="true"],
body.cp-editor-mode:not(.preview) .cp-module-hero .cp-hero-style-bar,
body.cp-editor-mode:not(.preview) .cp-module-hero .cp-hero-style-bar button { cursor: auto; }
body.cp-editor-mode:not(.preview) .cp-module-hero [contenteditable="true"] { cursor: text; }
.cp-module-hero .cp-hero-art-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .25s ease, object-position .25s ease;
}
/* Fit modes. Cover is the full-bleed crop default. Contain shows the
 * whole image with letterboxing. Bleed lets the image sit at its
 * natural shape inside the hero with edges feathered into the
 * background — useful when the user wants the subject (e.g. a snake)
 * to occupy part of the hero without a hard rectangle cutoff. */
.cp-hero-fit-cover .cp-hero-art-img { object-fit: cover; }
.cp-hero-fit-contain .cp-hero-art-img { object-fit: contain; }
.cp-hero-fit-bleed .cp-hero-art-img {
  object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
/* When bleed mode pairs with a non-center focal, shift the mask anchor
 * so the fade follows the image — otherwise fading is always centered
 * on the hero, which looks wrong when the image is pushed to a corner. */
.cp-hero-fit-bleed.cp-hero-fc-tl .cp-hero-art-img,
.cp-hero-fit-bleed.cp-hero-fc-cl .cp-hero-art-img,
.cp-hero-fit-bleed.cp-hero-fc-bl .cp-hero-art-img {
  -webkit-mask-image: radial-gradient(ellipse at left center, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse at left center, #000 55%, transparent 100%);
}
.cp-hero-fit-bleed.cp-hero-fc-tr .cp-hero-art-img,
.cp-hero-fit-bleed.cp-hero-fc-cr .cp-hero-art-img,
.cp-hero-fit-bleed.cp-hero-fc-br .cp-hero-art-img {
  -webkit-mask-image: radial-gradient(ellipse at right center, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse at right center, #000 55%, transparent 100%);
}
/* Zoom — scales the image up beyond its natural fit. transform-origin
 * comes from the focal class so zooming converges on the same anchor. */
.cp-hero-z-100 .cp-hero-art-img { transform: scale(1); }
.cp-hero-z-125 .cp-hero-art-img { transform: scale(1.25); }
.cp-hero-z-150 .cp-hero-art-img { transform: scale(1.5); }
.cp-hero-z-200 .cp-hero-art-img { transform: scale(2); }
/* Focal — 3×3 anchor grid. Sets both `object-position` (for cover/contain
 * crop math) and `transform-origin` (for zoom math) so they agree. */
.cp-hero-fc-tl .cp-hero-art-img { object-position: 0% 0%;     transform-origin: 0% 0%; }
.cp-hero-fc-tc .cp-hero-art-img { object-position: 50% 0%;    transform-origin: 50% 0%; }
.cp-hero-fc-tr .cp-hero-art-img { object-position: 100% 0%;   transform-origin: 100% 0%; }
.cp-hero-fc-cl .cp-hero-art-img { object-position: 0% 50%;    transform-origin: 0% 50%; }
.cp-hero-fc-cc .cp-hero-art-img { object-position: 50% 50%;   transform-origin: 50% 50%; }
.cp-hero-fc-cr .cp-hero-art-img { object-position: 100% 50%;  transform-origin: 100% 50%; }
.cp-hero-fc-bl .cp-hero-art-img { object-position: 0% 100%;   transform-origin: 0% 100%; }
.cp-hero-fc-bc .cp-hero-art-img { object-position: 50% 100%;  transform-origin: 50% 100%; }
.cp-hero-fc-br .cp-hero-art-img { object-position: 100% 100%; transform-origin: 100% 100%; }

/* Overlay variants — keep text readable across any background. */
.cp-module-hero .cp-hero-art-overlay {
  position: absolute; inset: 0; pointer-events: none;
}
.cp-hero-ov-none .cp-hero-art-overlay { background: transparent; }
.cp-hero-ov-gradient .cp-hero-art-overlay {
  background: linear-gradient(90deg, color-mix(in oklab, var(--bg) 78%, transparent) 0%, color-mix(in oklab, var(--bg) 30%, transparent) 60%, transparent 100%),
              linear-gradient(180deg, transparent 50%, color-mix(in oklab, var(--bg) 90%, transparent) 100%);
}
.cp-hero-ov-dim .cp-hero-art-overlay { background: rgba(0,0,0,.5); }
.cp-hero-ov-vignette .cp-hero-art-overlay {
  background: radial-gradient(ellipse at center, transparent 35%, color-mix(in oklab, var(--bg) 88%, transparent) 100%);
}

/* Body — title block, positioned by `cp-hero-al-*` modifier. */
.cp-module-hero .cp-hero-body {
  position: relative; z-index: 2;
  padding: 56px 56px;
  max-width: 760px;
}
.cp-hero-al-bottom_left   .cp-hero-body { align-self: end;     justify-self: start; text-align: left; }
.cp-hero-al-bottom_center .cp-hero-body { align-self: end;     justify-self: center; text-align: center; }
.cp-hero-al-center        .cp-hero-body { align-self: center;  justify-self: start;  text-align: left; }
.cp-hero-al-top_left      .cp-hero-body { align-self: start;   justify-self: start;  text-align: left; }

.cp-module-hero .cp-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.cp-module-hero .cp-hero-title {
  margin: 14px 0 0; font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.02;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  overflow-wrap: break-word; word-break: break-word;
}
.cp-module-hero .cp-hero-tagline {
  margin-top: 18px; font-family: var(--font-display);
  font-size: 22px; font-style: italic; color: var(--ink-2);
  max-width: 600px;
}
.cp-module-hero .cp-hero-byline {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.cp-hero-al-bottom_center .cp-hero-byline { justify-content: center; }

/* ─── Hero text-size variants (independent of height) ─────────────────────
 * Compact = small title, tight tagline; Default = current; Bold = larger.
 * The body padding also shrinks at Compact so the text fits the band when
 * combined with Short height. */
.cp-hero-ts-compact .cp-hero-body { padding: 28px 32px; }
.cp-hero-ts-compact .cp-hero-title {
  font-size: clamp(26px, 3.4vw, 44px); margin-top: 6px;
}
.cp-hero-ts-compact .cp-hero-tagline { font-size: 15px; margin-top: 10px; }
.cp-hero-ts-compact .cp-hero-eyebrow { font-size: 10px; }
.cp-hero-ts-compact .cp-hero-byline { font-size: 10px; margin-top: 12px; }

.cp-hero-ts-bold .cp-hero-title {
  font-size: clamp(52px, 6.8vw, 96px);
}
.cp-hero-ts-bold .cp-hero-tagline { font-size: 26px; }

/* Short height drops eyebrow + byline so title + tagline have room to
 * breathe. The user picked Short for a clean stripe — secondary meta
 * lines turn it into clutter. Body padding + title font also shrink
 * automatically so a long corp name (e.g. "Insurance Fraud Division")
 * can wrap to two lines without spilling out of the band. The text-size
 * picker still lets the user override (Bold = bigger, Compact = smaller). */
.cp-hero-h-short .cp-hero-eyebrow,
.cp-hero-h-short .cp-hero-byline { display: none; }
.cp-hero-h-short .cp-hero-title { margin-top: 0; line-height: 1; }
.cp-hero-h-short .cp-hero-body { padding: 28px 36px; }
.cp-hero-h-short.cp-hero-ts-default .cp-hero-title {
  font-size: clamp(30px, 4.2vw, 54px);
}
.cp-hero-h-short.cp-hero-ts-default .cp-hero-tagline {
  font-size: 17px; margin-top: 10px;
}
.cp-hero-h-short.cp-hero-ts-bold .cp-hero-title {
  font-size: clamp(38px, 5.2vw, 68px);
}
.cp-hero-h-short.cp-hero-ts-bold .cp-hero-tagline { font-size: 20px; }

/* Recruiting pip floats top-right always. */
.cp-module-hero .cp-hero-status {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: rgba(0,0,0,.45);
  border: 1px solid var(--accent); border-radius: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--accent); text-transform: uppercase;
}
.cp-module-hero .cp-recruiting-pip {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.cp-module-hero .cp-recruiting-pip.pulse { animation: cp-pulse 1.6s infinite; }
@keyframes cp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Optional logo (corp logo or custom upload). */
.cp-module-hero .cp-hero-logo {
  position: absolute; top: 50%; transform: translateY(-50%);
  max-width: 240px; max-height: 240px; opacity: .92; z-index: 1;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.4));
}
.cp-module-hero .cp-hero-logo-right { right: 36px; }
.cp-module-hero .cp-hero-logo-left { left: 36px; }
.cp-module-hero .cp-hero-logo-center { left: 50%; transform: translate(-50%, -50%); }

/* Empty-state click-to-upload affordance, only in editor mode + when no
 * hero_image is set. Lives at module level (not inside .cp-hero-art) so
 * the overlay can't cover it. */
.cp-module-hero > .cp-hero-empty {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center; align-content: center;
  gap: 8px; pointer-events: none;
  font-family: var(--font-mono); color: var(--ink-2);
  letter-spacing: .14em; text-transform: uppercase; font-size: 12px;
}
.cp-module-hero .cp-hero-empty-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px dashed var(--line-3); border-radius: 50%;
  font-size: 22px; color: var(--ink-2);
  background: rgba(0,0,0,.45);
}
.cp-module-hero .cp-hero-empty-hint { font-size: 10px; color: var(--ink-3); opacity: .8; }

/* "Replace image" pill — visible only when an image is already set,
 * sits top-left so it never collides with the recruiting status pip
 * (top-right) or the chrome buttons. Fades in on hover. */
.cp-hero-replace {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(0,0,0,.55);
  border: 1px solid var(--line-2); border-radius: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  color: var(--ink-2); text-transform: uppercase;
  cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
body.cp-editor-mode:not(.preview) .cp-module-hero:hover .cp-hero-replace,
body.cp-editor-mode:not(.preview) .cp-module-hero.selected .cp-hero-replace { opacity: 1; }
.cp-hero-replace:hover { color: var(--accent); border-color: var(--accent); }
.cp-hero-replace-icon {
  width: 18px; height: 18px; display: inline-grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%; font-size: 11px;
}
body.cp-editor-mode .cp-module-hero .cp-hero-art.drag-over ~ .cp-hero-empty,
body.cp-editor-mode .cp-module-hero:has(.cp-hero-art.drag-over) .cp-hero-empty { color: var(--accent); }
body.cp-editor-mode .cp-module-hero .cp-hero-art.drag-over ~ .cp-hero-empty .cp-hero-empty-icon,
body.cp-editor-mode .cp-module-hero:has(.cp-hero-art.drag-over) .cp-hero-empty-icon {
  border-color: var(--accent); color: var(--accent);
}
body.cp-editor-mode .cp-hero-art.drag-over::after {
  content: ""; position: absolute; inset: 0;
  border: 2px dashed var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  pointer-events: none;
}

/* In-editor style bar at the bottom edge of the hero. */
.cp-hero-style-bar {
  position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 4;
  display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 10px;
  background: rgba(0,0,0,.55); border: 1px solid var(--line-2);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .15s;
  font-family: var(--font-mono);
  justify-content: flex-end;
}
body.cp-editor-mode:not(.preview) .cp-module-hero:hover .cp-hero-style-bar,
body.cp-editor-mode:not(.preview) .cp-module-hero.selected .cp-hero-style-bar { opacity: 1; }
.cp-hero-style-bar .cp-hsb-group { display: flex; align-items: center; gap: 4px; }
.cp-hero-style-bar .cp-hsb-label {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-right: 4px;
}
.cp-hero-style-bar button {
  padding: 3px 8px; background: transparent; border: 0; border-radius: 10px;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-2);
  letter-spacing: .04em; cursor: pointer;
}
.cp-hero-style-bar button:hover { background: rgba(255,255,255,.08); color: var(--ink); }
.cp-hero-style-bar button.on {
  background: var(--accent); color: var(--accent-ink);
}

/* 3×3 focal-point picker — tiny dot grid. Each cell is a button; the
 * active one fills with accent so the user can see the current anchor. */
.cp-hero-style-bar .cp-hsb-focal-grid {
  display: grid; grid-template-columns: repeat(3, 12px); grid-template-rows: repeat(3, 12px);
  gap: 2px; padding: 3px;
  background: var(--bg-2); border-radius: 4px;
}
/* `!important` because the parent `.cp-hero-style-bar button` rule has
 * comparable specificity and was leaking padding: 4px 8px onto the cells,
 * blowing out their 12×12 box and stacking them so only the rightmost
 * cell in each row received clicks. */
.cp-hero-style-bar .cp-hsb-focal-cell {
  width: 12px !important; height: 12px !important;
  padding: 0 !important; min-width: 0 !important;
  background: rgba(255,255,255,.18); border-radius: 1px;
}
.cp-hero-style-bar .cp-hsb-focal-cell:hover { background: rgba(255,255,255,.4); }
.cp-hero-style-bar .cp-hsb-focal-cell.on {
  background: var(--accent);
}

@media (max-width: 720px) {
  .cp-hero-h-tall, .cp-hero-h-normal { min-height: 320px; }
  .cp-module-hero .cp-hero-body { padding: 32px 22px; }
  .cp-hero-style-bar { display: none; }
}

/* ─── FC roster module ─── */
.cp-fc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cp-fc-row { display: flex; align-items: center; gap: 12px; }
.cp-fc-portrait { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); object-fit: cover; flex-shrink: 0; }
.cp-fc-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); }
.cp-fc-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.cp-fc-empty { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding: 12px 0; }

/* ─── Spacer — pure blank vertical room. Always 32px tall. Place
 * multiple to stack more breathing room. Invisible on the public page;
 * the editor shows a faint dashed outline so corp leaders can see + drag
 * it. */
.cp-module-spacer {
  background: transparent; border: 0; min-height: 32px;
}
body.cp-editor-mode:not(.preview) .cp-module-spacer {
  border: 1px dashed var(--line-2); border-radius: 4px;
  display: grid; place-items: center;
}
.cp-spacer-hint {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3);
}

/* ─── Section divider — pure layout. Optional eyebrow + thin accent rule.
 * Cards above/below get visual breathing room without an extra vertical
 * gap because the divider's own .cp-card padding does the work. */
.cp-module-divider {
  background: transparent; border: 0; padding: 18px 0 6px;
}
.cp-divider-row {
  display: flex; align-items: center; gap: 14px;
}
.cp-divider-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3);
  flex-shrink: 0;
}
.cp-divider-label:empty::before {
  content: ""; /* keep the row height stable when label is blank */
}
.cp-divider-rule {
  flex: 1 1 auto; height: 1px; background: var(--line-2);
}

/* ─── Doctrines module — ship-name chips, no fitting detail ─── */
.cp-doctrine-chips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cp-doctrine-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  letter-spacing: .04em;
}
.cp-card-sub {
  margin: 6px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.4;
}

/* ─── Video reel module ─── */
.cp-video-body { padding: 0; }
.cp-video-frame { width: 100%; aspect-ratio: 16/9; border: 0; display: block; background: var(--bg-2); }
.cp-video-empty { padding: 24px; text-align: center; color: var(--ink-3); font-size: 13px; }
/* Fallback link below the iframe — covers the case where the video
 * owner has disabled embedding (YouTube error 153) or the embed loads
 * but plays nothing useful. Always rendered when there's a known watch
 * URL; quiet enough to ignore when the embed works. */
.cp-video-fallback {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px; margin-top: 6px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px;
  text-decoration: none;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
  letter-spacing: .04em; transition: color .15s, border-color .15s;
}
.cp-video-fallback:hover { color: var(--accent); border-color: var(--accent); }
.cp-video-fallback-hint {
  font-size: 10.5px; color: var(--ink-3); letter-spacing: 0;
  text-transform: none; line-height: 1.5;
}

/* Inline URL input — used by the video_reel + discord_embed modules in
 * editor mode so users can paste their URL directly without bouncing to
 * the legacy form-based settings page. */
.cp-url-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 4px;
  margin-top: 8px;
}
.cp-url-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.cp-url-input {
  padding: 7px 10px; background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 3px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
}
.cp-url-input:focus {
  outline: none; border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, var(--bg));
}
.cp-url-help {
  font-family: var(--font-body); font-size: 10.5px; color: var(--ink-3);
  line-height: 1.5;
}

/* ─── Killboard ticker module — just the marquee, no header chrome.
 * The card itself becomes a slim horizontal strip the kill rows
 * scroll across. Extra padding / borders go away so it reads as a
 * dedicated readout rather than another titled card. */
.cp-module-killboard {
  padding: 0; overflow: hidden;
  background: transparent; border: 0;
}
.cp-module-killboard .kill-ticker {
  height: 36px; overflow: hidden;
  background: var(--bg-1);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

/* ─── Discord embed module ─── */
.cp-module-discord { padding: 14px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.cp-module-discord .dw-head { display: flex; gap: 10px; align-items: center; }
.cp-module-discord .dw-icon { width: 28px; height: 28px; display: grid; place-items: center; background: var(--bg-2); border-radius: 50%; color: var(--accent); font-size: 16px; flex-shrink: 0; }
.cp-module-discord .dw-name { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.cp-module-discord .dw-meta { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; color: var(--ink-3); margin-top: 3px; }
.cp-module-discord .dw-online-pip { width: 6px; height: 6px; border-radius: 50%; background: #2d6a4f; flex-shrink: 0; }
.cp-module-discord .dw-cta {
  background: transparent; color: var(--accent);
  padding: 6px 10px; border: 1px solid var(--accent); border-radius: 4px;
  text-align: center; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.cp-module-discord .dw-cta:hover { background: var(--accent); color: var(--accent-ink); }
/* Discord widget iframe — fills the card body. The padding on
 * .cp-module-discord eats some pixels but the iframe is allowed to grow
 * past the cap; the height-tier max-height rule (.cp-module-h-*) clips it
 * to 360 / 720 with internal scroll so it stays consistent with the
 * other heightable modules. */
.cp-module-discord .dw-iframe {
  width: 100%; flex: 1 1 auto; min-height: 320px;
  border: 0; border-radius: 6px;
  background: var(--bg-2);
}

.cp-apply-card { background: var(--bg-1); border: 1px solid var(--accent); border-radius: 10px; overflow: hidden; }
.cp-apply-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.cp-apply-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: lowercase; color: var(--accent); }
.cp-apply-head h3 { margin: 4px 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }
.cp-apply-sub { font-size: 12px; color: var(--ink-3); }
.apply-discord-cta { display: block; padding: 14px 16px; border-radius: 4px; background: var(--accent); color: #000; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; margin: 16px 20px 20px; }
.apply-secondary { display: block; padding: 12px 20px 16px; text-align: center; font-size: 12px; color: var(--ink-3); }
.apply-secondary a { color: var(--accent); text-decoration: underline; }

/* Join-via-Cube module — secondary path that always routes through
 * Cube login + EVE SSO + auto-apply. Outline-style button so the
 * existing apply card's filled-accent primary stays the loudest CTA;
 * this one reads as "or take this path instead." */
.cp-join-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.cp-join-card .cp-card-head { padding: 18px 20px 8px; }
.cp-join-card h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.cp-join-card .cp-card-body { padding: 0 20px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.cp-join-lede { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }
.cp-join-cta {
  display: block; padding: 11px 14px; text-align: center;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600;
  color: var(--accent); background: transparent;
  border: 1px solid var(--accent); border-radius: 4px;
  text-decoration: none; margin-top: auto;
  transition: background .15s, color .15s;
}
.cp-join-cta:hover { background: var(--accent); color: var(--accent-ink); }
.cp-join-done { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .06em; padding: 10px 0; }
.cp-join-editor-note { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); padding: 6px 8px; background: var(--bg-2); border-radius: 3px; line-height: 1.4; }

.apply-done { padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.apply-done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #000; font-size: 28px; font-weight: 700; }
.apply-done h3 { margin: 0; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.apply-done p { color: var(--ink-2); font-size: 13px; line-height: 1.5; margin: 0; }
.apply-pipeline { display: flex; flex-direction: column; gap: 8px; align-self: stretch; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ap-step { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.ap-step.done { color: var(--ink); }
.ap-step.now { color: var(--accent); font-weight: 600; }
.ap-pip { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.ap-step.done .ap-pip { background: var(--accent); }
.ap-step.now .ap-pip { background: var(--accent); }
.ap-pip.pulse { animation: cp-pulse 1.6s infinite; }
.cta-primary { padding: 12px 20px; border-radius: 4px; color: #000; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; align-self: stretch; text-align: center; background: var(--accent); }

/* Links — single column inside the 360px rail (avoids tile overflow); only
 * goes 2-up when the page collapses to single-column and the card spans the
 * full width. */
.cp-links-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (max-width: 1080px) { .cp-links-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .cp-links-grid { grid-template-columns: 1fr; } }
.cp-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; transition: all .15s; text-decoration: none; }
.cp-link:hover { border-color: var(--accent); background: var(--bg-2); transform: translateX(2px); }
.cp-link-glyph { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 6px; font-size: 14px; flex-shrink: 0; background: rgba(255,140,0,.06); }
.cp-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cp-link-label { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); }
.cp-link-host { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-link-arrow { font-size: 14px; opacity: .6; color: var(--accent); }

.cp-rec-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.cp-rec-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: lowercase; color: var(--accent); margin-bottom: 10px; }
.cp-rec-row { display: flex; gap: 12px; align-items: center; }
.cp-rec-avatar { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--bg-1); object-fit: cover; }
.cp-rec-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.cp-rec-role { font-size: 11px; color: var(--ink-3); }
.cp-rec-quote { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-style: italic; font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* Discord widget member rows */
.dw-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: hidden; margin-bottom: 10px; }
.dw-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.dw-row-info { flex: 1; min-width: 0; }
.dw-row-name { font-size: 12px; font-weight: 500; color: var(--ink); }
.dw-row-role { font-size: 10px; color: var(--ink-3); }
.dw-avatar { position: relative; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: var(--bg-3); flex-shrink: 0; }
.dw-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dw-avatar-fallback { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-family: var(--font-mono); font-weight: 600; font-size: 9px; }

/* Home-page recruiting marquee (renders inside dashboard for non-members) */
.recruiting-marquee-card { padding: 0 !important; overflow: hidden; }
.recruiting-marquee { position: relative; height: 64px; overflow: hidden; }
.recruiting-marquee .marquee-track { display: flex; gap: 24px; padding: 12px 16px; align-items: center; white-space: nowrap; animation: rm-scroll 70s linear infinite; }
@media (prefers-reduced-motion: reduce) { .recruiting-marquee .marquee-track { animation: none; } }
.recruiting-marquee .marquee-item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border-color); border-radius: 6px; flex-shrink: 0; font-size: 12px; color: var(--text-primary); }
.recruiting-marquee .marquee-item img { width: 24px; height: 24px; border-radius: 4px; }
.recruiting-marquee .marquee-item .ticker { color: var(--text-secondary); font-family: monospace; }
.recruiting-marquee .marquee-item .pip { width: 6px; height: 6px; border-radius: 50%; }
@keyframes rm-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Recruiting moderation: pending pills + awaiting-review banner ───────── */
.cp-pending-pill {
  position: absolute; top: 8px; left: 8px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(20, 22, 28, 0.85); color: var(--text-primary, #f0f1f3);
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid rgba(255, 200, 90, 0.55);
  pointer-events: none;
}
.cp-pending-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #ffb84d; box-shadow: 0 0 6px rgba(255, 184, 77, 0.7);
}
.cp-gallery-tile-pending { outline: 2px dashed rgba(255, 184, 77, 0.55); outline-offset: -2px; }

.cp-await-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin: 0;
  background: linear-gradient(0deg, rgba(255, 184, 77, 0.06), rgba(255, 184, 77, 0.10));
  border-bottom: 1px solid rgba(255, 184, 77, 0.35);
  color: var(--text-primary, #f0f1f3);
  font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cp-await-banner[hidden] { display: none; }
.cp-await-banner.cp-await-denied {
  background: linear-gradient(0deg, rgba(220, 80, 80, 0.06), rgba(220, 80, 80, 0.10));
  border-bottom-color: rgba(220, 80, 80, 0.45);
}
.cp-await-pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffb84d; box-shadow: 0 0 8px rgba(255, 184, 77, 0.8);
  flex-shrink: 0;
}
.cp-await-banner.cp-await-denied .cp-await-pip { background: #e36363; box-shadow: 0 0 8px rgba(227, 99, 99, 0.8); }
.cp-await-text { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-await-note {
  padding: 2px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.25); color: var(--text-secondary, #c8cbd1);
  font-size: 11px; font-weight: 500;
}

.cp-edit-publish:disabled {
  opacity: 0.55; cursor: not-allowed; filter: grayscale(0.4);
}

/* ─── Recruitment Pages admin (Cube Settings) ─────────────────────────────── */
.cp-rp-section { margin-bottom: 32px; }
.cp-rp-section h2 {
  font: 600 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary, #c8cbd1);
  margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #2a2d36);
}
.cp-rp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-rp-table th, .cp-rp-table td {
  padding: 10px 12px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--border-color, #2a2d36);
}
.cp-rp-table th {
  font: 600 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-secondary, #c8cbd1);
}
.cp-rp-thumbs { display: flex; gap: 6px; align-items: center; }
.cp-rp-thumbs img {
  width: 48px; height: 32px; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--border-color, #2a2d36);
}
.cp-rp-corp { display: flex; align-items: center; gap: 10px; }
.cp-rp-corp-logo { width: 28px; height: 28px; border-radius: 4px; }
.cp-rp-corp-ticker { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-secondary, #c8cbd1); font-size: 11px; }
.cp-rp-empty { padding: 20px; text-align: center; color: var(--text-secondary, #c8cbd1); font-size: 13px; }

/* Green/black on/off pill toggle */
.cp-rp-toggle {
  position: relative; display: inline-block; width: 36px; height: 20px;
  background: #1d1f25; border: 1px solid var(--border-color, #2a2d36);
  border-radius: 999px; cursor: pointer; transition: background 120ms ease;
  vertical-align: middle;
}
.cp-rp-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #6b6f78; transition: transform 140ms ease, background 120ms ease;
}
.cp-rp-toggle[aria-pressed="true"] { background: rgba(67, 184, 110, 0.18); border-color: rgba(67, 184, 110, 0.5); }
.cp-rp-toggle[aria-pressed="true"]::after { transform: translateX(16px); background: #43b86e; box-shadow: 0 0 8px rgba(67, 184, 110, 0.55); }
.cp-rp-toggle:disabled { opacity: 0.5; cursor: wait; }

/* ─── Image delete (× button on hero + gallery tiles, editor only) ───────── */
.cp-image-delete {
  position: absolute; top: 8px; right: 8px; z-index: 6;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(220, 80, 80, 0.55);
  background: rgba(20, 22, 28, 0.85);
  color: #e36363; font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  display: grid; place-items: center;
  cursor: pointer; padding: 0; opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}
.cp-image-delete:hover { background: rgba(220, 80, 80, 0.85); color: #fff; }
.cp-image-delete:disabled { opacity: 0.5; cursor: wait; }
.cp-module-hero:hover .cp-image-delete,
.cp-gallery-tile:hover .cp-image-delete { opacity: 1; pointer-events: auto; }
.cp-hero-delete { right: 12px; top: 12px; width: 28px; height: 28px; font-size: 16px; }

/* ─── Preview banner (alliance leadership reviewing a submission) ─────── */
.cp-preview-banner {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 184, 77, 0.14);
  border-bottom: 1px solid rgba(255, 184, 77, 0.45);
  color: var(--ink, #f0f1f3);
  font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cp-preview-pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffb84d; box-shadow: 0 0 8px rgba(255, 184, 77, 0.8);
  flex-shrink: 0;
}
.cp-preview-text { flex: 1; opacity: 0.85; }
.cp-preview-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 184, 77, 0.55);
  color: #ffb84d; font-weight: 600; font-size: 12px; text-decoration: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  flex-shrink: 0;
}
.cp-preview-back:hover {
  background: #ffb84d; color: #1d1f25;
  border-color: #ffb84d; text-decoration: none;
}
.cp-preview-back-arrow { font-size: 14px; line-height: 1; }
.cp-preview-back-label { letter-spacing: 0.04em; }

/* ─── Refresh-stats button (editor only, on the stats module) ───────────── */
.cp-stats-refresh {
  position: absolute; top: 8px; right: 12px; z-index: 5;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(0,0,0,.45);
  color: var(--ink-2); font-size: 14px; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer; padding: 0; opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
}
.cp-module-stats { position: relative; }
.cp-module-stats:hover .cp-stats-refresh { opacity: 1; pointer-events: auto; }
.cp-stats-refresh:hover { background: var(--accent); color: #000; border-color: var(--accent); }
.cp-stats-refresh:disabled { opacity: 0.5; cursor: wait; }
.cp-stats-refresh.is-spinning { animation: cp-stats-spin .8s linear infinite; opacity: 1; pointer-events: auto; }
@keyframes cp-stats-spin { to { transform: rotate(360deg); } }

/* ─── Preview-mode banner on the visual editor (corp admin's "what does
 * this look like to the public?" view, not alliance-leadership review). */
.cp-preview-editor-banner { display: none; }
body.cp-editor-mode.preview .cp-preview-editor-banner { display: flex; }
.cp-preview-editor-banner .cp-preview-back { cursor: pointer; }
