:root {
  --bg: #0b0e14;
  --panel: #111623;
  --text: #e6eefb;
  --muted: #9bb0d3;
  --accent: #6bc4ff;
  --accent-2: #a96bff;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Overall content wrapper */
#site-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Header chrome */
#site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 22, 35, 0.55);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #22304f;
  width: 100%;
}

/* Header layout */
.header-inner {
  min-height: 56px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-inner .nav-left,
.header-inner .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-inner .nav-left {
  margin-right: auto;
}

.header-inner .nav-right {
  margin-left: auto;
}

/* For simple headers (no brand) on / and /portal/ */
.header-inner.header-simple .nav-right {
  margin-left: 0;
}

/* Brand in the centre for marketing pages */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Brand logo */
.brand img.logo {
  height: 28px;
  width: auto;
  display: block;
}

/* Splash logo (SVG file via <img>) */
.splash-logo-img {
  width: 240px;
  height: 240px;
  max-width: 80vw;
  max-height: 80vw;
  display: block;
  margin: 8px auto;
}


.brand .digital-sigil {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Generic button style */
.btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid #22304f;
  background: rgba(17, 22, 35, 0.85);
  color: var(--text);
  font-weight: 500;
}

/* Ghost button (used for Log In on anon pages) */
.btn.btn-ghost {
  background: transparent;
}

.btn:hover {
  text-decoration: none;
  background: rgba(26, 34, 54, 0.95);
}

/* Main content area */
#content,
.content {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 24px;
  flex: 1 1 auto;
  min-height: 0;
	
}

/* When authenticated, allow the main area to use the full width next to the left menu. */
body.auth .portal-layout #content,
body.auth .portal-layout .content.portal-main {
  max-width: none;
  margin: 24px 0;
  padding: 0 24px;
}

#content h1,
.content h1 {
  font-size: 32px;
  margin: 16px 0;
}

/* Panel look */
.panel {
  background: rgba(17, 22, 35, 0.75);
  border: 1px solid #22304f;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.muted {
  color: var(--muted);
}

/* Footer chrome — layout handled in footer.css */
.site-footer {
  background: rgba(17, 22, 35, 0.55);
  backdrop-filter: blur(8px);
  border-top: 1px solid #22304f;
  margin-top: auto;
  width: 100%;
}

/* Splash central buttons: equal width and spacing with synced text overlay */
.splash-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  gap: 0;
}

/* Central panel buttons: fixed width and tight hitbox */
.splash-buttons .btn-svg.btn-splash {
  position: relative;
  display: block;
  width: 260px; /* fixed width for Log In / Sign Up / Explore */
  line-height: 0; /* remove text line height from the anchor box */
}

/* SVG fills the entire clickable box */
.splash-buttons .btn-svg.btn-splash img.btn-svg-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Text overlay uses the exact SVG box as its frame */
.splash-buttons .btn-svg.btn-splash .btn-svg-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}

/* Log In + Sign Up: no gap between them */
.splash-buttons .btn-splash-auth + .btn-splash-auth {
  margin-top: 12px;
}

/* Add spacing only before Explore */
.splash-buttons .btn-splash-explore {
  margin-top: 12px;
}

/* Header SVG auth buttons: SVG + text overlay */
.header-inner .btn-svg {
  position: relative;
  display: inline-block;
  line-height: 0; /* remove text line height from anchor box */
}

.header-inner .btn-svg img.btn-svg-img {
  display: block;
  height: 32px;
  width: auto;
}

/* Header labels sit centred on the button SVG */
.header-inner .btn-svg .btn-svg-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}

/* Footer pill SVG buttons: SVG + text overlay */
.site-footer .btn-footer-pill {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.site-footer .btn-footer-pill img.btn-svg-img {
  display: block;
  height: 32px;
  width: auto;
}

.site-footer .btn-footer-pill .btn-svg-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  pointer-events: none;
  white-space: nowrap;
}


/* DSNET-HEADER-LOGO-FIX */
/* Keep the header chrome stable and ensure SVG assets render consistently. */
#site-header .nav-left{
  display:flex;
  align-items:center;
  gap:10px; /* home then menu */
}
#site-header .home-icon-link,
#site-header .header-menu{
  display:flex;
  align-items:center;
}
#site-header img.home-icon{
  width:32px;
  height:32px;
  display:block;
}
#site-header .header-menu{
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  line-height:0; /* remove stray inline height */
}
#site-header .header-menu img{
  width:32px;
  height:32px;
  display:block;
}

/* Force the brand logo to actually paint (some browsers can end up with a zero-alpha render in complex stacks). */
.brand img.logo{
  height:32px;
  width:auto;
  display:inline-block !important;
  opacity:1 !important;
  visibility:visible !important;
  vertical-align:middle;
  /* adds separation without changing the SVG file */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.55));
}

/* Logged-in layout: allow the content column to use the space next to the sidebar.
   Anonymous pages remain centred as before. */
body.auth .portal-layout .portal-main{
  flex: 1;
  min-width: 0;
}

body.auth .portal-layout #content.portal-main{
  max-width: none;
  margin: 24px 0;
  padding: 0 24px;
}
