/* MPE v2 screens. Colours carried from the live app (.streamlit/config.toml and the inline styles in MPE.py). */
:root {
  --plum: #813563;
  --plum-dark: #6a2b52;
  --ink: #1e293b;
  --body: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --wash: #f8fafc;
  --bg: #ffffff;
}
/* 16 Nov 2026 (Joe, build 16k): the job hunting side uses the green from the EvolveThinking logo
   in place of the plum - titles, buttons, borders and the light tints that go with them. */
html.cand { --plum: #4d7c0f; --plum-dark: #3f6212; }
html.cand .pill, html.cand .share, html.cand .bundle.hl, html.cand .drop:hover, html.cand .drop.on { background: #f7fee7; }
html.cand .pill { border-color: #d9f99d; }
html.cand .howbox { background: #f7fee7; }
html.cand .spinner { border-color: #d9f99d; border-top-color: var(--plum); }
html.cand [style*="color:#813563"], html.cand [style*="color: #813563"] { color: #4d7c0f !important; }
html.cand [style*="background:#813563"], html.cand [style*="background: #813563"] { background: #4d7c0f !important; }
html.cand [style*="border-color:#813563"], html.cand [style*="border-color: #813563"] { border-color: #4d7c0f !important; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--plum); }
.wrap { max-width: 1540px; margin: 0 auto; padding: 24px 16px 80px; }
.wrap.landing { max-width: 1200px; }   /* the landing page keeps its reading width */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; }
h3 { font-size: 1.5rem; margin: 18px 0 10px; }
h4 { font-size: 1.1rem; margin: 14px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.hidden { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; font: inherit;
  font-size: 0.92rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--plum); color: var(--plum); }
.btn.primary { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn.primary:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }

/* top bar */
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.brand { display: flex; align-items: flex-start; gap: 20px; }
.brand img { height: 110px; width: auto; }
.brand h1 { color: var(--plum); margin: 0; font-size: 2.2rem; }
.brand .sub { color: #666; font-size: 0.9rem; }
.brand .tag { background: var(--plum); color: #fff; border-radius: 12px; padding: 2px 8px; font-size: 0.7rem; margin-left: 10px; font-weight: 700; }
.status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.balance { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.balance b { background: #f1f5f9; border: 1px solid #cbd5e1; padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; color: var(--plum); margin-left: 6px; }
.cloud { font-size: 0.7rem; font-weight: 700; color: #666; display: flex; align-items: center; gap: 8px; letter-spacing: .05em; }
.planstat { font-size: 0.7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.planstat.ps-ok { color: #166534; }
.planstat.ps-warn { color: #b45309; }
.planstat.ps-bad { color: #b91c1c; }
.cloud i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.topnav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .brand img { height: 56px; } .brand h1 { font-size: 1.5rem; } .status { align-items: flex-start; } .topnav { justify-content: flex-start; } }

/* boxes carried from the live inline styles */
.tip { background: var(--wash); border-left: 3px solid var(--plum); padding: 10px 14px; border-radius: 4px; font-size: 0.88rem; color: var(--body); margin-bottom: 10px; }
.howbox { background: #fdf2f8; border-left: 4px solid var(--plum); padding: 15px; border-radius: 6px; margin-bottom: 20px; font-size: 0.9rem; color: var(--ink); line-height: 1.6; }
.infobox { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 15px; border-radius: 6px; margin-bottom: 20px; font-size: 0.9rem; color: var(--ink); line-height: 1.6; }
.mission { background: var(--wash); border-left: 4px solid var(--plum); padding: 12px 16px; margin-bottom: 20px; border-radius: 4px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mission strong { color: var(--plum); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; }
.mission p { margin: 8px 0 0; font-size: 0.95rem; color: var(--body); }
.warn { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 0.9rem; }
.err { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 0.9rem; white-space: pre-line; }
.ok { background: #f0fdf4; border: 1px solid #86efac; color: #166534; border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 0.9rem; }
.note { background: var(--wash); border-left: 3px solid #3b82f6; padding: 10px 14px; border-radius: 4px; font-size: 0.85rem; color: var(--body); margin-bottom: 12px; }
hr.div { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

textarea, input[type=email], input[type=password], input[type=text] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 300px; resize: vertical; }
label { font-size: 0.88rem; font-weight: 600; color: var(--body); display: block; margin: 10px 0 4px; }

details.exp { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; margin: 10px 0; background: #fff; }
details.exp > summary { cursor: pointer; font-weight: 600; color: var(--body); }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pill { display: inline-block; background: #fdf4f9; color: var(--plum); border: 1px solid #e9c6db; padding: 4px 12px; border-radius: 16px; font-size: 0.8rem; font-weight: 600; cursor: help; }

.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

.drop { display: block; border: 2px dashed #cbd5e1; border-radius: 10px; padding: 22px 18px; text-align: center; color: var(--muted); background: var(--wash); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.on { border-color: var(--plum); background: #fdf4f9; }
.drop .t { font-weight: 700; color: #1e293b; font-size: 1.02rem; margin-bottom: 6px; }
.drop .b { font-size: .92rem; color: #475569; }
.drop .btnlike { display: inline-block; margin-left: 4px; padding: 4px 12px; border-radius: 8px; background: var(--plum); color: #fff; font-weight: 600; font-size: .88rem; }
.drop .h { font-size: .8rem; color: #94a3b8; margin-top: 8px; }
.filelist { margin: 8px 0; padding: 0; list-style: none; font-size: 0.9rem; }
.filelist li { padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; }

/* progress */
.progress { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--wash); margin: 14px 0; }
.progress h4 { margin: 0 0 8px; }
.progress ul { margin: 0; padding-left: 18px; font-size: 0.88rem; color: var(--body); max-height: 320px; overflow: auto; }
.spinner { width: 14px; height: 14px; border: 2px solid #e9c6db; border-top-color: var(--plum); border-radius: 50%; display: inline-block; animation: spin 1s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* candidate HUD */
.cand { margin: 26px 0 10px; }
.hudrow { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4.5fr) auto; gap: 16px; align-items: start; }   /* 3 Nov 2026: the PDF button takes only the room it needs; the candidate card gets the rest */
.hudrow .pdfcell { align-self: center; }   /* the PDF button sits level with the middle of the chart */
.hudrow .pdfcell .btn { width: auto; white-space: nowrap; padding: 8px 14px; }
@media (max-width: 900px) { .hudrow { grid-template-columns: 1fr; } }
.hud { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--plum); border-radius: 14px; padding: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.hud-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.hud h2 { margin: 0 0 4px; color: var(--plum); font-size: 1.7rem; line-height: 1.1; }
.hud .sub { font-size: 1rem; font-weight: 600; color: #475569; }
.tiles { display: flex; gap: 8px; flex: 1.5; min-width: 260px; }
.tile { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,.03); }
.tile .k { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px;
            min-height: 2.6em; display: flex; align-items: center; justify-content: center; line-height: 1.3; }   /* 3 Nov 2026: every label gets two lines of room and sits in the middle of it, so the numbers line up */
.tile .v { font-size: 1.4rem; font-weight: 800; color: var(--plum); line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; gap: 6px; padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; cursor: help; }
.chip.violet { background: #faf5ff; color: #7e22ce; border-color: #d8b4fe; }
.mini { border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; min-height: 310px; }

.share { background: #fdf4f9; border: 1px solid var(--plum); border-radius: 8px; padding: 14px 18px; margin: 10px 0 4px; }
.share .t { font-size: 0.9rem; font-weight: 700; color: var(--plum); margin-bottom: 4px; }
.share .b { font-size: 0.83rem; color: var(--body); }
pre.code { background: #f6f8fa; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 0.85rem; white-space: pre-wrap; word-break: break-all; margin: 6px 0; }

.summary { background: var(--wash); border-left: 4px solid #3b82f6; padding: 12px 18px; margin: 0 0 15px; border-radius: 0 6px 6px 0; font-size: 0.95rem; line-height: 1.6; white-space: pre-line; }
.tk { display: inline-block; padding: 4px 12px; border-radius: 16px; font-size: 0.78rem; font-weight: 600; margin: 3px; }
.tk.hit { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.tk.miss { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.tk.green { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.tk.blue { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.req { display: flex; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-radius: 4px; border-left: 3px solid; }
.req .g { font-weight: 800; }
.req .n { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.req .n span { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.req .d { color: #475569; font-size: 0.82rem; margin-top: 2px; }

.cardgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
@media (max-width: 900px) { .cardgrid { grid-template-columns: 1fr; } }
details.card { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: #fff; }
details.card > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 0.92rem; }
details.card .inner { padding: 0 14px 12px; }
.math { background: var(--wash); border-top: 1px solid var(--line); padding: 10px 15px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; border-radius: 0 0 6px 6px; margin-bottom: 12px; }
.math b.r { font-size: 1.1rem; color: var(--plum); }
.ask { font-size: 0.88rem; background: var(--wash); border: 1px solid var(--line); border-left: 4px solid var(--plum); padding: 12px; border-radius: 4px; margin-bottom: 12px; }
.why { font-size: 0.88rem; border: 1px solid var(--line); padding: 12px; border-radius: 4px; margin-bottom: 12px; }
.bridge { font-size: 0.85rem; background: #fefce8; border: 1px solid #fde68a; border-left: 4px solid #d97706; padding: 12px; border-radius: 4px; margin-bottom: 12px; color: #78350f; }
.ev { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--body); }
.legend { background: #f8f9fa; padding: 16px; border-radius: 8px; border: 1px solid var(--line); margin-top: 10px; font-size: 0.85rem; color: var(--body); }
.legend h4 { color: var(--plum); margin: 0 0 12px; font-size: 0.95rem; }
.legend div { margin-bottom: 6px; }

/* history + purchase */
.hrow { border-bottom: 1px solid #f1f5f9; padding: 10px 2px; }
.hrow .top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.hrow .title { font-weight: 700; }
.hrow .date { font-weight: 400; color: var(--faint); font-size: .75rem; margin-left: 10px; }
.hrow .counts { font-size: .78rem; color: var(--muted); }
.hrow .counts b { color: var(--plum); }
.hrow .linkrow { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.hrow .linkrow pre { flex: 1; margin: 0; }
.bundles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .bundles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bundles { grid-template-columns: 1fr; } }
.bundle { border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 2px 6px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 6px; }
.bundle.hl { border: 2px solid var(--plum); background: #fdf4f9; }
.bundle .badge { font-size: .72rem; font-weight: 700; color: var(--plum); letter-spacing: .06em; }
.bundle .name { font-size: 1.15rem; font-weight: 700; }
.bundle .desc { font-size: .82rem; color: var(--muted); }
.bundle .price { font-size: 1.7rem; font-weight: 700; color: var(--plum); }
.bundle .feat { font-size: .8rem; color: #475569; border-top: 1px solid #f1f5f9; padding-top: 10px; flex: 1; }
