/* ==========================================================================
   FOUNDUP Design V2 — shared design system
   Loaded by BOTH the public website (site-v2/) and the app (foundup-app-v2.html),
   so tokens and core components have one source of truth.

   Visual language (use deliberately, never as decoration):
     ring    = search radius / within reach
     overlap = relevance ("Waarom relevant")
     lens    = FOUNDUP Meeting Point
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* brand */
  --fu-blue: #1559E7;        /* actions, selection, search ring, Meeting Points */
  --fu-blue-deep: #0F49C2;   /* hover/pressed, blue text on tint, relevance line */
  --fu-blue-tint: #EAF0FD;   /* selected row, avatar, overlap fill */
  --fu-blue-ring: rgba(21, 89, 231, .42);
  --fu-navy: #0A0E2A;        /* text, structure, FOUNDUP Meetings */

  /* neutrals */
  --fu-ink-2: #454B5E;       /* secondary text on white (8.7:1) */
  --fu-muted: #5B6272;       /* muted text on white/paper (≥5.7:1) */
  --fu-paper: #F5F6F8;
  --fu-surface: #FFFFFF;
  --fu-line: #E4E7EC;
  --fu-line-strong: #CDD2DA;

  /* status: one meaning each, always paired with a text label */
  --st-avail: #16A34A;   --st-avail-text: #166534;   --st-avail-bg: #ECFDF3;
  --st-standby: #D97706; --st-standby-text: #B45309; --st-standby-bg: #FFF7ED;
  --st-offline: #9AA1AE; --st-offline-text: #5B6272; --st-offline-bg: #F2F3F5;
  --fu-error: #C8352E;   --fu-error-bg: #FDF1F0;

  /* type */
  --fu-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* spacing (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  /* radius by hierarchy */
  --r-control: 8px;  /* inputs, buttons, chips */
  --r-item: 10px;    /* selectable options, small panels */
  --r-panel: 14px;   /* sheets, dialogs, floating cards */

  /* elevation: neutral only, only for floating layers */
  --shadow-float: 0 1px 2px rgba(10, 14, 42, .06), 0 8px 24px -8px rgba(10, 14, 42, .18);
  --shadow-sheet: 0 -6px 28px -6px rgba(10, 14, 42, .22);

  --focus: 0 0 0 3px rgba(21, 89, 231, .35);
}

/* ---- numbers: tabular digits WITHOUT tabular punctuation ----
   Schibsted's tnum also widens "," and ":" ("12 , 4 km"). So only the digit runs are
   wrapped in .fu-tnum (see FUV2.num() in foundup-v2.js); separators stay proportional. */
.fu-tnum { font-variant-numeric: tabular-nums; }

/* ---- buttons ---- */
.fu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-control);
  border: 1px solid transparent; font: 600 15px/1.2 var(--fu-font); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.fu-btn svg { width: 18px; height: 18px; flex: none; }
.fu-btn-primary { background: var(--fu-blue); color: #fff; }
.fu-btn-primary:hover { background: var(--fu-blue-deep); }
.fu-btn-secondary { background: #fff; color: var(--fu-navy); border-color: var(--fu-line-strong); }
.fu-btn-secondary:hover { border-color: var(--fu-navy); }
.fu-btn-ghost { background: transparent; color: var(--fu-navy); }
.fu-btn-ghost:hover { background: var(--fu-paper); }
.fu-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.fu-btn-block { width: 100%; }
.fu-btn[disabled], .fu-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.fu-btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---- status: dot + label, never colour alone ---- */
.fu-status { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.2 var(--fu-font); white-space: nowrap; }
.fu-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.fu-status--green  { color: var(--st-avail-text); }  .fu-status--green::before  { background: var(--st-avail); }
.fu-status--orange { color: var(--st-standby-text); } .fu-status--orange::before { background: var(--st-standby); }
.fu-status--red    { color: var(--st-offline-text); } .fu-status--red::before    { background: var(--st-offline); }

/* ---- avatar with status dot ---- */
.fu-avatar {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fu-blue-tint); color: var(--fu-blue-deep);
  font: 700 14px/1 var(--fu-font);
}
.fu-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.fu-avatar[data-status]::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; }
.fu-avatar[data-status="green"]::after  { background: var(--st-avail); }
.fu-avatar[data-status="orange"]::after { background: var(--st-standby); }
.fu-avatar[data-status="red"]::after    { background: var(--st-offline); }
.fu-avatar--lg { width: 56px; height: 56px; font-size: 19px; }
.fu-avatar--lg[data-status]::after { width: 14px; height: 14px; }

/* ---- intent chips (Zoekt / Biedt aan / Netwerkt): neutral content, icon + label ---- */
.fu-intents { display: flex; flex-wrap: wrap; gap: 6px; }
.fu-intent {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px;
  border: 1px solid var(--fu-line); border-radius: 999px; background: #fff;
  font: 600 12px/1 var(--fu-font); color: var(--fu-ink-2); white-space: nowrap;
}
.fu-intent svg { width: 14px; height: 14px; flex: none; }

/* ---- relevance: the overlap ---- */
.fu-overlap { display: inline-block; flex: none; width: 22px; height: 14px; }
.fu-rel { display: flex; align-items: flex-start; gap: 7px; font: 600 13.5px/1.35 var(--fu-font); color: var(--fu-blue-deep); }
.fu-rel .fu-overlap { margin-top: 2px; }
.fu-why { padding: 14px 16px; border-radius: var(--r-item); background: var(--fu-blue-tint); color: var(--fu-navy); }
.fu-why-title { display: flex; align-items: center; gap: 8px; font: 700 15px/1.3 var(--fu-font); color: var(--fu-blue-deep); }
.fu-why-line { margin: 8px 0 0; font: 400 14.5px/1.5 var(--fu-font); }
.fu-why-line b { font-weight: 650; }
.fu-why-line + .fu-why-line { margin-top: 4px; }

/* ---- Meeting Point lens mark ---- */
.fu-lens { display: inline-block; flex: none; width: 16px; height: 22px; }

/* ---- FOUNDUP Meeting date tile (navy, distinct from Meeting Points) ---- */
.fu-meet-tile {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 5px; border-radius: 8px; background: var(--fu-navy); color: #fff;
  font: 700 13px/1 var(--fu-font); font-variant-numeric: tabular-nums;
}
.fu-meet-tile small { margin-top: 2px; font-size: 10px; font-weight: 600; opacity: .85; }

/* ---- small utility ---- */
.fu-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .fu-btn { transition: none; }
}
