/* =====================================================================
   TaxPeel Design Tokens — ported from
   design_handoff_operator_case_detail/reference/colors_and_type.css
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  /* ── COLOR · BRAND ───────────────────────────────────────────────── */
  --tp-navy:           #1a2744;
  --tp-navy-700:       #243355;
  --tp-navy-300:       #8fa8d0;
  --tp-navy-200:       #b8cce4;

  /* ── COLOR · ACCENT · TERRACOTTA ─────────────────────────────────── */
  --tp-terra:          #a44a2e;
  --tp-terra-400:      #c87856;
  --tp-terra-200:      #e8c9b8;
  --tp-terra-100:      #f7ede5;
  --tp-terra-warm:     #e8a888;  /* the warm display number on navy */

  /* ── COLOR · ACCENT · DOCUMENT CREAM ─────────────────────────────── */
  --tp-ink:            #3a3328;
  --tp-stone:          #8a7c63;
  --tp-cream-200:      #e8dfc9;
  --tp-cream-100:      #faf6ec;

  /* ── COLOR · NEUTRALS ────────────────────────────────────────────── */
  --tp-paper:          #ffffff;
  --tp-bg-soft:        #f8f9fc;
  --tp-bg-fill:        #f0f3f8;
  --tp-border:         #dde3ed;
  --tp-border-soft:    #eef0f4;
  --tp-fg:             #1a1a1a;
  --tp-fg-muted:       #555555;
  --tp-fg-subtle:      #888888;
  --tp-fg-faint:       #aaaaaa;

  /* ── COLOR · SEMANTIC ────────────────────────────────────────────── */
  --tp-positive:       #1a6b3c;
  --tp-positive-bg:    #e8f1eb;
  --tp-negative:       #b03030;
  --tp-negative-bg:    #f6e6e6;
  --tp-warning:        #b07000;
  --tp-warning-bg:     #fffbf0;
  --tp-warning-border: #e8d88a;
  --tp-warning-fg:     #6b5800;

  /* ── COLOR · INTERACTION ─────────────────────────────────────────── */
  --tp-link:           var(--tp-navy);
  --tp-link-hover:     var(--tp-navy-700);
  --tp-focus-ring:     #4a6da8;

  /* ── TYPE · FAMILIES ─────────────────────────────────────────────── */
  --tp-font-display:   'Merriweather', Georgia, 'Times New Roman', serif;
  --tp-font-body:      'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --tp-font-mono:      ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;

  /* ── TYPE · WEIGHTS ──────────────────────────────────────────────── */
  --tp-weight-light:    300;
  --tp-weight-regular:  400;
  --tp-weight-semibold: 600;
  --tp-weight-bold:     700;

  /* ── TYPE · SCALE (px) ───────────────────────────────────────────── */
  --tp-text-eyebrow:   11px;
  --tp-text-caption:   12px;
  --tp-text-small:     14px;
  --tp-text-body:      16px;
  --tp-text-lead:      18px;
  --tp-text-h6:        16px;
  --tp-text-h5:        18px;
  --tp-text-h4:        22px;
  --tp-text-h3:        28px;
  --tp-text-h2:        36px;
  --tp-text-h1:        48px;
  --tp-text-display:   64px;

  /* ── TYPE · LINE HEIGHT ──────────────────────────────────────────── */
  --tp-leading-tight:  1.2;
  --tp-leading-snug:   1.35;
  --tp-leading-body:   1.55;
  --tp-leading-loose:  1.7;

  /* ── TYPE · LETTER SPACING ───────────────────────────────────────── */
  --tp-tracking-eyebrow: 0.18em;
  --tp-tracking-label:   0.08em;
  --tp-tracking-tight:  -0.01em;
  --tp-tracking-display: -0.02em;

  /* ── SPACING (4-pt base) ─────────────────────────────────────────── */
  --tp-space-1:   4px;
  --tp-space-2:   8px;
  --tp-space-3:   12px;
  --tp-space-4:   16px;
  --tp-space-5:   20px;
  --tp-space-6:   24px;
  --tp-space-8:   32px;
  --tp-space-10:  40px;
  --tp-space-12:  48px;
  --tp-space-14:  56px;
  --tp-space-16:  64px;
  --tp-space-20:  80px;

  /* ── RADIUS ──────────────────────────────────────────────────────── */
  --tp-radius-0:    0;
  --tp-radius-sm:   4px;
  --tp-radius-md:   6px;
  --tp-radius-pill: 9999px;
  --tp-radius-cap:  12px;

  /* ── BORDERS ─────────────────────────────────────────────────────── */
  --tp-border-thin:    1px solid var(--tp-border);
  --tp-border-soft-1:  1px solid var(--tp-border-soft);

  /* ── SHADOW ──────────────────────────────────────────────────────── */
  --tp-shadow-none:   none;
  --tp-shadow-sm:     0 1px 2px rgba(26, 39, 68, 0.06);
  --tp-shadow-md:     0 2px 8px rgba(26, 39, 68, 0.08);
  --tp-shadow-lg:     0 8px 24px rgba(26, 39, 68, 0.10);
  --tp-shadow-drawer: -12px 0 32px rgba(26, 39, 68, 0.20);

  /* ── MOTION ──────────────────────────────────────────────────────── */
  --tp-ease:          cubic-bezier(0.2, 0, 0, 1);
  --tp-duration-fast: 120ms;
  --tp-duration:      160ms;
  --tp-duration-slow: 200ms;

  /* ── LAYOUT ──────────────────────────────────────────────────────── */
  --tp-container:        1200px;
  --tp-container-narrow: 880px;
  --tp-page-padding:     56px;
  --tp-topbar-height:    56px;
}

