/* Systems for Everyone portal: the one stylesheet.
   v1 · 2026-10-27 · Every value here is whichever one the portal already used most, counted across all 26 pages
   (Portal congruence analysis, 06 Products, 27 Oct 2026). Nothing new was invented.

   Rules for anyone adding to this file:
   - A page never redeclares a token below. If a page needs a new one, it belongs here.
   - Scheme-2 names (--gold, --rasp, --mint, --sand, --soft, --white, --green) are kept as aliases so the
     seven pages that use them keep working, but they are retired: new work uses the canonical names.
   - Pink is for urgency or a thing to click. Every page needs oxblood.
*/

:root{
  /* Surfaces and lines */
  --bg:#FAF6F1;            /* unanimous across 29 declarations */
  --surface:#FFFFFF;       /* 15 pages; the 5 that had #E9DCCB were the odd ones out */
  --panel:#E9DCCB;         /* 11 pages */
  --panel-soft:#F3EBE0;    /* 4 pages */
  --line:#E2D4C3;          /* 22 pages */
  --tab-line:#EADFD3;      /* the phone bottom bar's hairline. Light value is what it showed as a
                              literal, so light mode is unchanged. */
  --tab-ink:#9A7A7F;       /* its inactive labels, same reasoning. */

  /* Ink */
  --ink:#4A1621;           /* unanimous, 89 uses */
  --ink-2:#7A4A52;         /* 17 pages */

  /* Action and accent */
  --btn:#F5B301;           /* unanimous where declared */
  --on-btn:#4A1621;        /* 10 pages */
  --hi:#D6245E;            /* 19 pages; marketing.html had this as ink, which was the bug */
  --on-hi:#FFFFFF;         /* 13 pages */

  /* Status */
  --good:#2F6B4F;          /* 13 pages */
  --good-soft:#E2EEE6;     /* 10 pages */
  --warn:#F0A868;
  --warn-soft:#FFF4DA;
  --sand-soft:#F2E6E1;     /* 26 uses, hand-written until now */
  --hot-soft:#FBE3EA;      /* 7 uses */
  --quiet-soft:#FBF8F4;    /* hover and pressed rows */
  --done-soft:#F3F8F5;     /* the 'done' tile on the must-haves road (/foundation) */
  --amber-soft:color-mix(in srgb,var(--btn) 18%,var(--surface));
  --shade:rgba(26,12,16,.55);
  --rail-ring:#C9B6A2;      /* the ring round a rail node or step that is still to come (was hand-typed three times) */

  /* Type */
  --font-b:"Outfit",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-d:"Bricolage Grotesque",system-ui,sans-serif;

  /* Shape */
  --r-sm:6px;
  --r-md:14px;             /* the card radius: 62 uses, more than any other card-scale value */
  --r-lg:22px;
  --r-pill:999px;

  /* Page */
  --page-max:1180px;       /* 11 pages */
  --page-pad:clamp(16px,4vw,40px);
  --gap:20px;

  /* The dark call surface (the boardroom panel and the call page). Not dark mode: a deliberately dark card. */
  /* A surface that is deliberately dark in BOTH themes. --ink is a TEXT colour: it inverts,
     so 82 cards painted background:var(--ink) turned from near-black to near-white in dark
     mode while the cream text on them stayed cream. Measured 1.11 on Amelia's desk. This is
     the same #4A1621, fixed, so light mode is byte-identical and the inversion stops. */
  --ink-surface:#4A1621;
  /* and the text that goes on it. #FAF6F1 is what those 40 cards already showed in light
     mode, so fixing it here changes nothing visible and stops it following --bg into the
     dark theme, where it measured 1.29 against the card. */
  --on-ink-surface:#FAF6F1;
  /* text on --warn-soft. #7A5200 is what those eight already showed in light; the dark value
     is its counterpart on the dark tint (6.33 light / 7.59 dark). */
  --on-warn-soft:#7A5200;
  --dark:#1A0C10;
  --dark-3:#33191F;
  --dark-ink:#F4E9DD;
  --dark-ink-2:#C9AFA9;
  --dark-line:#45242B;

  /* Aliases kept so existing pages keep working. Retired: do not use in new work. */
  --gold:var(--btn);
  --rasp:var(--hi);
  --pink:var(--hi);
  --pop:var(--hi);
  --green:var(--good);
  --mint:var(--good-soft);
  --sand:var(--panel);
  --soft:var(--ink-2);
  --soft-btn:#FFF7E0;
  --white:var(--surface);
  --ink2:var(--ink-2);     /* marketing.html used this; it was never declared anywhere */
  --mute:var(--ink-2);     /* same */
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#1A0C10;--surface:#251217;--panel:#33191F;--panel-soft:#2E161C;
    --ink:#F4E9DD;--ink-2:#C9AFA9;--line:#45242B;--tab-line:#45242B;--tab-ink:#C9AFA9;
    --hi:#F2457A;--on-hi:#1A0C10;--good:#7FC9A2;--good-soft:#1F3328;--warn:#F0A868;--warn-soft:#453510;--sand-soft:#3B2A25;--hot-soft:#4C1A2B;--quiet-soft:#2F1D22;--soft-btn:#4A3A14;--on-warn-soft:#F0C98A;--done-soft:#1C2A22;--rail-ring:#6E4C53;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#1A0C10;--surface:#251217;--panel:#33191F;--panel-soft:#2E161C;
  --ink:#F4E9DD;--ink-2:#C9AFA9;--line:#45242B;--tab-line:#45242B;--tab-ink:#C9AFA9;
  --hi:#F2457A;--on-hi:#1A0C10;--good:#7FC9A2;--good-soft:#1F3328;--warn:#F0A868;--warn-soft:#453510;--sand-soft:#3B2A25;--hot-soft:#4C1A2B;--quiet-soft:#2F1D22;--soft-btn:#4A3A14;--on-warn-soft:#F0C98A;--done-soft:#1C2A22;--rail-ring:#6E4C53;
  color-scheme:dark;
}

