/* deutschland.inc — shared styles
   Based on AppointmentTrader DS, Germanized:
   - Display: Inter Tight (neutral Swiss, high-trust)
   - UI: Inter
   - Mono: JetBrains Mono for numerics
   - Accent: precise gold for 1,5% / state-finance
   - Coral red reserved for alerts/destructive
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Neutrals */
  --white: #FFFFFF;
  --paper: #FAFAF7;      /* warm off-white — institutional */
  --g-50:  #F5F5F2;
  --g-100: #ECECE8;
  --g-150: #E2E2DD;
  --g-200: #D4D4CF;
  --g-300: #B8B8B2;
  --g-400: #8E8E88;
  --g-500: #6A6A64;
  --g-600: #4A4A46;
  --g-700: #2E2E2B;
  --g-800: #1A1A18;
  --ink:   #0A0A0A;

  /* Schwarz-Rot-Gold — used sparingly as data accents */
  --gold:      #B8893A;   /* primary accent — state finance, 1.5% */
  --gold-dim:  #8E6A2A;
  --gold-50:   #F6EFDF;
  --gold-100:  #EDDEB8;

  --rot:       #C13A2E;   /* alerts, deficits, critical */
  --rot-50:    #F8E3E0;

  --ok:        #3E7A4E;   /* on-track, positive delta */
  --ok-50:     #E3EEE5;

  /* Type */
  --f-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', monospace;

  /* Radii */
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Shadows — barely there */
  --sh-1: 0 1px 0 rgba(10,10,10,0.04);
  --sh-2: 0 2px 8px rgba(10,10,10,0.04), 0 1px 0 rgba(10,10,10,0.03);
  --sh-3: 0 12px 32px rgba(10,10,10,0.08), 0 2px 4px rgba(10,10,10,0.04);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, textarea { font-family: inherit; }

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num  { font-variant-numeric: tabular-nums; }

/* Hairline — the defining chrome motif */
.hair { background: var(--g-150); }
.hair-x { border-top: 1px solid var(--g-150); }
.hair-y { border-left: 1px solid var(--g-150); }

/* Labels — institutional kicker */
.kicker {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-500);
}

/* Sovereign button */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px;
  font: 500 13px/1 var(--f-sans);
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: all 120ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--g-800); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--g-200); }
.btn-ghost:hover { background: var(--g-50); border-color: var(--g-300); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dim); }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; }

/* Pill tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  font: 500 11px/1 var(--f-sans);
  letter-spacing: 0;
  border-radius: var(--r-sm);
  border: 1px solid var(--g-150);
  color: var(--g-600);
  background: var(--white);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g-400); }
.pill.ok  .dot { background: var(--ok); }
.pill.gold .dot { background: var(--gold); }
.pill.rot .dot { background: var(--rot); }

/* Focus ring */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

::selection { background: var(--ink); color: var(--paper); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--g-200); border-radius: 10px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--g-300); }
::-webkit-scrollbar-track { background: transparent; }

/* Card */
.card {
  background: var(--white);
  border: 1px solid var(--g-150);
  border-radius: var(--r-md);
}

/* Tiny flag strip — used sparingly */
.flag-strip {
  display: inline-flex; height: 12px; border-radius: 1px; overflow: hidden;
}
.flag-strip i { display: block; width: 4px; }
.flag-strip .k { background: var(--ink); }
.flag-strip .r { background: var(--rot); }
.flag-strip .g { background: var(--gold); }
