/* 01-base.css — Brand colours, design tokens and the basics (MPR One Office style).
   Part of the portal stylesheet; index.html loads the parts in order (01 to 12), so the cascade is
   the same as one file. */

/* MPR One Website AI — layout and components follow MPR One Office (sidebar, top bar, panels,
   buttons with Lucide icons); only the brand colours differ. */
:root {
  /* Brand colours sampled from branding/source (logo and icon). */
  --brand-primary: #8a0410;
  --brand-primary-dark: #6a030c;
  --brand-ink: #1b1d22;
  --primary: var(--brand-primary);
  --primary-dark: var(--brand-primary-dark);
  --primary-soft: color-mix(in srgb, var(--brand-primary) 8%, #ffffff);
  --ink: var(--brand-ink);
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #ffffff;
  --panel: rgba(255, 255, 255, 0.94);
  --theme-bg-start: color-mix(in srgb, var(--brand-primary) 2%, #ffffff);
  --theme-bg-mid: color-mix(in srgb, var(--brand-primary) 5%, #f6f6f7);
  --theme-bg-end: color-mix(in srgb, var(--brand-primary) 1%, #ffffff);
  --shadow: 0 18px 50px rgba(24, 16, 18, 0.08);
  --shadow-soft: 0 10px 30px rgba(24, 16, 18, 0.06);
  --shadow-float: 0 28px 90px rgba(16, 12, 14, 0.22);
  --radius: 8px;
  /* One scale for the space between and inside the blocks of a screen. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 28px;
  --gutter: 28px;
  --content-max: 1440px;
  --control-height: 40px;
  --sidebar-width: 280px;
  --ok: #206b30;
  --ok-bg: #edf8ef;
  --ok-border: #bde5c3;
  --warn: #8a5a00;
  --warn-bg: #fff6e0;
  --warn-border: #f3d9a4;
  --info: #1d4f7a;
  --info-bg: #eef5fb;
  --info-border: #cfe2f3;
  --danger: #b42318;
  --danger-bg: #fdeceb;
  --danger-border: #f1c0bb;
  --line-soft: var(--line-soft);
  --glass: rgba(255, 255, 255, 0.92);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --topbar-bg: color-mix(in srgb, var(--primary) 3%, rgba(255, 255, 255, 0.9));
  --nav-ink: #354052;
  --btn-top: #ffffff;
  --btn-bottom: #f7f8f9;
  --btn-border: #d8dee5;
  --input-border: #d0d5dd;
  --code-bg: #f6f7f9;
  --th-bg: #fafafa;
  --badge-bg: #f7f8f8;
  --badge-border: #dfe3e6;
  --badge-ink: #475467;
  --internal-bg: #f1ecfb;
  --internal-border: #ddd0f5;
  --internal-ink: #5b3aa0;
  --meter-track: #eef0f3;
  --signed-out-bg: linear-gradient(145deg, #f6f5f5 0%, #ebe7e8 58%, #f4f2f2 100%);
  --button-primary: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background: linear-gradient(135deg, var(--theme-bg-start) 0%, var(--theme-bg-mid) 48%, var(--theme-bg-end) 100%);
  color: var(--ink);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  overflow-x: hidden;
}

a { color: var(--primary); }
h1, h2, h3 { margin: 0; letter-spacing: 0; }
h1 { font-size: 28px; font-weight: 850; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 850; }
h3 { font-size: 15px; font-weight: 800; margin: 18px 0 8px; }
p { margin: 4px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ok { color: var(--ok); font-weight: 600; }
.error-text { color: var(--danger); }
.hint { color: var(--muted); font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }

svg.lucide { width: 16px; height: 16px; flex: 0 0 auto; pointer-events: none; }