/* ---- base ---- */
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-b);font-size:16px;line-height:1.55}

/* ---- the page container ---- */
.wrap{max-width:var(--page-max);margin:0 auto;padding-inline:var(--page-pad);padding-block:28px 64px;display:flex;flex-direction:column;gap:var(--gap)}

/* ---- type ---- */
h1{font-family:var(--font-d);font-weight:800;font-size:clamp(30px,4.4vw,40px);line-height:1.05;margin:0;text-wrap:balance}
.lede{color:var(--ink-2);margin:0;max-width:62ch}  /* v4.86: Simoné picked A — soft mauve, 62 characters */
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}  /* v4.86: Simoné picked A — the base had no colour, which is why 12 pages set their own */

/* ---- the card ---- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:18px}  /* v4.86: Simoné picked 18 */

/* ---- the button ---- */
.btn{font:inherit;font-weight:600;font-size:16px;border:0;border-radius:var(--r-pill);min-height:48px;padding:12px 22px;background:var(--btn);color:var(--on-btn);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}  /* v4.85: 12 pages added this themselves; a button-shaped <a> is never underlined */
.btn:hover{filter:brightness(.96)}
.btn:active{transform:scale(.98)}
.btn[disabled]{opacity:.55;cursor:default}
.btn.p{background:var(--hi);color:var(--on-hi)}        /* urgency only */
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
/* A link-style button drops the marigold, so it must drop --on-btn with it: four pages
   defined .btn.link without resetting the colour, leaving fixed wine text on the page's
   own background (1.29 against the dark theme, measured on /voice). Pages still set their
   own padding and height; the colour belongs here, beside .btn.ghost, which already did
   this correctly. */
.btn.link{background:none;color:var(--ink);border:0;text-decoration:underline}

