/* The client dashboard's paint, in Ridgebeam's own colours.
 *
 * A TRANSCRIPTION of the mockups Jen approved page by page on
 * 2026-09-10, and the single place any of those values live. The old
 * palette sat inline in base.html, which meant the only way to answer
 * "is this still what she signed off" was to read a template.
 *
 * FONTS ARE SERVED FROM HERE, NOT FROM GOOGLE. This application makes
 * no outbound request while somebody is looking at a page, and a
 * stylesheet link to fonts.googleapis.com would have quietly broken
 * that for the sake of typography. The four files in vendor/fonts are
 * checked in with their fingerprints in SHA256SUMS; if they ever go
 * missing the stack falls back to the system font and every page still
 * works.
 */

@font-face {
  font-family: 'Archivo';
  src: url('/static/vendor/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/static/vendor/fonts/plex-sans-var-latin.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/static/vendor/fonts/plex-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/static/vendor/fonts/plex-mono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  /* The four brand colours, and nothing invented beside them. */
  --ink: #1B2A3A;          /* Blueprint Navy */
  --accent: #FF6A2B;       /* Safety Orange — ONE element per screen */
  --sand: #E8DCC8;         /* Warm Sand */
  --paper: #FAF8F5;        /* Off-White Paper */

  /* Navy at reading weights. Derived, not new colours. */
  --ink-soft: #5C6B7A;
  --ink-faint: #7A8794;
  --ink-ghost: #A9B2BC;

  --card: #FFFFFF;
  --line: #E5DFD4;
  --line-soft: #EFEAE1;

  /* State colours. These are the one deliberate extension of the doc
     palette: a screen has to say "late" and "paid" without spending
     the orange, which belongs to the one action that matters. */
  --bad: #B4452C;  --bad-bg: #F8E9E5;  --bad-line: #F0D5CD;
  --warn: #9A7B26; --warn-bg: #FBF1DE; --warn-line: #EDDCBC;
  --good: #4C7A57; --good-bg: #E8F2EC; --good-line: #CFE3D7;

  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --display: 'Archivo', var(--sans);
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
}
a { color: inherit; }

/* ---------- the shell: a bar, a menu row, then the page ---------- */

.topbar {
  display: flex; align-items: center; gap: 20px;
  padding: 0 32px; height: 64px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
.topbar .lockup { display: flex; align-items: center; gap: 12px; }
.topbar .lockup svg { display: block; }
.topbar .co { font-family: var(--display); font-weight: 700; font-size: 16px;
  letter-spacing: .01em; line-height: 1.2; }
.topbar .by { font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  color: var(--ink-faint); margin-top: 2px; }
.topbar .search {
  flex: 1; max-width: 480px; display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 14px; color: var(--ink-faint); font-size: 13px;
  text-decoration: none;
}
.topbar .search:hover { border-color: var(--ink-ghost); }
.topbar .spacer { flex: 1; }
.topbar .me { display: flex; align-items: center; gap: 10px; font-size: 13px;
  font-weight: 500; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink);
  color: var(--paper); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 12px; }
.topbar form { margin: 0; }
.topbar .signout { background: none; border: 0; color: var(--ink-faint);
  font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline;
  padding: 0; }

/* THE BAR WRAPS, IT DOES NOT SCROLL, and neither does the page behind
   it. Thirteen items at 14.5px need about 1100px; a 1280 laptop has the
   room and a 1024 one does not, and what a narrow one used to do was
   push the whole PAGE sideways. A demo that scrolls left and right in a
   meeting reads as broken software.

   Wrapping rather than `overflow-x: auto` on the row itself, which was
   here until 2026-09-12 and would now CLIP an open dropdown: a scroll
   container cannot let a child escape its bounds. A second row of menu
   is honest and costs 46px. */
.navrow {
  display: flex; align-items: stretch; gap: 4px; flex-wrap: wrap;
  padding: 0 32px; min-height: 46px;
  background: var(--card); border-bottom: 1px solid var(--line);
}
/* A link and a dropdown's summary are painted by ONE rule, applied to
   both. They used to be styled separately, which is how the menu
   shipped on 2026-09-12 with a summary that sat a different height
   from its neighbours: two rules describing one thing, and only one of
   them maintained. */
.navrow a, .navmenu > summary {
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; font-size: 14.5px;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.navrow a:hover, .navmenu > summary:hover { color: var(--ink); }
.navrow a.on, .navmenu > summary.on {
  font-weight: 600; color: var(--ink); border-bottom-color: var(--ink);
}
.navrow .spacer { flex: 1; }
.navrow .stamp { font-family: var(--mono); font-size: 12px;
  color: var(--ink-faint); display: flex; align-items: center; }

/* Dropdowns are <details>/<summary>, copied from the internal board
   rather than invented here: same markup, same measurements, this
   dashboard's own palette. NO JAVASCRIPT. A menu that stops working
   because a script failed to load is a page a person cannot navigate
   away from, and keyboard and screen readers get this for free. */
.navmenu { position: relative; display: flex; }
.navmenu > summary { list-style: none; cursor: pointer; user-select: none; }
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu[open] > summary { color: var(--ink); }
.navmenu-items {
  position: absolute; top: calc(100% - 1px); left: 4px; z-index: 40;
  min-width: 208px; padding: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 10px 28px rgba(27, 42, 58, .12);
  display: flex; flex-direction: column;
}
/* The panel's own links are not bar links: no underline rule, no
   height from the bar. Reset what the shared rule above gave them. */
.navmenu-items a {
  display: block; padding: 8px 12px; border-radius: 8px;
  border-bottom: none; font-size: 14.5px; white-space: nowrap;
}
.navmenu-items a:hover { background: var(--paper); color: var(--ink); }
.navmenu-items a.on { background: var(--paper); color: var(--ink);
  font-weight: 600; }
/* A menu item whose screen is not built. Greyed and inert: a
   full-strength item that does nothing reads as broken software, and
   this surface is opened in front of prospects. Greyed with a word on
   it reads as a roadmap. */
.navmenu-soon { display: flex; align-items: baseline; gap: 8px;
  padding: 8px 12px; font-size: 14.5px; color: var(--ink-ghost);
  white-space: nowrap; cursor: default; }
.navmenu-soon em { font-style: normal; font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-ghost); }

.main { padding: 28px 44px 48px; }

/* ---------- page furniture ---------- */

h1 { font-family: var(--display); font-size: 32px; font-weight: 800;
  line-height: 1.1; margin: 0 0 7px; letter-spacing: -.01em; }
.sub { color: var(--ink-soft); margin: 0 0 22px; font-size: 13.5px; max-width: 900px; }
h2 { font-family: var(--display); font-size: 16px; font-weight: 700;
  color: var(--ink); margin: 24px 0 10px; letter-spacing: 0; text-transform: none; }
h3 { font-family: var(--display); font-size: 14.5px; font-weight: 700; margin: 0; }

.crumb { font-size: 12px; color: var(--ink-faint); margin-bottom: 6px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }

/* Numbers across the top of a page. */
.tiles { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 17px; min-width: 148px; flex: 1; }
.tile .n { font-family: var(--display); font-size: 24px; font-weight: 800;
  line-height: 1; letter-spacing: -.01em; }
.tile .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; }
.tile.flag { border-color: var(--bad-line); }
.tile.flag .n { color: var(--bad); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 14px; overflow: hidden; }
.card .hd { padding: 13px 20px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card .bd { padding: 16px 20px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-family: var(--mono); font-size: 10px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint);
  font-weight: 500; padding: 11px 20px; border-bottom: 1px solid var(--line); }
