/* ============================================================
   CIE Brand Overlay for DocBuilder HTML
   Context is Everything — https://www.context-is-everything.com
   ============================================================ */

/* --- Accent color overrides --- */
:root {
  --accent-color: #0EA5E9;
  --accent-hover: #0284C7;
}

a { color: var(--accent-color); }
a:hover { color: var(--accent-hover); }

/* --- CIE Brown dark theme overrides ---
   Base: #36292C  (CIE chocolate brown)
   Lighter variants for secondary/tertiary surfaces
   ------------------------------------------------ */
[data-theme="dark"] {
  --color-bg-default: #36292C;
  --color-bg-secondary: #3D3033;
  --color-bg-tertiary: #453839;
  --color-bg-hover: #453839;
  --color-bg-card: #3D3033;

  --color-border-default: #504043;
  --color-border-hover: #5E4D50;
  --color-divider: #453839;

  --color-shadow: rgba(40, 28, 30, 0.4);
}

/* Header bar in dark mode */
[data-theme="dark"] .header {
  background: #2E2224;
}

/* Sidebar in dark mode */
[data-theme="dark"] .sidebar {
  background: #322628;
}

/* --- Header height override --- */
:root {
  --header-height: 56px;
}

/* --- Header branding --- */
.cie-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.cie-logo-wrap img {
  height: 32px;
  width: auto;
}

/* --- Header nav links --- */
.cie-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
  margin-right: 1rem;
}

.cie-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
  transition: color 0.15s;
  white-space: nowrap;
}

.cie-nav a:hover {
  color: var(--text-primary, #111827);
}

[data-theme="dark"] .cie-nav a {
  color: #b0a0a3;
}

[data-theme="dark"] .cie-nav a:hover {
  color: #f3f4f6;
}

/* --- CTA button --- */
.cie-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: #0EA5E9;
  color: #fff !important;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s;
}

.cie-cta-btn:hover {
  background: #0284C7;
  color: #fff !important;
}

/* --- Footer --- */
.cie-footer {
  border-top: 1px solid var(--border-color, #e5e7eb);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary, #6b7280);
  max-width: 1200px;
  margin: 0 auto;
}

.cie-footer-links {
  display: flex;
  gap: 1.5rem;
}

.cie-footer-links a {
  color: var(--text-secondary, #6b7280);
  text-decoration: none;
  transition: color 0.15s;
}

.cie-footer-links a:hover {
  color: var(--accent-color);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .cie-nav {
    display: none;
  }

  .cie-footer {
    flex-direction: column;
    text-align: center;
  }
}
