/* dproject/static/brand/overlay.css */
:root {
  --bg:           #FAFAF8;
  --surface:      #FFFFFF;
  --surface2:     #F3F4F6;
  --surface-dark: #111827;

  --primary:       #0EA5E9;
  --primary-text:  #0369A1;
  --primary-light: #60D4F5;
  --secondary:     #0891B2;
  --accent:        #F59E0B;
  --accent-dk:     #D97706;

  --text:         #111827;
  --text-muted:   #4B5563;
  --border:       rgba(0,0,0,0.09);

  --success:        #059669;
  --error:          #dc2626;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --r:    12px;
  --r-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--text);
}

a { color: var(--primary-text); }
a:hover { color: #075985; }

/* Buttons. White text needs a deeper blue than the brand sky: #0EA5E9 gives 2.77:1 with white (AA wants
   4.5:1), #0369A1 gives 5.93:1. The sky blue stays for decoration; the actions the user must find are deep. */
.btn-primary,
.btn-primary.disabled, .btn-primary:disabled {
  background-color: var(--primary-text);
  border-color: var(--primary-text);
  color: #fff;
  border-radius: var(--r);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active {
  background-color: #075985;
  border-color: #075985;
  color: #fff;
}
.btn-primary:focus, .btn-primary.focus { box-shadow: 0 0 0 0.2rem rgba(3, 105, 161, 0.35); }
.btn-outline-primary { color: var(--primary-text); border-color: var(--primary-text); border-radius: var(--r); }
.btn-outline-primary:hover, .btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active { background-color: var(--primary-text); border-color: var(--primary-text); color: #fff; }
.btn-outline-primary:focus { box-shadow: 0 0 0 0.2rem rgba(3, 105, 161, 0.35); }
.btn-link { color: var(--primary-text); }
.btn-link:hover { color: #075985; }

/* Keyboard focus: one visible, high-contrast ring everywhere (Bootstrap removes the outline on .btn:focus). */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--primary-text);
  outline-offset: 2px;
}

/* Toasts: white text on Bootstrap's stock backgrounds is 3.0:1 (success) or worse; these are all >= 5:1. */
.toast.bg-success { background-color: #047857 !important; }
.toast.bg-info    { background-color: #0369A1 !important; }
.toast.bg-warning { background-color: #92400E !important; }
.toast.bg-danger  { background-color: #B91C1C !important; }

.card {
  border-radius: var(--r);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.alert-success { background-color: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.alert-danger  { background-color: #fef2f2; border-color: #fecaca; color: var(--error); }

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}
