/* Collective brand tokens and shared components (portal + CRM). Matches collective-website. */
:root {
  /* Monochrome brand palette from collectivefitness.ie: black, white, light accent #F4F4F3, dark accent #353A3E */
  --paper: #F4F4F3; --paper-2: #E7E7E7; --white: #fff;
  --ink: #0F0F0F; --forest: #000000; --forest-2: #1B1D1F; --green: #353A3E; --mint: #E7E7E7;
  --signal: #000000; --signal-ink: #353A3E; --accent: #62676C;
  --muted: #5B6166; --line: rgba(15, 15, 15, .14);
  /* Status colours: health flags and confirmations only, never decoration */
  --ok: #1F6B43; --ok-bg: #E1F0E6; --amber: #B7791F; --amber-bg: #FBF0DA; --red: #B42318; --red-bg: #FDE7E4;
  --radius: 16px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px -12px rgba(0,0,0,.2);
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "wdth" 82; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 .4em; }
h3 { font-variation-settings: "wdth" 92; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brand svg { width: 30px; height: 30px; }
.brand b { font: 800 23px/1 var(--display); font-variation-settings: "wdth" 85; letter-spacing: -.03em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--signal); color: #fff; border: 2px solid var(--signal); border-radius: 999px;
  font: 600 15px/1 var(--body); padding: 13px 20px; text-decoration: none; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--signal-ink); border-color: var(--signal-ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn-dark { background: var(--forest); border-color: var(--forest); }
.btn-dark:hover { background: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(180,35,24,.3); }
.btn-danger:hover { background: var(--red-bg); border-color: var(--red); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .field > legend, .q-label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 11px 13px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,0,0,.12); }
textarea { min-height: 96px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }

/* pill choices: radio/checkbox styled as chips */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; font-size: 14px; font-weight: 500; }
.choices input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choices span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); transition: .12s; }
.choices input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.choices input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.scale span { min-width: 42px; text-align: center; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alert { padding: 13px 16px; border-radius: 12px; font-size: 15px; margin-bottom: 16px; }
.alert-error { background: var(--red-bg); color: var(--red); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--amber-bg); color: #7A4E0E; }

.pill { display: inline-block; font: 600 11px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--paper-2); color: var(--muted); white-space: nowrap; }
.pill-green { background: var(--ok-bg); color: var(--ok); }
.pill-amber { background: var(--amber-bg); color: #7A4E0E; }
.pill-red { background: var(--red-bg); color: var(--red); }
.pill-dark { background: var(--forest); color: var(--paper); }
.pill-orange { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
