/* ============================================================================
 * theme.css — HSC Library theme. Color palette + typography.
 *
 * Drop-in for Aimed-Research.com. Override any --var on a page or section
 * to retheme without touching the components.
 * ========================================================================== */

:root {
  /* Surface colors */
  --bg:        #f5f5f1;   /* page background — cream */
  --panel:     #ffffff;   /* primary card surface */
  --panel-2:   #fafaf7;   /* secondary surface (summary bars, table heads) */
  --hover:     #efeae0;

  /* Ink (text) */
  --ink:       #1a1a1a;   /* body text */
  --ink-soft:  #555;      /* secondary text, meta */
  --ink-muted: #888;

  /* Brand accents */
  --accent:        #8a1c1c; /* AR dark red */
  --accent-soft:   #c9a3a3;
  --accent-bg:     #fceaea;

  /* Status */
  --status-current:      #2e7a3d;
  --status-discontinued: #888;

  /* Section tint (Current vs Discontinued) */
  --section-current-bg:      #eef7f0;
  --section-current-border:  #cfe1d3;
  --section-discontinued-bg: #f1f0eb;

  /* Borders */
  --border:        #d8d4cc;
  --border-dashed: #e3d5b8;

  /* Links */
  --link:       #1a4d8f;
  --link-hover: #0f3060;

  /* Source-tag colors (provenance for specs) */
  --src-datasheet: #1a4d8f;
  --src-website:   #2e7a3d;
  --src-testing:   #8a1c1c;
  --src-simulated: #5b1a7a;
  --src-manual:    #1a7a78;
  --src-inferred:  #7a5b1a;
  --src-other:     #666;

  /* File-type chip colors */
  --ftype-datasheet: #1a4d8f;
  --ftype-manual:    #2e7a3d;
  --ftype-drawing:   #7a5b1a;
  --ftype-software:  #5b1a7a;
  --ftype-brochure:  #1a7a78;
  --ftype-pricelist: #7a1a3d;
  --ftype-note:      #555;
  --ftype-image:     #888;
  --ftype-other:     #666;

  /* Gaps panel */
  --gaps-bg:     #fff8f0;
  --gaps-border: #d9b88c;
  --gaps-head:   #fff5e6;
  --gaps-rule:   #e3d5b8;
  --gaps-accent: #8a4f1c;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-size-base: 15px;
  --line-height:    1.45;
}