td { padding: 12px 20px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }

/* A pill states a fact. It never carries the orange: the orange belongs
   to the one thing on a screen a person is meant to do. */
.pill { display: inline-block; font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .05em; text-transform: uppercase; padding: 3.5px 9px;
  border-radius: 6px; white-space: nowrap;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line); }
.pill.good { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill.bad  { background: var(--bad-bg);  color: var(--bad);  border-color: var(--bad-line); }

.muted { color: var(--ink-faint); }
.empty { padding: 26px 20px; color: var(--ink-faint); font-size: 13.5px; }

/* A draft, shown as the thing it is. */
.draft { white-space: pre-wrap; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px; font-size: 13.5px; margin: 10px 0;
  line-height: 1.6; }

/* Why the system did something. Sand, not a coloured left border: this
   is context to read, not a warning. */
.why { font-size: 12.5px; color: var(--ink); background: var(--sand);
  border-radius: 8px; padding: 12px 15px; margin: 10px 0; line-height: 1.55; }

.btn { display: inline-block; border: 1px solid var(--line); background: var(--card);
  border-radius: 7px; padding: 8px 15px; font: inherit; font-size: 12.5px;
  font-weight: 500; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--ink-ghost); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper);
  font-weight: 600; }
.btn.primary:hover { background: #24384c; border-color: #24384c; }
/* THE one orange control: the action a page exists to get done. At most
   one of these renders on a screen. */
.btn.act { background: var(--accent); border-color: var(--accent); color: #fff;
  font-weight: 600; }
.btn.act:hover { background: #ef5d1f; border-color: #ef5d1f; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 7px; font: inherit; background: var(--card); color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--ink-ghost); }

/* A dropdown that matches the inputs beside it: same height, border and
   corner, with its own arrow instead of the browser's. A class, not every
   select: the job and pipeline panels size theirs inline. */
select.control { -webkit-appearance: none; appearance: none; height: 38px;
  padding: 0 32px 0 12px; border: 1px solid var(--line); border-radius: 7px;
  font: inherit; font-size: 13px; color: var(--ink); cursor: pointer;
  min-width: 9.5rem; background: var(--card) no-repeat right 12px center / 10px 6px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237A8794' stroke-width='1.5'/%3E%3C/svg%3E"); }
select.control:focus { outline: none; border-color: var(--ink-ghost); }
.field-label { display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 6px; }

/* People under Settings: one column per fact, every row centred, so the
   name, its type, its Google state and Remove sit on one line. */
.people td { vertical-align: middle; }
.people form { margin: 0; }
.people-email { font-size: 12px; margin-top: 2px; }
.people .people-type { width: 11rem; }
.people .people-google { width: 11rem; }
.people .people-remove { width: 7rem; text-align: right; }
.people-add { display: grid; align-items: end; gap: 12px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 11rem auto; }
.people-add input { height: 38px; padding: 0 12px; }
.people-add .btn { height: 38px; }
.people-add select.control { width: 100%; }

/* What the chief of staff can do (/abilities; app/abilities.py). Every
   account type reads it. Built from the page Jen approved 2026-11-05:
   one row per ability, the example under it, its plan and state at the
   right. The one orange element is the "Ask your consultant" button at
   the bottom. */
.ab-intro { font-size: 15px; line-height: 1.55; color: var(--ink); max-width: 680px; }
.ab-on { color: var(--good); }
.ab-not { color: var(--ink-soft); }
.ab-find { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 14px 16px; margin-bottom: 22px; overflow: visible; }
.ab-find label { font-size: 13.5px; }
.ab-find input { flex: 1 1 240px; min-width: 0; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
  font: inherit; font-size: 14px; color: var(--ink); }
.ab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-chip { min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13.5px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); }
.ab-chip:hover { border-color: var(--ink-ghost); }
.ab-chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper);
  font-weight: 600; }
