/* ============================================================
   One Day BI — HTML Brand Design System
   Drop this whole file into a <style> block (self-contained docs)
   or link it. Tokens + components match the corporate brand.
   ============================================================ */

:root {
  /* ---- Colour palette ---- */
  --odbi-navy-dark:  #0F172A;  /* dark backgrounds, table headers */
  --odbi-navy:       #1E293B;  /* secondary dark, headings */
  --odbi-slate:      #334155;  /* body text */
  --odbi-slate-mid:  #64748B;  /* captions, secondary text */
  --odbi-slate-light:#94A3B8;  /* subtle text on dark, metadata */
  --odbi-amber:      #F59E0B;  /* PRIMARY ACCENT — bars, CTAs, icons */
  --odbi-amber-dark: #D97706;  /* high-priority labels, hovers */
  --odbi-amber-tint: #FEF3C7;  /* callout backgrounds */
  --odbi-blue:       #3B82F6;  /* info callouts, medium priority */
  --odbi-blue-tint:  #DBEAFE;  /* info callout background */
  --odbi-white:      #FFFFFF;
  --odbi-off-white:  #F8FAFC;  /* page background */
  --odbi-light-grey: #E2E8F0;  /* borders, dividers */

  /* Brand gradient (logo circle: amber -> mauve -> sky blue) */
  --odbi-gradient: linear-gradient(135deg, #F5A028 0%, #C87092 44%, #34B8EA 90%);

  /* ---- Typography ---- */
  --odbi-font-heading: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  --odbi-font-body: 'Calibri', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* ---- Shape ---- */
  --odbi-radius: 8px;
  --odbi-radius-sm: 4px;
  --odbi-shadow: 0 3px 8px rgba(15, 23, 42, 0.10);
  --odbi-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
  --odbi-maxw: 880px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--odbi-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--odbi-slate);
  background: var(--odbi-off-white);
  -webkit-font-smoothing: antialiased;
}

/* Signature 6px amber strip — put as the very first element in <body> */
.odbi-topbar {
  height: 6px;
  background: var(--odbi-amber);
  width: 100%;
}

.odbi-container {
  max-width: var(--odbi-maxw);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---- Headings ---- */
h1, h2, h3, h4 {
  font-family: var(--odbi-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--odbi-navy-dark);
  margin: 1.6em 0 0.5em;
}
h1 { font-size: 2rem;   color: var(--odbi-navy-dark); margin-top: 0; }
h2 { font-size: 1.5rem; color: var(--odbi-navy); }
h3 { font-size: 1.2rem; color: var(--odbi-slate); }
h4 { font-size: 1.05rem; color: var(--odbi-slate); }

p { margin: 0 0 1em; }
a { color: var(--odbi-blue); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--odbi-amber-dark); }

strong { color: var(--odbi-navy); }
small, .odbi-caption { color: var(--odbi-slate-mid); font-size: 0.85rem; }

hr { border: none; border-top: 1px solid var(--odbi-light-grey); margin: 2em 0; }

/* ---- Document header (logo + title + amber underline) ---- */
.odbi-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--odbi-amber);
  margin-bottom: 32px;
}
.odbi-header .odbi-logo { height: 56px; width: auto; flex: none; }
.odbi-header .odbi-header-text { display: flex; flex-direction: column; }
.odbi-header .odbi-brandname {
  font-family: var(--odbi-font-heading);
  font-weight: 700;
  color: var(--odbi-navy-dark);
  font-size: 1.1rem;
}
.odbi-header .odbi-doctitle { color: var(--odbi-slate-mid); font-size: 0.95rem; }

/* ---- Dark hero / section (navy background) ---- */
.odbi-hero {
  background: var(--odbi-navy-dark);
  color: var(--odbi-white);
  border-radius: var(--odbi-radius);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.odbi-hero h1, .odbi-hero h2, .odbi-hero h3 { color: var(--odbi-white); }
.odbi-hero p { color: var(--odbi-slate-light); }
.odbi-hero .odbi-logo { height: 64px; margin-bottom: 24px; }
/* decorative amber lines on dark blocks */
.odbi-hero::after {
  content: "";
  position: absolute; top: 0; right: 40px; bottom: 0; width: 2px;
  background: linear-gradient(var(--odbi-amber), transparent);
  opacity: 0.4;
}

/* ---- Cards (left amber accent + shadow) ---- */
.odbi-card {
  background: var(--odbi-white);
  border: 1px solid var(--odbi-light-grey);
  border-left: 4px solid var(--odbi-amber);
  border-radius: var(--odbi-radius);
  padding: 20px 24px;
  box-shadow: var(--odbi-shadow);
  margin-bottom: 20px;
}
.odbi-card h3 { margin-top: 0; color: var(--odbi-navy-dark); }

.odbi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

/* ---- Stat / metric cards (big amber number) ---- */
.odbi-stat {
  text-align: center;
  background: var(--odbi-white);
  border: 1px solid var(--odbi-light-grey);
  border-radius: var(--odbi-radius);
  padding: 24px;
  box-shadow: var(--odbi-shadow);
}
.odbi-stat .odbi-stat-num {
  font-family: var(--odbi-font-heading);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--odbi-amber);
  line-height: 1;
}
.odbi-stat .odbi-stat-label { color: var(--odbi-slate-mid); font-size: 0.9rem; margin-top: 8px; }

