/* dbcreative shared design tokens + base styles
 * Use from any page like:
 *   <link rel="stylesheet" href="/_assets/dbcreative.css" />
 *   (or "../_assets/dbcreative.css" depending on depth)
 *
 * This stylesheet defines the navy/gold + Lato system used across DB team
 * deliverables. Override anything per page; or just use the CSS variables.
 */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand palette */
  --ink:        #1a1a2e;
  --ink-2:      #2d1b69;
  --gold:       #F2AA1F;

  /* Signal */
  --pos:        #16a34a;
  --pos-bg:     #f4fbf2;
  --neg:        #dc2626;
  --neg-bg:     #fff7f7;

  /* Neutrals */
  --text:       #2a2f3a;
  --muted:      #6b7280;
  --rule:       #e5e7eb;
  --soft:       #f1f3f5;
  --card:       #fff;
  --bg:         #f5f7fa;

  /* Tag colors (MMS / SMS pattern from the forensics work) */
  --tag-mms-bg: #fef3c7;
  --tag-mms-fg: #92400e;
  --tag-sms-bg: #dbeafe;
  --tag-sms-fg: #1e40af;

  /* Type */
  --font-body:  'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* Reset / base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Header band — used at the top of analyses, briefings, etc. */
.dbc-header {
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: #fff;
  padding: 22px 28px;
  border-bottom: 3px solid var(--gold);
}
.dbc-header h1 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
.dbc-header .sub { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 3px; }
.dbc-header .meta { font-size: 10.5px; color: rgba(255,255,255,0.5); margin-top: 6px; font-family: var(--font-mono); }

/* Container */
.dbc-container { max-width: 1100px; margin: 0 auto; padding: 22px 24px 60px; }

/* Section heading */
.dbc-sec h2 {
  font-size: 13px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink); margin: 0 0 8px;
  padding-bottom: 5px; border-bottom: 2px solid var(--soft);
}
.dbc-sec p.lede { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }

/* Card */
.dbc-card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; }

/* KPI strip */
.dbc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.dbc-kpi { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 12px; text-align: center; }
.dbc-kpi .val { font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.dbc-kpi .label { font-size: 10px; color: var(--muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3; }
.dbc-kpi.pos .val { color: var(--pos); }
.dbc-kpi.neg .val { color: var(--neg); }
.dbc-kpi.gold .val { color: #d97706; }

/* Tables */
.dbc-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.dbc-tbl thead th { background: var(--ink); color: #fff; padding: 9px 12px; text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.dbc-tbl thead th.num { text-align: right; }
.dbc-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--soft); }
.dbc-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.dbc-tbl tbody tr:hover { background: #fafbfc; }

/* Tag pills */
.dbc-tag { display: inline-block; padding: 2px 8px; border-radius: 11px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--soft); color: var(--text); }
.dbc-tag.mms { background: var(--tag-mms-bg); color: var(--tag-mms-fg); }
.dbc-tag.sms { background: var(--tag-sms-bg); color: var(--tag-sms-fg); }
.dbc-tag.pos { background: var(--pos-bg); color: var(--pos); }
.dbc-tag.neg { background: var(--neg-bg); color: var(--neg); }

/* Footer */
.dbc-footer { padding: 18px 28px; text-align: center; font-size: 11px; color: var(--muted); border-top: 1px solid var(--rule); background: var(--card); margin-top: 32px; }

/* Print niceties */
@page { size: letter; margin: 0.4in; }
@media print {
  body { background: #fff; }
  .dbc-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