.ab-group { display: flex; align-items: baseline; gap: 10px; font-size: 18px; }
.ab-count { font-family: var(--mono); font-size: 11.5px; font-weight: 400;
  color: var(--ink-faint); }
.ab-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.ab-row:first-child { border-top: 0; }
.ab-what { flex: 999 1 420px; min-width: 0; }
.ab-line { font-size: 15px; font-weight: 500; line-height: 1.4; }
.ab-say { margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.ab-say em { color: var(--ink); }
.ab-note { margin-top: 4px; font-size: 12.5px; color: var(--ink-soft); }
.ab-upsell { margin-top: 8px; font-size: 13.5px; line-height: 1.45;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; }
.ab-upsell a { font-weight: 600; }
.ab-tags { flex: 1 1 240px; display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: flex-end; align-items: center; }
.ab-tag { font-size: 12.5px; color: var(--ink-faint); }
.ab-pill { min-width: 64px; text-align: center; }
.ab-pill.ab-not-pill { background: var(--card); color: var(--ink-faint);
  border-style: dashed; border-color: var(--ink-ghost); }
.ab-ask { margin-top: 30px; background: var(--sand); border-radius: 10px;
  padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px 24px; }
.ab-ask p { margin: 0; flex: 1 1 420px; font-size: 14.5px; line-height: 1.55; }
.ab-ask .btn { font-size: 14px; padding: 11px 18px; }
@media (max-width: 640px) {
  .ab-tags { justify-content: flex-start; }
}

@media (max-width: 980px) {
  .two, .three { grid-template-columns: 1fr; }
  .people-add { grid-template-columns: 1fr; }
  /* A phone has no room for four columns: each person becomes a block,
     name on top, then type, Google state and Remove on one line. */
  .people .people-head { display: none; }
  .people tr { display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
  .people tr:last-child { border-bottom: 0; }
  .people td, .people .people-type, .people .people-google,
  .people .people-remove { display: block; width: auto; padding: 0; border: 0; }
  .people td:first-child { flex-basis: 100%; }
  .people .people-remove { margin-left: auto; }
  .topbar { padding: 0 18px; } .navrow { padding: 0 18px; }
  .topbar .search { display: none; }
  .main { padding: 22px 18px 40px; }
}