/* ---- Callout boxes ---- */
.odbi-callout {
  border-left: 4px solid var(--odbi-amber);
  background: var(--odbi-amber-tint);
  border-radius: var(--odbi-radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--odbi-navy);
}
.odbi-callout.odbi-info {
  border-left-color: var(--odbi-blue);
  background: var(--odbi-blue-tint);
}
.odbi-callout p:last-child { margin-bottom: 0; }
.odbi-callout strong { display: block; margin-bottom: 4px; }

/* ---- Buttons ---- */
.odbi-btn {
  display: inline-block;
  font-family: var(--odbi-font-heading);
  font-weight: 700;
  background: var(--odbi-amber);
  color: var(--odbi-navy-dark);
  padding: 12px 28px;
  border: none;
  border-radius: var(--odbi-radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.odbi-btn:hover { background: var(--odbi-amber-dark); color: var(--odbi-white); text-decoration: none; }
.odbi-btn-secondary {
  background: transparent;
  color: var(--odbi-amber);
  border: 2px solid var(--odbi-amber);
}
.odbi-btn-secondary:hover { background: var(--odbi-amber); color: var(--odbi-navy-dark); }

/* ---- Tables ---- */
.odbi-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
  box-shadow: var(--odbi-shadow);
  border-radius: var(--odbi-radius);
  overflow: hidden;
}
.odbi-table thead th {
  background: var(--odbi-navy-dark);
  color: var(--odbi-white);
  font-family: var(--odbi-font-heading);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
}
.odbi-table td { padding: 11px 16px; border-bottom: 1px solid var(--odbi-light-grey); }
.odbi-table tbody tr:nth-child(even) { background: var(--odbi-off-white); }
.odbi-table tbody tr:last-child td { border-bottom: none; }

/* Priority highlight cells/labels */
.odbi-priority-high { color: var(--odbi-amber-dark); font-weight: 700; }
.odbi-priority-med  { color: var(--odbi-blue); font-weight: 700; }
.odbi-priority-low  { color: var(--odbi-slate-mid); }

/* Pill badges */
.odbi-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; font-family: var(--odbi-font-heading);
}
.odbi-badge-amber { background: var(--odbi-amber-tint); color: var(--odbi-amber-dark); }
.odbi-badge-blue  { background: var(--odbi-blue-tint); color: var(--odbi-blue); }
.odbi-badge-navy  { background: var(--odbi-navy-dark); color: var(--odbi-white); }

/* Checkmark bullet list */
.odbi-checklist { list-style: none; padding: 0; }
.odbi-checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.odbi-checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--odbi-amber); font-weight: 700;
}

/* ---- Footer ---- */
.odbi-footer {
  background: var(--odbi-navy-dark);
  color: var(--odbi-slate-light);
  border-radius: var(--odbi-radius);
  padding: 24px 32px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.odbi-footer .odbi-footer-brand { display: flex; align-items: center; gap: 12px; }
.odbi-footer .odbi-footer-mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--odbi-gradient); flex: none;
}
.odbi-footer a { color: var(--odbi-amber); }

/* ---- Utilities ---- */
.odbi-gradient-text {
  background: var(--odbi-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.odbi-accent { color: var(--odbi-amber); }
.odbi-center { text-align: center; }

@media (max-width: 600px) {
  .odbi-container { padding: 24px 16px 48px; }
  h1 { font-size: 1.6rem; }
  .odbi-hero { padding: 32px 24px; }
}

@media print {
  body { background: var(--odbi-white); }
  .odbi-card, .odbi-stat, .odbi-table { box-shadow: none; }
}