/* ---- breadcrumb ---- */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px;color:var(--ink-2)}  /* v4.85: wraps rather than overflowing on a phone, as 4 pages already did */
.crumbs a{color:var(--ink-2)}

/* ================================================================
   THE JOURNEY COMPONENT  (j-)
   v1 · 2026-10-27 16:32 SAST · Simoné approved the look on desktop at 16:31.
   Spec: "Portal — one journey template v1", 06 Products.

   One shape for every surface, at four depths:
     goal (My desk)  >  department  >  rail (channel or project)  >  steps

   Four pieces, always in this order, at every depth:
     1 crumbs   the path back up
     2 hero     whose turn it is, the one thing, one button
     3 rail     the left-to-right journey
     4 children tiles (depths 1-2) OR steps (depth 3) — never both

   Every value below is lifted from yourapp.html, which Simoné designed and
   approved. Nothing here is new. The j- prefix was verified on 27 Oct to have
   zero matches across all 26 pages and 41 scripts, so this layer is global and
   collides with nothing.
   ================================================================ */

/* ---- 1 crumbs ---- */
.j-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:15px;font-weight:600}
.j-crumbs button{font:inherit;font-weight:600;border:0;background:none;color:var(--ink-2);cursor:pointer;padding:0}
.j-crumbs button:hover{text-decoration:underline}
.j-crumbs .sep{color:var(--ink-2)}
.j-crumbs .here{background:var(--ink);color:var(--bg);border-radius:var(--r-pill);padding:5px 14px}

/* ---- 2 hero.  .you = your turn (filled).  .them = a head's turn (outlined). ---- */
.j-hero{border-radius:28px;padding:clamp(22px,3vw,34px);display:flex;flex-wrap:wrap;gap:22px;align-items:center}
.j-hero.you{background:var(--ink);color:var(--bg)}
.j-hero.them{background:var(--surface);border:2px solid var(--ink)}
/* v5 (30 Oct 2026): --on-btn, not --ink. The background is marigold, which is FIXED in both
   themes, while --ink flips to cream in dark — so this painted cream on marigold at 1.55:1
   for any .j-ic holding text. The same rule as every other family found this week: a rule
   that sets a fixed background must take that background's fixed partner for its colour.
   Only noticed because /yoursetup is the first page to put a character inside one. */
.j-ic{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;font-size:27px;background:var(--btn);color:var(--on-btn)}
/* v5: and back to --ink here, because --soft-btn FOLLOWS the theme. Same rule, other
   direction: this variant would otherwise inherit the fixed --on-btn above and paint dark
   wine on dark olive in dark mode. No page renders text in one yet, so no test caught it. */
.j-hero.them .j-ic{background:var(--soft-btn);color:var(--ink);box-shadow:inset 0 0 0 3px var(--btn)}
.j-hero .txt{flex:999 1 380px;display:flex;flex-direction:column;gap:6px;min-width:0}
.j-hero h1{font-family:var(--font-d);font-weight:700;font-size:clamp(28px,3.6vw,38px);line-height:1.08;margin:0}
.j-hero p{margin:0;font-size:16px;line-height:1.5}
.j-hero.you p{opacity:.9}
.j-hero.them p,.j-hero.them .j-eye{color:var(--ink-2)}
.j-eye{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;opacity:.8}

/* ---- the panel that holds the rail and the children ---- */
.j-panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:clamp(20px,2.6vw,28px);display:flex;flex-direction:column;gap:16px}
.j-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.j-head h2{font-family:var(--font-d);font-size:21px;font-weight:700;margin:0}
.j-head .meta{font-size:14px;color:var(--ink-2)}