/* =====================================================================
   Body baseline — applied at <body> in base.html via class="tp-doc"
   ===================================================================== */
.tp-doc {
  font-family: var(--tp-font-body);
  font-size:   var(--tp-text-small);
  line-height: var(--tp-leading-body);
  color:       var(--tp-fg);
  background:  var(--tp-bg-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.tp-doc * { box-sizing: border-box; }

/* =====================================================================
   Typography
   ===================================================================== */
.tp-display, .tp-h1, .tp-h2, .tp-h3, .tp-h4 {
  font-family: var(--tp-font-display);
  font-weight: var(--tp-weight-bold);
  color:       var(--tp-navy);
  line-height: var(--tp-leading-tight);
  letter-spacing: var(--tp-tracking-display);
  text-wrap:   pretty;
  margin: 0;
}
.tp-display { font-size: var(--tp-text-display); letter-spacing: -0.025em; }
.tp-h1      { font-size: var(--tp-text-h1); }
.tp-h2      { font-size: var(--tp-text-h2); }
.tp-h3      { font-size: var(--tp-text-h3); letter-spacing: var(--tp-tracking-tight); }
.tp-h4      { font-size: var(--tp-text-h4); letter-spacing: 0; line-height: var(--tp-leading-snug); }

.tp-h5, .tp-h6 {
  font-family: var(--tp-font-body);
  font-weight: var(--tp-weight-bold);
  color:       var(--tp-navy);
  line-height: var(--tp-leading-snug);
  margin: 0;
}
.tp-h5 { font-size: var(--tp-text-h5); }
.tp-h6 { font-size: var(--tp-text-h6); }

.tp-lead {
  font-family: var(--tp-font-body);
  font-weight: var(--tp-weight-regular);
  font-size:   var(--tp-text-lead);
  line-height: var(--tp-leading-body);
  color:       var(--tp-fg-muted);
  margin: 0;
}
.tp-body {
  font-family: var(--tp-font-body);
  font-size:   var(--tp-text-body);
  line-height: var(--tp-leading-body);
  color:       var(--tp-fg);
  margin: 0;
}
.tp-small {
  font-family: var(--tp-font-body);
  font-size:   var(--tp-text-small);
  line-height: var(--tp-leading-body);
  color:       var(--tp-fg-muted);
  margin: 0;
}
.tp-caption {
  font-family: var(--tp-font-body);
  font-size:   var(--tp-text-caption);
  color:       var(--tp-fg-subtle);
  line-height: var(--tp-leading-body);
  margin: 0;
}

/* The signature eyebrow label. */
.tp-eyebrow {
  font-family: var(--tp-font-body);
  font-size:   var(--tp-text-eyebrow);
  font-weight: var(--tp-weight-bold);
  letter-spacing: var(--tp-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--tp-fg-subtle);
}
.tp-eyebrow-on-navy { color: var(--tp-navy-300); }
.tp-eyebrow-strong  { color: var(--tp-navy); }

.tp-mono {
  font-family: var(--tp-font-mono);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.tp-num { font-variant-numeric: tabular-nums; }

/* =====================================================================
   Links
   ===================================================================== */
.tp-doc a {
  color: var(--tp-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--tp-duration) var(--tp-ease),
              color var(--tp-duration) var(--tp-ease);
}
.tp-doc a:hover {
  color: var(--tp-link-hover);
  border-bottom-color: currentColor;
}
.tp-doc a:focus-visible,
.tp-doc button:focus-visible,
.tp-doc input:focus-visible,
.tp-doc textarea:focus-visible,
.tp-doc select:focus-visible {
  outline: 2px solid var(--tp-focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}
