/* Shared visual foundation for every jobAFK page. Edit colors, fonts, spacing,
   corners and motion here; component styles use these semantic properties.
   data-app-theme on <html> is the only theme source.
   Type rules (JOB-51, Aaron Lai, 2026-11-09; test/typography.test.js):
   - Text is the standard sans, var(--sans) (Geist), the onboarding screens
     included (src/pages/onboarding/official-onboarding.css). Only the JobAFK
     wordmark and the signed-in pages' titles (h1) keep var(--font-brand)
     (Manrope); code and logs use var(--mono). The older onboarding sheets
     (src/pages/Onboarding.css, src/pages/onboarding/onboarding-*.css and
     student-customization.css) still name var(--font-brand), but only in
     rules under .onb-page, the page root that only LegacyOnboarding
     (src/pages/Onboarding.jsx) draws, and the app never shows that.
   - No serif face anywhere except the landing home page, whose own sheets
     (src/pages/Landing.css, LandingGlass.css, src/pages/landing/) set the
     display face they draw with. --serif and --font-display stay defined
     here only so those sheets never read an undefined name; both are the
     standard sans. New rules write var(--sans).
   - Every large figure (a plan's price on a plan card, the current plan's
     amount and the plan credits left on Billing & Plans, the numbers on Refer
     a friend) is drawn from the --figure-* properties below, so equal kinds
     of number look equal on every page.
   Read by: src/styles.css (the app, the landing page, onboarding),
   public-pages.css (the static About, Privacy and Terms pages). */

