/* =============================================================================
   THC FIELD TOOLS — BRAND

   Taken from the Contract Summary that goes out to homeowners: indigo #4A5FE0
   on white, hairline borders instead of soft shadows, small radii, and section
   headings underlined with a 2px accent rule. Uppercase tracked micro-labels
   over every value. It reads as a printed document rather than an app, which
   is exactly why it looks professional -- so the tools are pulled back to it.

   This file is TOKENS AND PRIMITIVES ONLY. It never styles a bare tag beyond
   :root, so a page can link it without anything moving; the page opts in by
   using var(--b-*) or the .b-* classes.

   Load it before a page's own <style> so the page can override:
     <link rel="stylesheet" href="thc-brand.css">
   ============================================================================= */

:root{
  /* ---- the palette off the document ---- */
  --b-brand:#4A5FE0;          /* the band, the prices, the RECOMMENDED chip   */
  --b-brand-dk:#3A4CC0;       /* pressed, and text on a pale brand background */
  --b-brand-soft:#EEF0FC;     /* the tint behind a chip or a heading rule     */
  --b-ink:#1E2025;            /* headings                                     */
  --b-body:#5A5F6A;           /* body copy                                    */
  /* The document prints its captions at #8A8F98, which on paper is fine and
     on a phone in the sun is 3.2:1 against white -- under the 4.5 line, at
     10.5px, on the labels over every number a crew reads. One shade darker
     clears it, is indistinguishable side by side, and happens to be exactly
     the grey thc-theme.css already uses, so the two stylesheets stop
     disagreeing about the same colour. */
  --b-muted:#6E7176;          /* micro-labels, captions                       */
  --b-page:#F6F7F9;           /* the paper                                    */
  --b-card:#FFFFFF;
  --b-panel:#F4F5F7;          /* the grey information boxes                   */
  --b-line:#E3E5EA;           /* every border on the page is this             */
  --b-line-soft:#EFF0F3;      /* rules inside a table                         */
  --b-dark:#1E1E1E;           /* the footer band                              */
  --b-green:#149251; --b-green-soft:#E8F5EE;
  --b-amber:#B5610F; --b-amber-soft:#FCF1E4;
  --b-red:#C0392B;   --b-red-soft:#FDEDEB;

  /* ---- shape: printed, not pillowy ---- */
  --b-r:10px; --b-r-sm:6px;
  --b-shadow:0 1px 2px rgba(20,22,28,.05);

  /* ---- type ---- */
  --b-font:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Inter,Roboto,Helvetica,Arial,sans-serif;
  --b-track:.14em;            /* the tracking on every small-caps label       */
}

/* Dark keeps the navy board ground, but the accent stays in the brand's
   family rather than turning into a different company's blue. */
html[data-theme="dark"]{
  --b-brand:#7C8AFF; --b-brand-dk:#5A6BF0; --b-brand-soft:#232A4D;
  --b-ink:#E8EDF6; --b-body:#B7C6DA; --b-muted:#8FA2BD;
  --b-page:#0B1220; --b-card:#131C2E; --b-panel:#0F1829;
  --b-line:#223047; --b-line-soft:#1E2A3E; --b-dark:#0A101C;
  --b-green:#22C55E; --b-green-soft:#0E2018;
  --b-amber:#FF9D3C; --b-amber-soft:#2A1F0D;
  --b-red:#F87171;   --b-red-soft:#1E1418;
  --b-shadow:0 1px 2px rgba(0,0,0,.35);
}

/* ---------- primitives -------------------------------------------------- */

/* A section heading with the document's 2px rule under it. */
.b-sec{font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--b-ink);
  padding-bottom:7px;margin-bottom:12px;border-bottom:2px solid var(--b-brand);}
.b-sec .lead{font-weight:400;font-size:13.5px;color:var(--b-body);letter-spacing:0;}

/* PREPARED FOR / PROPOSAL DATE / ITEM -- the label above a value. */
.b-label{font-size:10.5px;font-weight:700;letter-spacing:var(--b-track);
  text-transform:uppercase;color:var(--b-muted);}

/* The bordered white card everything sits in. */
.b-card{background:var(--b-card);border:1px solid var(--b-line);border-radius:var(--b-r);
  box-shadow:var(--b-shadow);padding:16px;}
.b-card.accent{border:2px solid var(--b-brand);}
/* The grey box with the accent bar down its left edge (Key Terms). */
.b-note{background:var(--b-panel);border-left:3px solid var(--b-brand);border-radius:var(--b-r-sm);padding:12px 14px;}

/* The RECOMMENDED chip, and its quieter cousins. */
.b-chip{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  background:var(--b-brand);color:#fff;border-radius:5px;padding:3px 8px;vertical-align:2px;}
.b-chip.soft{background:var(--b-brand-soft);color:var(--b-brand-dk);}

/* A ticked line from the packages list. */
.b-check{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;color:var(--b-body);line-height:1.5;margin:5px 0;}
.b-check::before{content:'\2713';color:var(--b-brand);font-weight:800;flex:none;line-height:1.4;}

/* The numbered step. */
.b-step{width:22px;height:22px;border-radius:5px;background:var(--b-brand);color:#fff;
  font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex:none;}

/* The investment table. */
.b-table{width:100%;border-collapse:collapse;font-size:13.5px;color:var(--b-ink);}
.b-table th{font-size:10.5px;font-weight:700;letter-spacing:var(--b-track);text-transform:uppercase;
  color:var(--b-muted);text-align:right;padding:0 0 7px;border-bottom:1px solid var(--b-line);}
.b-table th:first-child{text-align:left;}
.b-table td{padding:9px 0;border-bottom:1px solid var(--b-line-soft);text-align:right;font-variant-numeric:tabular-nums;}
.b-table td:first-child{text-align:left;color:var(--b-body);}
.b-table tr.total td{font-weight:700;border-bottom:none;color:var(--b-ink);}

/* The dark band that closes the document. */
.b-footer{background:var(--b-dark);color:#fff;border-radius:var(--b-r);padding:18px 20px;
  display:flex;gap:18px;flex-wrap:wrap;justify-content:space-between;font-size:12.5px;line-height:1.6;}
.b-footer .nm{font-size:15px;font-weight:800;letter-spacing:.02em;}
.b-footer .sub{font-size:10px;letter-spacing:var(--b-track);text-transform:uppercase;color:#A8ADB8;}
.b-footer .tag{color:var(--b-brand);font-weight:700;}

@media print{
  .b-card,.b-note{box-shadow:none;}
  .b-footer{-webkit-print-color-adjust:exact;print-color-adjust:exact;}
}
