/*-- scss:rules --*/

// Compliance/Legal Book Theme - Red/Gold/Navy
$problem:    #6A1B9A; /* deep purple - problem identification */
$solution:   #2E7D32; /* green - solution implementation */
$discussion: #1565C0; /* blue - discussion and analysis */
$seealso:    #424242; /* grey - cross-references */

// Standard O'Reilly callouts with legal theme  
$note:      #1A237E;  /* indigo - legal information */
$tip:       #B8860B;  /* dark goldenrod - compliance best practices */
$warning:   #D84315;  /* deep orange - regulatory warnings */
$important: #B71C1C;  /* dark red - mandatory requirements */
$caution:   #4A148C;  /* deep purple - severe penalties */

// Fix icon styling and spacing
.callout-header .callout-icon {
  font-style: normal !important;
  margin-right: 0.5rem;
}

// Custom cookbook callout styling
.callout.callout-style-default.callout-problem {
  border-left-color: $problem;
  background-color: rgba(106, 27, 154, 0.05);
}

.callout.callout-style-default.callout-solution {
  border-left-color: $solution;
  background-color: rgba(46, 125, 50, 0.05);
}

.callout.callout-style-default.callout-discussion {
  border-left-color: $discussion;
  background-color: rgba(21, 101, 192, 0.05);
}

.callout.callout-style-default.callout-seealso {
  border-left-color: $seealso;
  background-color: rgba(66, 66, 66, 0.05);
}

// Legal document styling
.legal-citation {
  font-style: italic;
  color: $note;
  font-size: 0.9em;
}

// Footer citations - smaller text
.citation, .footnote-ref {
  font-size: 0.85em;
}

// Bibliography references 
.references {
  font-size: 0.9em;
}

// Compliance code blocks
.sourceCode {
  border-left: 3px solid $solution;
  background-color: #fafafa;
}

// Audit trail styling
.audit-entry {
  border: 1px solid #e0e0e0;
  background-color: #f5f5f5;
  padding: 0.5rem;
  margin: 0.25rem 0;
  font-family: monospace;
  font-size: 0.85em;
}