/* Real text weights keep captions light and headings distinct. Google Fonts
   Manrope v20, Latin variable file (400–800); license: fonts/Manrope-OFL.txt.
   Keep the original 700 face for the established wordmark. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 699;
  font-display: swap;
  src: url("/fonts/manrope-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 701 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-latin-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --brand-mark: url("/images/jobafk-logo.svg");
  --paper: #ffffff;
  --card: #ffffff;
  --field: #ffffff;
  --inset: #f4f7fc;
  --chip-bg: #edf2f9;
  --chip-line: #e0e6ef;
  --seg-bg: #f4f7fc;
  --row-read: #f4f7fc;
  --logo-bg: transparent;
  --line: #e0e6ef;
  --line-strong: #cbd4e2;
  --ink: #1d1d1f;
  --ink-2: #485263;
  --muted: #626b7a;
  /* QA 188: an example inside an empty box ("e.g. 5"), a shade lighter than --muted. */
  --placeholder: #8a929e;
  --on-accent: #ffffff;
  --accent: #0066cc;
  --accent-deep: #0066cc;
  --accent-soft: #e9f2ff;
  --accent-soft-hover: #dceaff;
  --accent-line: #b9d0f0;
  --accent-line-strong: #b9d0f0;
  --accent-fill: #0071e3;
  --accent-fill-hover: #0066cc;
  --accent-disabled: #b4c5dc;
  --accent-tint: rgba(0,113,227,.10);
  --accent-divider: rgba(0,113,227,.18);
  --accent-glow: rgba(0,113,227,.16);
  --danger: #b3382f;
  --danger-fill: #b3382f;
  --danger-fill-hover: #952c24;
  --warn-bg: #faf3e0;
  --warn-line: #e3cf9b;
  --warn-ink: #7a5d12;
  --ok-bg: #e6f3ec;
  --ok-line: #b4d9c5;
  --ok-ink: #145c38;
  --match-line: #7fb393;
  --match-fill: #2f6a4a;
  --on-match-fill: #ffffff;
  --score-fill-low: #8a6712;
  --score-fill-none: #5f6775;
  --alarm-fill: #dc2626;
  --on-alarm-fill: #ffffff;
  --err-bg: #faeae8;
  --err-line: #e7bcb7;
  --err-ink: #8c2b23;
  --run-bg: #e9f2ff;
  --run-line: #b9d0f0;
  --run-ink: #235fa0;
  --attn-bg: #fdeedd;
  --attn-line: #f1c79a;
  --attn-ink: #9a4a0b;
  --attempted: #c06a1c;
  --star: #f2b01e;
  --inverse-bg: #1d1d1f;
  --inverse-ink: #f5f5f7;
  --inverse-muted: #c1c6d0;
  --inverse-accent: #8bbaff;
  --shadow-soft: rgba(35,49,77,.04);
  --shadow: rgba(35,49,77,.14);
  --shadow-strong: rgba(35,49,77,.22);
  --backdrop: rgba(24, 26, 31, 0.45);
  --hover-tint: rgba(0,113,227,.06);
  --rank-role-bg: #dceaff;
  --rank-company-bg: #f0e2c3;
  --rank-company-ink: #6b4a10;
  --knob: #ffffff;
  --knob-grip: #adb6c4;
  --tag-green-bg: #e0f4e6;
  --tag-green-ink: #0e6a2e;
  --tag-green-line: #a7dcb8;
  --tag-purple-bg: #eee9fa;
  --tag-purple-ink: #65458e;
  --tag-purple-line: #d4c7e9;
  --tag-blue-bg: #e5eef8;
  --tag-blue-ink: #1d4f7c;
  --tag-blue-line: #bcd4ea;
  --tag-olive-bg: #eff3df;
  --tag-olive-ink: #566315;
  --tag-olive-line: #ccd7a4;
  --tag-slate-bg: #eef1f4;
  --tag-slate-ink: #47546a;
  --tag-slate-line: #d3dae3;
  --tag-mauve-bg: #f3eef6;
  --tag-mauve-ink: #5e4a6e;
  --tag-mauve-line: #ddd1e6;
  --tag-rose-bg: #f2ecec;
  --tag-rose-ink: #735f62;
  --tag-rose-line: #e0d3d4;
  --tag-neutral-bg: #edf2f9;
  --tag-neutral-ink: #626b7a;
  --tag-neutral-line: #e0e6ef;
  --log-bg: #14171c;
  --log-ink: #c8d3cc;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  /* JOB-51 (Aaron Lai, 2026-11-09): no serif face outside the landing home
     page, so this name is the standard sans. Only the landing home page's own
     sheets still read it; nothing else may (test/typography.test.js). */
  --serif: var(--sans);
  --mono: "IBM Plex Mono", Consolas, monospace;
  --scheme: light;
  --section-gradient: linear-gradient(135deg,#f9fbff,#edf5ff);
  --hero-gradient: radial-gradient(ellipse at 16% 35%,rgba(216,235,255,.46),transparent 62%), radial-gradient(ellipse at 86% 56%,rgba(207,231,255,.5),transparent 62%), linear-gradient(180deg,#fff,#f1f7ff);
  --hero-transition: linear-gradient(180deg,#f1f7ff,#fff 80%);
  --surface-raised: #e8eef8;
  --dot: #adb6c4;
  --disabled-ink: #526078;
  --glass-bg: rgba(255,255,255,.78);
  --preview-shadow: 0 24px 80px rgba(45,85,135,.1);
  --page-glow: radial-gradient(ellipse at 50% 0%, rgba(199,224,255,.32), transparent 65%);
  /* JOB-51: the landing home page sets its own display face (Landing.css);
     everywhere else this name is the standard sans, like --serif above. */
  --font-display: var(--sans);
  --font-brand: "Manrope", var(--sans);
  /* JOB-51 (Aaron Lai, 2026-11-09): the one look of a large figure. A big
     dollar amount (a plan's price, the current plan's amount) and a big credit
     count (plan credits left, a Refer a friend number) are both written
     `font: var(--figure-weight) var(--figure-size)/1 var(--sans)` with this
     tracking and these numerals, so the same kind of number never looks
     different from page to page. The size is the signed-in app's; the public
     pages' plan cards draw the same look at their own larger size
     (marketing.css --mk-fs-price). */
  --figure-weight: 600;
  --figure-size: 40px;
  --figure-tracking: -0.02em;
  --figure-numerals: lining-nums tabular-nums;
  --radius-control: 12px;
  --radius-inner: 16px;
  --radius-panel-inner: 20px;
  --radius-card: 24px;
  --radius-panel: 32px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --content-width: 1184px;
  /* The signed-in app's frame (QA 218/219, ../src/app-shell.css): the left
     sidebar's width from a 1024px window (room for "Application View" (DEV-60; was "Application History") in
     16px type beside its icon and a "99+" count), the page column's gutter on each
     side (the column itself has no maximum width), and how far a text box's
     words sit from its left edge (QA 176: 1px border + 11px padding), which
     the field titles above the boxes line up with (DEV-99: 0 on Job
     Preferences, Agent Settings and Personal Profile, ../src/styles.css). */
  --sidebar-w: clamp(256px, 18vw, 288px);
  --app-gutter: clamp(16px, 2.5vw, 40px);
  --field-text-inset: 12px;
  --duration-ui: 220ms;
  --ease-ui: cubic-bezier(.22,1,.36,1);
  --home-bg: var(--paper);
  --home-card: var(--card);
  --home-alt: var(--inset);
  --home-soft: var(--chip-bg);
  --home-raised: var(--surface-raised);
  --home-ink: var(--ink);
  --home-secondary: var(--ink-2);
  --home-muted: var(--muted);
  --home-line: var(--line);
  --home-line-strong: var(--line-strong);
  --home-dot: var(--dot);
  --home-link: var(--accent-deep);
  --home-blue-soft: var(--accent-soft);
  --home-blue-line: var(--accent-line);
  --home-blue-ink: var(--run-ink);
  --home-disabled: var(--accent-disabled);
  --home-disabled-ink: var(--disabled-ink);
  --home-brand: var(--accent);
  --home-danger: var(--danger);
  --home-scheme: var(--scheme);
  --home-nav-bg: var(--glass-bg);
  --home-preview-shadow: var(--preview-shadow);
  --home-ok-bg: var(--ok-bg);
  --home-ok-line: var(--ok-line);
  --home-ok-ink: var(--ok-ink);
  --home-warn-bg: var(--warn-bg);
  --home-warn-line: var(--warn-line);
  --home-warn-ink: var(--warn-ink);
  --home-err-bg: var(--err-bg);
  --home-err-line: var(--err-line);
  --home-err-ink: var(--err-ink);
  --home-attn-bg: var(--attn-bg);
  --home-attn-line: var(--attn-line);
  --home-attn-ink: var(--attn-ink);
  --home-purple-bg: var(--tag-purple-bg);
  --home-purple-line: var(--tag-purple-line);
  --home-purple-ink: var(--tag-purple-ink);
  --home-olive-bg: var(--tag-olive-bg);
  --home-olive-line: var(--tag-olive-line);
  --home-olive-ink: var(--tag-olive-ink);
}

/* One vector mark for navigation, onboarding, the app, and public pages.
   Its tint follows the same accent token as the AFK wordmark in either theme. */
/* DEV-182: the supplied wordmark already contains its symbol. Older demo marks keep theirs. */
:is(.brand, .mk-brand, .fo-brand-mark, .film-letter__brand):not(:has(.jobafk-wordmark, .brand-light))::before {
  content: "";
  display: inline-block;
  flex: none;
  width: 1.12em;
  height: 1.12em;
  margin-right: .25em;
  vertical-align: -.15em;
  background-color: var(--accent);
  -webkit-mask: var(--brand-mark) center / contain no-repeat;
  mask: var(--brand-mark) center / contain no-repeat;
}
:root[data-app-theme="dark"] {
  color-scheme: dark;
  --paper: #090b10;
  --card: #14161c;
  --field: #14161c;
  --inset: #101216;
  --chip-bg: #20242d;
  --chip-line: #2a2e38;
  --seg-bg: #101216;
  --row-read: #101216;
  --logo-bg: #ece8df;
  --line: #2a2e38;
  --line-strong: #3a404d;
  --ink: #f5f5f7;
  --ink-2: #c1c6d0;
  --muted: #a8abb5;
  --placeholder: #737884;
  --on-accent: #ffffff;
  --accent: #8bbaff;
  --accent-deep: #8bbaff;
  --accent-soft: #202d45;
  --accent-soft-hover: #293b58;
  --accent-line: #365482;
  --accent-line-strong: #365482;
  --accent-fill: #0071e3;
  --accent-fill-hover: #0066cc;
  --accent-disabled: #354b6a;
  --accent-tint: rgba(139,186,255,.14);
  --accent-divider: rgba(139,186,255,.24);
  --accent-glow: rgba(0,0,0,.3);
  --danger: #ff9299;
  --danger-fill: #a8392f;
  --danger-fill-hover: #be4639;
  --warn-bg: #30291a;
  --warn-line: #6b5731;
  --warn-ink: #f1cf80;
  --ok-bg: #152c23;
  --ok-line: #315d49;
  --ok-ink: #8ddcb4;
  --match-line: #4a8a6b;
  --match-fill: #2f7a56;
  --on-match-fill: #ffffff;
  --score-fill-low: #8a6712;
  --score-fill-none: #5f6775;
  --alarm-fill: #dc2626;
  --on-alarm-fill: #ffffff;
  --err-bg: #321e24;
  --err-line: #6e3b47;
  --err-ink: #ff9daa;
  --run-bg: #202d45;
  --run-line: #365482;
  --run-ink: #a2c8ff;
  --attn-bg: #33281d;
  --attn-line: #765536;
  --attn-ink: #ffc18a;
  --attempted: #e59a52;
  --star: #f2b01e;
  --inverse-bg: #e9eef8;
  --inverse-ink: #1d1d1f;
  --inverse-muted: #485263;
  --inverse-accent: #0066cc;
  --shadow-soft: rgba(0,0,0,.3);
  --shadow: rgba(35,49,77,.14);
  --shadow-strong: rgba(0,0,0,.6);
  --backdrop: rgba(0, 0, 0, 0.6);
  --hover-tint: rgba(255,255,255,.06);
  --rank-role-bg: #202d45;
  --rank-company-bg: #43371c;
  --rank-company-ink: #e8c98a;
  --knob: #ffffff;
  --knob-grip: #626b7a;
  --tag-green-bg: #183222;
  --tag-green-ink: #8ed6a5;
  --tag-green-line: #2c5a3a;
  --tag-purple-bg: #2b2342;
  --tag-purple-ink: #c4b5ed;
  --tag-purple-line: #58497c;
  --tag-blue-bg: #1a2a3d;
  --tag-blue-ink: #9fc4ec;
  --tag-blue-line: #2f4a6a;
  --tag-olive-bg: #2a301b;
  --tag-olive-ink: #d0dd94;
  --tag-olive-line: #566638;
  --tag-slate-bg: #252a31;
  --tag-slate-ink: #b5c0d0;
  --tag-slate-line: #3d4652;
  --tag-mauve-bg: #2e2533;
  --tag-mauve-ink: #d4bfe2;
  --tag-mauve-line: #4b3d55;
  --tag-rose-bg: #312626;
  --tag-rose-ink: #d9bfc2;
  --tag-rose-line: #523f41;
  --tag-neutral-bg: #20242d;
  --tag-neutral-ink: #a8abb5;
  --tag-neutral-line: #2a2e38;
  --log-bg: #121316;
  --log-ink: #c8d3cc;
  --scheme: dark;
  --section-gradient: var(--inset);
  --hero-gradient: var(--paper);
  --hero-transition: var(--paper);
  --surface-raised: #293144;
  --dot: #525967;
  --disabled-ink: #a8b2c5;
  --glass-bg: rgba(16,18,24,.88);
  --preview-shadow: 0 24px 80px rgba(0,0,0,.3);
  --page-glow: radial-gradient(ellipse at 50% 0%, rgba(48,91,155,.09), transparent 65%);
  --home-bg: var(--paper);
  --home-card: var(--card);
  --home-alt: var(--inset);
  --home-soft: var(--chip-bg);
  --home-raised: var(--surface-raised);
  --home-ink: var(--ink);
  --home-secondary: var(--ink-2);
  --home-muted: var(--muted);
  --home-line: var(--line);
  --home-line-strong: var(--line-strong);
  --home-dot: var(--dot);
  --home-link: var(--accent-deep);
  --home-blue-soft: var(--accent-soft);
  --home-blue-line: var(--accent-line);
  --home-blue-ink: var(--run-ink);
  --home-disabled: var(--accent-disabled);
  --home-disabled-ink: var(--disabled-ink);
  --home-brand: var(--accent);
  --home-danger: var(--danger);
  --home-scheme: var(--scheme);
  --home-nav-bg: var(--glass-bg);
  --home-preview-shadow: var(--preview-shadow);
  --home-ok-bg: var(--ok-bg);
  --home-ok-line: var(--ok-line);
  --home-ok-ink: var(--ok-ink);
  --home-warn-bg: var(--warn-bg);
  --home-warn-line: var(--warn-line);
  --home-warn-ink: var(--warn-ink);
  --home-err-bg: var(--err-bg);
  --home-err-line: var(--err-line);
  --home-err-ink: var(--err-ink);
  --home-attn-bg: var(--attn-bg);
  --home-attn-line: var(--attn-line);
  --home-attn-ink: var(--attn-ink);
  --home-purple-bg: var(--tag-purple-bg);
  --home-purple-line: var(--tag-purple-line);
  --home-purple-ink: var(--tag-purple-ink);
  --home-olive-bg: var(--tag-olive-bg);
  --home-olive-line: var(--tag-olive-line);
  --home-olive-ink: var(--tag-olive-ink);
}

