/* ============================================================
   HOUSE OF STRAVOUR — data room surface (ProjectSend)
   Injected by nginx on the Stravour hostnames only. The USG
   ProjectSend instance is a separate deployment on a separate
   vhost and never loads this file.
   ============================================================ */

:root,
.light {
  --primary:              #8E6C3F;
  --primary-foreground:   #F6F1E7;
  --ring:                 #A87C43;
  --accent:               #F3EADC;
  --accent-foreground:    #4A3719;
  --sidebar-primary:      #8E6C3F;
  --sidebar-primary-foreground: #F6F1E7;
  --sidebar-ring:         #A87C43;
  --radius:               .125rem;
}

.dark {
  --background:           #100F0D;
  --foreground:           #EFEAE1;
  --card:                 #17150F;
  --card-foreground:      #EFEAE1;
  --popover:              #17150F;
  --popover-foreground:   #EFEAE1;
  --primary:              #8E6C3F;
  --primary-foreground:   #F6F1E7;
  --secondary:            #221F18;
  --secondary-foreground: #EFEAE1;
  --muted:                #1B1913;
  --muted-foreground:     #9A9184;
  --accent:               #241E14;
  --accent-foreground:    #E4D6BC;
  --border:               #2A2519;
  --input:                #2A2519;
  --ring:                 #A87C43;
  --sidebar-background:   #0C0B09;
  --sidebar-foreground:   #CFC7B8;
  --sidebar-primary:      #8E6C3F;
  --sidebar-primary-foreground: #F6F1E7;
  --sidebar-accent:       #221F18;
  --sidebar-accent-foreground: #EFEAE1;
  --sidebar-border:       #2A2519;
  --sidebar-ring:         #A87C43;
  --radius:               .125rem;
}

/* ---- Replace the ProjectSend mark with the wordmark -------- */
/* The logo is an inline SVG with this exact viewBox, which no other icon
   in the app uses, so the selector cannot catch anything else. */
svg[viewBox="0 0 1046.5 257"] { display: none !important; }

a:has(> svg[viewBox="0 0 1046.5 257"])::after,
a:has(svg[viewBox="0 0 1046.5 257"])::after {
  content: "HOUSE OF STRAVOUR";
  display: block;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-indent: 0.15em;
  line-height: 1.3;
  color: var(--foreground);
  text-align: center;
  margin-bottom: 4px;
}
a:has(svg[viewBox="0 0 1046.5 257"])::before {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, #A87C43, transparent);
}

/* ---- Remove third-party product attribution ---------------- */
a[href*="projectsend.org"],
a[href*="github.com/projectsend"],
a[href*="discord.gg/VT9n6cyvXT"] { display: none !important; }

/* ---- Typographic tightening to match the auth surface ------ */
h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
}
button, .btn, [type="submit"] { border-radius: 2px !important; }
input, select, textarea { border-radius: 2px !important; }

/* Focus visibility must survive the retheme. */
:focus-visible {
  outline: 2px solid #C79A5E !important;
  outline-offset: 2px !important;
}

/* ---- Direct utility overrides ------------------------------
   Belt and braces over the token overrides above: whichever way the build
   resolves --primary, the investor never sees the stock violet. */
.bg-primary,
button.bg-primary,
[class*="bg-primary"]      { background-color: #8E6C3F !important; }
.bg-primary:hover,
[class*="bg-primary"]:hover { background-color: #A0794A !important; }
.text-primary,
[class*="text-primary"]:not([class*="text-primary-foreground"]) { color: #C79A5E !important; }
.border-primary            { border-color: #8E6C3F !important; }
.ring-ring,
[class*="ring-ring"]       { --tw-ring-color: #A87C43 !important; }
.bg-sidebar-primary        { background-color: #8E6C3F !important; }
