/* MASTECH DIGITAL — shared design tokens
   Palette: cocoa-leaf green, kente gold, kente red, ink, cool paper.
   Type: Bricolage Grotesque (display) + Source Sans 3 (text). */
:root {
  --leaf: #1f4d3a;
  --leaf-deep: #123024;
  --leaf-soft: #e3eee8;
  --gold: #e8a317;
  --gold-soft: #fbf0d6;
  --kred: #a8322d;
  --kred-soft: #f7e3e1;
  --ink: #17201c;
  --slate: #5c6b66;
  --line: #dde3df;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --focus: #e8a317;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --leaf-soft: #1b3229; --gold-soft: #3a2f14; --kred-soft: #3d1e1c;
    --ink: #e7eee9; --slate: #98a8a1; --line: #27352f;
    --paper: #0e1512; --surface: #151f1a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --leaf-soft: #1b3229; --gold-soft: #3a2f14; --kred-soft: #3d1e1c;
  --ink: #e7eee9; --slate: #98a8a1; --line: #27352f;
  --paper: #0e1512; --surface: #151f1a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 .9em; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--slate); }
.fine { font-size: .875rem; color: var(--slate); }

/* The kente weave — the one decorative signature used across site and portal */
.weave {
  background:
    repeating-conic-gradient(rgba(0,0,0,.16) 0 25%, transparent 0 50%) 0 0 / 92px 92px,
    repeating-linear-gradient(0deg, transparent 0 40px, rgba(23,32,28,.9) 40px 44px, transparent 44px 48px, rgba(23,32,28,.9) 48px 52px, transparent 52px 92px),
    repeating-linear-gradient(90deg, var(--gold) 0 26px, #2a6a4f 26px 34px, var(--gold) 34px 40px, var(--kred) 40px 46px, var(--gold) 46px 72px, #2a6a4f 72px 92px);
}
.weave-strip { height: 10px; background-size: 92px 92px, 92px 92px, 92px 92px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.brand-dark { color: var(--ink); }
.brand-logo { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px;
  box-shadow: 0 0 0 2px var(--gold); }
.brand-name { line-height: 1.15; overflow-wrap: anywhere; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; flex: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(23,32,28,.9) 9px 11px, transparent 11px 20px),
    repeating-linear-gradient(90deg, var(--gold) 0 8px, #2a6a4f 8px 11px, var(--kred) 11px 14px, var(--gold) 14px 20px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }

.btn { display: inline-flex; align-items: center; gap: .45rem; justify-content: center; padding: .68rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--leaf); background: var(--leaf); color: #fff; font: 600 .97rem/1 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s; }
.btn:hover { background: var(--leaf-deep); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--leaf-soft); }
.btn-danger { color: var(--kred); }
.btn-block { width: 100%; }

.flash { padding: .75rem 1rem; border-radius: var(--r-sm); margin-bottom: 1rem; border-left: 4px solid; font-size: .97rem; }
.flash-success { background: var(--leaf-soft); border-color: var(--leaf); }
.flash-error   { background: var(--kred-soft); border-color: var(--kred); }
.flash-info    { background: var(--gold-soft); border-color: var(--gold); }

input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: .6rem .75rem; margin-top: .3rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent); }
label { display: block; font-weight: 600; font-size: .94rem; }
label small { font-weight: 400; color: var(--slate); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
[hidden] { display: none !important; }
