/* /venture investor portal — token-driven styles (PM-010 decouple).
   Every value resolves through the canonical token layer (tokens-canonical.css)
   so a theme swap restyles this view with zero edits here.
   Feature-specific semantic colors are hoisted into the local :root block
   below and consumed via var(); the SP-337 var(--token, #fallback) bridge
   pattern is used throughout. */

:root {
  /* ---- venture-local semantic tokens (def block: hex allowed here) ----
     These map look-specific surfaces to the canonical palette. A theme that
     overrides the canonical tokens flows through automatically. */
  --venture-doc-bg:        var(--color-canvas, #fafaf6);   /* subtle card fill */
  --venture-input-border:  var(--color-line, #cccccc);     /* neutral field border */
  --venture-error-bg:      var(--error-bg, #fdecec);       /* error surface tint */
  --venture-error-border:  var(--error-border, #f5c6cb);   /* error surface line */
  --venture-accent-tint:   var(--rb-orange-tint, #fff4ec); /* accent hover tint */
}

body.venture-mode .app-container,
body.venture-mode #cosmicBgRoot,
body.venture-mode .splash-overlay,
body.venture-mode #jargan-splash,
body.venture-mode .right-panel,
body.venture-mode .auth-modal-overlay,
body.venture-mode .mobile-nav,
body.venture-mode .jargan-nav,
body.venture-mode .cta-hero-panel,
body.venture-mode .voice-pack-save-banner {
  display: none !important;
}

body.venture-mode {
  background: var(--color-canvas, #f6f4ee);
  color: var(--color-ink, #1a1a1a);
  font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.venture-view {
  display: block;
  min-height: 100vh;
  padding: 48px 24px;
}
/* The display:block above wins over the user-agent `hidden` attribute style.
   Restore display:none for hidden sections. */
.venture-view[hidden] {
  display: none;
}

.venture-shell {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-line, #e3dfd5);
  padding: 40px 48px;
  box-shadow: var(--shadow-card-sm, 0 2px 12px rgba(0, 0, 0, 0.04));
}

.venture-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--color-line, #e3dfd5);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.venture-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.venture-brand__logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 18px;
  color: var(--color-accent, #DD5100);
}
.venture-brand__sep { color: var(--color-ink-muted, #999); }
.venture-brand__title {
  font-size: 14px;
  color: var(--color-ink-muted, #555);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.venture-greeting {
  font-size: 14px;
  color: var(--color-ink-muted, #555);
}
.venture-greeting span { color: var(--color-ink, #1a1a1a); font-weight: 600; }

.venture-section {
  margin-bottom: 32px;
}
.venture-section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted, #888);
  margin: 0 0 14px 0;
  font-weight: 600;
}

.venture-shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.venture-doc-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--color-line, #e3dfd5);
  background: var(--venture-doc-bg, #fafaf6);
  text-decoration: none;
  color: var(--color-ink, #1a1a1a);
  transition: background 0.15s, border-color 0.15s;
}
.venture-doc-card:hover {
  background: var(--color-surface, #ffffff);
  border-color: var(--color-accent, #DD5100);
}
.venture-doc-card__title {
  font-size: 15px;
  font-weight: 500;
}
.venture-doc-card__format {
  font-size: 11px;
  color: var(--color-ink-muted, #888);
  letter-spacing: 0.06em;
}

.venture-btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  margin-right: 8px;
  background: var(--color-surface, #ffffff);
  color: var(--color-ink, #1a1a1a);
}
.venture-btn--primary {
  background: var(--color-accent, #DD5100);
  color: var(--color-on-accent, #ffffff);
  border-color: var(--color-accent, #DD5100);
}
.venture-btn--primary:hover { background: var(--color-accent-strong, #c84800); }
.venture-btn--secondary {
  border-color: var(--color-accent, #DD5100);
  color: var(--color-accent, #DD5100);
}
.venture-btn--secondary:hover { background: var(--venture-accent-tint, #fff4ec); }
.venture-btn--ghost {
  border-color: var(--venture-input-border, #cccccc);
  color: var(--color-ink-muted, #555);
}
.venture-btn--ghost:hover { border-color: var(--color-ink-muted, #999); color: var(--color-ink, #1a1a1a); }
.venture-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.venture-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
  margin-top: 20px;
}
.venture-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.venture-field span {
  font-size: 12px;
  color: var(--color-ink-muted, #555);
  letter-spacing: 0.04em;
}
.venture-field input {
  padding: 10px 12px;
  border: 1px solid var(--venture-input-border, #cccccc);
  font-size: 14px;
  background: var(--color-surface, #ffffff);
  color: var(--color-ink, #1a1a1a);
}
.venture-field input:focus {
  outline: none;
  border-color: var(--color-accent, #DD5100);
}

.venture-error:empty { display: none; }
.venture-error {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--venture-error-bg, #fdecec);
  border: 1px solid var(--venture-error-border, #f5c6cb);
  font-size: 13px;
}

.venture-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line, #e3dfd5);
  font-size: 12px;
  color: var(--color-ink-muted, #888);
}
.venture-footer a { color: var(--color-accent, #DD5100); }
