/* Tiponi designsystem — tokens (udkast, 3 retninger)
   Navngivet efter shadcn/ui, så den valgte blok kan flyttes direkte til :root i globals.css.
   Tailwind v4-mapping står nederst. Brandfarver er hentet fra tiponi.dk. */

:root {
  /* Brand (fælles, ændres ikke pr. retning) */
  --brand-green: #2e4d3d;
  --brand-green-mid: #3b604c;
  --brand-sage: #d9e1d4;
  --brand-cream: #f6ede5;
  --brand-ink: #302a2e;
  --brand-plum: #752f55;
  --brand-orange: #eb7a3d;

  /* Skrift (fælles) */
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;

  /* Forløbsstatus (fælles): tekst på flade holder WCAG AA */
  --status-henvist: #752f55;    --status-henvist-bg: #f1e3ea;
  --status-opstart: #8f3f14;    --status-opstart-bg: #fbe6d8;
  --status-aktiv: #2e4d3d;      --status-aktiv-bg: #dcebe0;
  --status-afslutning: #03506d; --status-afslutning-bg: #dbe9ee;
  --status-lukket: #4a4a48;     --status-lukket-bg: #e8e8e6;

  --warning: #8f3f14; --warning-bg: #fbe6d8; --warning-border: #eb7a3d;
  --destructive: #a8321f; --destructive-foreground: #ffffff;
}

/* A — Hjemlig: tæt på hjemmesiden. Creme flader, grøn sidebar, orange hovedhandling. */
:root, [data-d="a"] {
  --background: #f6ede5; --foreground: #302a2e;
  --card: #fffaf5; --card-foreground: #302a2e;
  --primary: #2e4d3d; --primary-foreground: #ffffff;
  --secondary: #d9e1d4; --secondary-foreground: #2e4d3d;
  --muted: #efe3d8; --muted-foreground: #655d59;
  --accent: #eb7a3d; --accent-foreground: #302a2e;
  --cta: #eb7a3d; --cta-foreground: #302a2e;
  --border: #e3d5c7; --input: #9a8a7b; --ring: #2e4d3d;
  --sidebar: #2e4d3d; --sidebar-foreground: #ffffff;
  --sidebar-accent: #3b604c; --sidebar-accent-foreground: #ffffff; --sidebar-border: #2e4d3d;
  --radius: 16px; --space: 24px; --row-h: 56px;
  --text-base: 17px; --text-title: 30px; --heading-weight: 700;
  --shadow: 0 1px 2px rgb(48 42 46 / .06), 0 8px 24px rgb(48 42 46 / .07);
}

/* B — Værktøj: neutralt og tæt. Grøn kun til handling og aktiv tilstand. */
[data-d="b"] {
  --background: #f6f7f6; --foreground: #1f2421;
  --card: #ffffff; --card-foreground: #1f2421;
  --primary: #2e4d3d; --primary-foreground: #ffffff;
  --secondary: #eef1ee; --secondary-foreground: #1f2421;
  --muted: #eef1ee; --muted-foreground: #5b635e;
  --accent: #e4ece6; --accent-foreground: #2e4d3d;
  --cta: #2e4d3d; --cta-foreground: #ffffff;
  --border: #dfe3df; --input: #8a938c; --ring: #2e4d3d;
  --sidebar: #ffffff; --sidebar-foreground: #1f2421;
  --sidebar-accent: #e4ece6; --sidebar-accent-foreground: #2e4d3d; --sidebar-border: #dfe3df;
  --radius: 6px; --space: 16px; --row-h: 40px;
  --text-base: 15px; --text-title: 22px; --heading-weight: 600;
  --shadow: none;
}

/* C — Rolig: midt imellem. Hvid bund, salviegrønne flader, topmenu, blomme som markør. */
[data-d="c"] {
  --background: #ffffff; --foreground: #302a2e;
  --card: #f4f7f2; --card-foreground: #302a2e;
  --primary: #3b604c; --primary-foreground: #ffffff;
  --secondary: #d9e1d4; --secondary-foreground: #2e4d3d;
  --muted: #eef2eb; --muted-foreground: #5a615b;
  --accent: #752f55; --accent-foreground: #ffffff;
  --cta: #3b604c; --cta-foreground: #ffffff;
  --border: #d9e1d4; --input: #88958a; --ring: #752f55;
  --sidebar: #ffffff; --sidebar-foreground: #302a2e;
  --sidebar-accent: #eef2eb; --sidebar-accent-foreground: #2e4d3d; --sidebar-border: #d9e1d4;
  --radius: 10px; --space: 20px; --row-h: 48px;
  --text-base: 16px; --text-title: 26px; --heading-weight: 700;
  --shadow: none;
}

/* D — Valgt retning (arbejdsversion): C's farver med sidebar og mindre luft i knapper og kort. */
[data-d="d"] {
  --background: #f6f7f3; --foreground: #302a2e;
  --card: #ffffff; --card-foreground: #302a2e;
  --primary: #2e4d3d; --primary-foreground: #ffffff;
  --secondary: #e6ece2; --secondary-foreground: #2e4d3d;
  --muted: #eef1ea; --muted-foreground: #5c635d;
  --accent: #752f55; --accent-foreground: #ffffff;
  --cta: #2e4d3d; --cta-foreground: #ffffff;
  --border: #dfe4da; --input: #869188; --ring: #752f55;
  --sidebar: #eef1ea; --sidebar-foreground: #302a2e;
  --sidebar-accent: #ffffff; --sidebar-accent-foreground: #2e4d3d; --sidebar-border: #dfe4da;
  --success: #2e4d3d; --success-bg: #dcebe0;
  --info: #03506d; --info-bg: #dbe9ee;
  --warning-border: #c9581c; /* mørkere end brandorange, så grafik holder 3:1 */
  --radius: 10px; --radius-sm: 8px; --space: 16px; --row-h: 44px;
  --control-h: 36px; --control-h-sm: 30px; --control-h-touch: 44px;
  --text-base: 15px; --text-sm: 13.5px; --text-title: 24px; --heading-weight: 700;
  --shadow: 0 1px 2px rgb(46 77 61 / .05), 0 4px 16px rgb(46 77 61 / .05);
  --shadow-lg: 0 2px 6px rgb(48 42 46 / .08), 0 16px 40px rgb(48 42 46 / .14);
}

/* Tailwind v4 + shadcn/ui — sættes i globals.css efter valg af retning:
@theme inline {
  --color-background: var(--background);   --color-foreground: var(--foreground);
  --color-card: var(--card);               --color-card-foreground: var(--card-foreground);
  --color-primary: var(--primary);         --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);     --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);             --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);           --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive); --color-border: var(--border);
  --color-input: var(--input);             --color-ring: var(--ring);
  --color-sidebar: var(--sidebar);         --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --radius-lg: var(--radius); --radius-md: calc(var(--radius) - 2px); --radius-sm: calc(var(--radius) - 4px);
  --font-sans: var(--font-sans); --font-heading: var(--font-heading);
}
*/
