/* =====================================================================================
   TI HUB DESIGN SYSTEM — standalone pages (Item 6a, Joe's go Nov 27, 2026). PRESENTATION ONLY.
   Same system as the Hub (site/index.html "TI HUB DESIGN SYSTEM" block): black / white /
   That's Italian dark red #870f06, one font, one card style (12px corners, 1px border, soft shadow),
   8px buttons and fields. Loaded LAST in each page's <head>, after the page's own <style>, so it
   only re-points the shared tokens (--red, --ink, --line, --mute, --tint …) and evens out shapes.
   Pages keep white backgrounds (Joe prefers white). Nothing here touches markup, scripts or data.
   The signed document on sign.html (.doc) keeps the printed proposal's own look on purpose — it
   must match the PDF / printed copy the client receives.
   ===================================================================================== */
:root{
  --ti-red:#870f06; --ti-red-dk:#6a0b05; --ti-red-t:#fbeceb;
  --ui-font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --radius:12px; --radius-s:8px; --shadow:0 1px 2px rgba(17,17,17,.04),0 2px 6px rgba(17,17,17,.05);
  /* the pages' own token names, re-pointed */
  --red:#870f06; --red-d:#6a0b05; --tint:#fbeceb;
  --ink:#18181b; --line:#e4e4e7; --mute:#6b6b73; --muted:#6b6b73;
  --ok:#15803d; --warn:#b45309; --amber:#b45309;
  --bg:#f5f5f6; --soft:#f5f5f6; --paper:#ffffff;
  --sans:var(--ui-font); --serif:var(--ui-font);
}
/* the proposal / contract being signed keeps its printed colours */
.doc{--red:#89171A;--ink:#231F20;--line:#e6d9d9;--soft:#f6f2f1;--muted:#6b6566}

/* one font — everywhere except the signed document and code */
body{font-family:var(--ui-font);-webkit-font-smoothing:antialiased}
:is(h1,h2,h3,h4,h5,h6,p,div,span,b,strong,em,small,a,label,li,td,th,button,input,select,textarea,legend,summary):not(.doc,.doc *,code,pre,kbd){font-family:var(--ui-font)!important}
h1,h2,h3,h4{letter-spacing:-.01em}
/* headings sized for the old display serif read heavy in the UI font: tighter lines, a touch narrower */
h1,h2{line-height:1.2;letter-spacing:-.02em}
:focus-visible{outline-color:var(--ti-red)}

/* one card style (screen only — print sheets keep their flat look) */
@media screen{
  .card,.panel,.state,.paper,.sheet .box{border-radius:var(--radius)}
  .card,.panel,.state,.paper{box-shadow:var(--shadow)}
  .card,.panel{border-color:var(--line)}
}

/* buttons */
.btn{border-radius:var(--radius-s);font-weight:600}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid #d4d4d8}
.btn.ghost:hover{background:#f7f7f8}
.btn.link{border:0}
.btn.danger{background:#fff;color:var(--ti-red);border:1px solid var(--ti-red)}

/* fields */
input[type=text],input[type=password],input[type=date],input[type=tel],input[type=email],input[type=number],input[type=search],select,textarea{border-color:#d4d4d8;border-radius:var(--radius-s)}
input:focus,select:focus,textarea:focus{border-color:var(--ti-red)}

/* segmented controls: black for the selected choice, like the Hub */
.seg button[aria-pressed=true]{background:#111;color:#fff}

/* messages */
.err{border-radius:var(--radius-s)}
