/* Core tokens and component skeletons shared by Voyage and NuPartners Group.
   Load this file, then ONE brand file, and put that brand's class (.brand-voyage or .brand-npg)
   on the page root. Each brand runs with core.css plus its own file and never needs the other's. */
:root {
  /* Shared ink and neutrals: the colour thread between the two brands */
  --c-navy: #102A43;
  --c-slate: #486581;
  --c-steel: #9FB3C8;
  --c-mist: #DCE4EA;
  --c-cloud: #F5F7FA;
  --c-white: #FFFFFF;
  --c-error: #B42318;
  --c-success: #0B6E4F;

  /* Shared text face */
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (px). 12, 16, 24, 38 and 72 come from the existing Voyage Tech Stack system. */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 38px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  --text-7xl: 72px;
  --lh-display: 1.05;
  --lh-heading: 1.2;
  --lh-body: 1.55;

  /* Spacing. 1, 3, 5, 7, 9 and 12 come from the existing Voyage Tech Stack system. */
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 20px;
  --space-7: 24px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 48px;
  --space-12: 64px;
  --space-14: 96px;

  /* Grid: 12 columns, 24px gutter, 1200px container. Breakpoints: 640, 900, 1200. */
  --container: 1200px;
  --gutter: 24px;
  --control-height: 44px;
  --rule: 1px;
}

/* Type roles */
.t-display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: var(--lh-display); color: var(--text); margin: 0; text-wrap: balance; }
.t-heading { font-family: var(--font-display); font-weight: var(--heading-weight); letter-spacing: var(--display-tracking); line-height: var(--lh-heading); color: var(--text); margin: 0; text-wrap: balance; }
.t-lead { font-family: var(--font-text); font-size: var(--text-xl); line-height: 1.5; font-weight: 400; color: var(--text-muted); margin: 0; text-wrap: pretty; }
.t-body { font-family: var(--font-text); font-size: var(--text-md); line-height: var(--lh-body); font-weight: 400; color: var(--text); margin: 0; text-wrap: pretty; }
.t-small { font-family: var(--font-text); font-size: var(--text-sm); line-height: 1.5; color: var(--text-muted); margin: 0; }
.t-caption { font-family: var(--font-text); font-size: var(--text-xs); line-height: 1.4; color: var(--text-muted); margin: 0; }
.t-eyebrow { font-family: var(--font-text); font-size: var(--text-xs); line-height: 1.2; font-weight: var(--eyebrow-weight); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-accent); margin: 0; }
.t-data { font-family: var(--font-text); font-variant-numeric: tabular-nums; font-size: var(--text-sm); line-height: 1.5; color: var(--text); margin: 0; }

/* Component skeletons: one structure, skinned by each brand's variables */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); box-sizing: border-box; min-height: var(--control-height); padding: 0 var(--space-7); border: var(--rule) solid transparent; border-radius: var(--radius-control); font-family: var(--font-text); font-size: var(--text-md); font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-text-hover); border-color: var(--btn-bg-hover); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn--secondary:hover { background: var(--bg-quiet); }
.btn--inverse { background: var(--btn-inverse-bg); color: var(--btn-inverse-text); border-color: var(--btn-inverse-bg); }
.btn--ghost-inverse { background: transparent; color: var(--text-inverse); border-color: var(--text-inverse); }
.btn--small { min-height: 36px; padding: 0 var(--space-5); font-size: var(--text-sm); }

.card { box-sizing: border-box; background: var(--bg-surface); border: var(--rule) solid var(--border); border-radius: var(--radius-card); padding: var(--space-7); }

.field { display: flex; flex-direction: column; gap: var(--space-3); font-family: var(--font-text); }
.field__label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.field__hint { font-size: var(--text-xs); color: var(--text-muted); }
.field__error { font-size: var(--text-xs); color: var(--c-error); font-weight: 600; }
.input { box-sizing: border-box; width: 100%; min-height: var(--control-height); padding: 0 var(--space-5); background: var(--c-white); color: var(--c-navy); border: var(--rule) solid var(--c-slate); border-radius: var(--radius-input); font-family: var(--font-text); font-size: var(--text-md); }
.input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.input--error { border-color: var(--c-error); }
textarea.input { min-height: 120px; padding: var(--space-4) var(--space-5); line-height: 1.5; }

.chip { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 24px; padding: 0 var(--space-3); border-radius: var(--radius-chip); background: var(--accent-tint); color: var(--text-accent); font-family: var(--font-text); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-8); font-family: var(--font-text); font-size: var(--text-md); font-weight: 500; }
.nav a { color: inherit; text-decoration: none; padding: var(--space-4) 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

.link { color: var(--text-accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.link--inverse { color: var(--text-accent-inverse); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.rule { border: 0; border-top: var(--rule) solid var(--border); margin: 0; }