/* ---- 3 the rail.  --n is the node count. ---- */
.j-rail{display:grid;grid-template-columns:repeat(var(--n,7),minmax(0,1fr));gap:8px;align-items:start}
.j-node{font:inherit;color:var(--ink);background:none;border:0;padding:0;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0}
.j-node .d{width:34px;height:34px;border-radius:50%;display:inline-grid;place-items:center;font-weight:800;font-size:14px;border:2px solid var(--rail-ring);flex-shrink:0}
.j-node.done .d{background:var(--ink);color:var(--bg);border:0}
.j-node.now .d{background:var(--btn);color:var(--on-btn);border:0;box-shadow:0 0 0 5px var(--soft-btn)}
/* v5.12 (2 Nov 2026): a node whose rail gave it no short name is captioned with its own first
   detail line (journey.js), which is a whole sentence. Clamped here rather than cut in the string,
   so the words stay real, the columns stay even and nothing runs past the edge. */
.j-node .t{font-size:13px;font-weight:600;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.j-node.next .t{color:var(--ink-2);font-weight:500}
.j-node.now .t{font-weight:800}
button.j-node{cursor:pointer}
button.j-node:hover .t{text-decoration:underline}
.j-bar{height:8px;border-radius:var(--r-pill);background:var(--panel);overflow:hidden}
/* The fold a rail node opens. 30 Oct 2026: every node carries its own detail inline, so the rail
   is the whole experience rather than a row of labels pointing at another page. */
.j-fold{margin-top:14px;background:var(--panel-soft);border:1px solid var(--line);border-radius:14px;padding:14px 16px;color:var(--ink)}
.j-fold p{margin:0 0 8px;font-size:14px;line-height:1.5}
.j-fold p:last-child{margin-bottom:0}
.j-fold-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.j-fold-list li{border-top:1px solid var(--line)}
.j-fold-list li:first-child{border-top:0}
.j-fold-list a,.j-fold-list li>span.n{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:9px 2px;text-decoration:none;color:var(--ink);min-height:44px;box-sizing:border-box}
.j-fold-list a:hover .n{text-decoration:underline}
.j-fold-list .n{font-size:14px;font-weight:600}
.j-fold-list .s{font-size:12px;color:var(--ink-2)}
.j-fold-go{margin-top:10px}
.j-fold-go a{font-size:14px;font-weight:600;color:var(--ink);text-decoration:underline}
.j-bar i{display:block;height:100%;background:var(--btn);border-radius:var(--r-pill)}
.j-foot{font-size:14px;color:var(--ink-2);margin:0}
/* v5.01 (31 Oct 2026, 15:25 SAST): the foot opens the Must-haves fold in place rather than
   throwing her off the desk, so it is a button that has to read exactly like the link it
   replaced. Background FOLLOWS the theme here, so the text takes --ink-2, not a fixed partner. */
.j-footopen{font:inherit;font-size:14px;color:var(--ink-2);background:none;border:0;padding:0;
  margin:0;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.j-footopen:hover{color:var(--ink)}
.j-footopen:focus-visible{outline:2px solid var(--hi);outline-offset:3px;border-radius:4px}
.j-footopen[aria-expanded="true"]{color:var(--ink);text-decoration:none}
/* the phone caption: hidden on desktop, where every node already carries its label */
.j-at{display:none;font-size:15px;font-weight:700;margin:0;overflow-wrap:anywhere}

/* ---- 4a children as tiles (depths 1-2) ---- */
.j-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.j-tiles button{font:inherit;color:var(--ink);text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px 18px;cursor:pointer;display:flex;flex-direction:column;gap:6px;min-width:0}
.j-tiles button:hover{border-color:var(--ink)}
.j-tiles b{font-family:var(--font-d);font-size:16px;font-weight:700}
.j-tiles .s{font-size:13px;color:var(--ink-2)}
/* the miniature of the tile's own rail, so a child's state reads without opening it */
.j-mini{display:flex;align-items:center;gap:4px;margin-top:4px}
.j-mini i{display:block;height:6px;border-radius:var(--r-pill);background:var(--line);flex:1}
.j-mini i.on{background:var(--ink)}
.j-mini i.now{background:var(--btn)}

/* a tile that starts something new, rather than opening something that exists */
.j-tiles button.j-new{border-style:dashed;color:var(--ink-2)}
.j-tiles button.j-new:hover{color:var(--ink);border-color:var(--ink)}

/* picking one of a short list: project types, and anything like them */
.j-pick{display:flex;flex-wrap:wrap;gap:8px}
.j-pick button{font:inherit;font-size:13px;font-weight:600;padding:7px 14px;border-radius:var(--r-pill);border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer}
.j-pick button:hover{border-color:var(--ink)}
.j-pick button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.j-field{font:inherit;font-size:15px;width:100%;min-height:84px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);resize:vertical}
.j-field:focus{outline:2px solid var(--btn);outline-offset:1px}

/* the one line everything dormant folds into, so a surface stays short */
.j-more{font:inherit;font-weight:600;font-size:15px;color:var(--ink-2);background:none;border:0;padding:4px 0;cursor:pointer;text-align:left;align-self:flex-start}
.j-more:hover{color:var(--ink);text-decoration:underline}

/* ---- 4b children as steps (depth 3 only).  Finished steps leave this list; the rail keeps them. ---- */
.j-steps{display:flex;flex-direction:column}
.j-step{display:flex;gap:12px;align-items:flex-start;border-top:1px solid var(--line);padding:14px 0}
.j-step:first-child{border-top:0}
.j-step .d{width:26px;height:26px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:12px;font-weight:800;border:2px solid var(--rail-ring)}
.j-step.done .d{background:var(--ink);color:var(--bg);border:0}
.j-step.now .d{background:var(--btn);border:0;box-shadow:0 0 0 4px var(--soft-btn)}
.j-step .t b{display:block;font-size:15px;font-weight:600}
.j-step .t span:not(.j-chip){display:block;font-size:13px;color:var(--ink-2)}  /* v4.91: :not(.j-chip) — this rule is (0,2,1) and .j-chip.you is (0,2,0), so a chip inside a step was painted --ink-2 on fixed marigold: 1.11:1 in dark, 3.87:1 in light. Zero pages do this today; the exclusion is so the next one cannot. */

/* ---- the chip that says whose turn a tile is waiting on ---- */
.j-chip{display:inline-flex;align-items:center;font-size:12px;font-weight:700;padding:4px 11px;border-radius:var(--r-pill);background:var(--panel);color:var(--ink);align-self:flex-start}
.j-chip.you{background:var(--btn);color:var(--on-btn)}
.j-chip.urgent{background:var(--hi);color:var(--on-hi)}
.j-chip.calm{background:var(--good-soft);color:var(--good)}

/* ---- phone: 700px, the same breakpoint deskbar.js uses ----
   The rail stays left-to-right on a phone: nodes shrink to dots, the labels
   drop, and the current step is named once underneath. Nothing scrolls sideways.
   Live since the phone layout v2 was approved (18 Oct 2026); phone and desktop are built together. */
@media (max-width:700px){
  .wrap{padding-block:20px 48px;gap:16px}
  /* v4.86: a card is 18px at every width now; the phone exception is gone */
  .j-hero{padding:20px;gap:14px}
  .j-hero .btn{width:100%}
  .j-ic{width:48px;height:48px;font-size:21px}
  .j-panel{padding:18px;border-radius:20px}
  .j-rail{gap:6px}
  .j-node .d{width:14px;height:14px;border:2px solid var(--rail-ring);font-size:0}
  .j-node.now .d{box-shadow:0 0 0 4px var(--soft-btn)}
  .j-node .t{display:none}
  /* v5.12: the caption now names the stop even when the node carries no short label, so it can be
     a whole sentence. Two lines, clamped here rather than cut in the string. */
  .j-at{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
  .j-head .meta{display:none}  /* .j-at says it better, and says it once */
  .j-tiles{grid-template-columns:minmax(0,1fr)}
}
