/* WARNO shared components for the real pages (Designer, 10 Oct 2026). Site tokens only: --stencil --cond --mono --code --ink --ink2 --dim --soft --obj --obj2 --accent-bg --w-* .
   One class family, prefix w-. Loaded after pages.css and before any page's own <style>. The terminal demo (term3.css) is the reference; every rule here has a twin there.
   Files that use it: dashboard.html, company.html, account-profile.html, search-skin.css, notice-skin.css, vehicle.css, places.css. */
:root { --w-r: 10px; --w-r2: 14px; --w-ok: #1f6b50; --w-ok-bg: #e3f4ec; --w-warn: #8f6510; --w-warn-bg: #fbf0d9; --w-bad: #a3321f; --w-bad-bg: #fde8e4; --w-info: #1d5fa0; --w-info-bg: #eaf2fb; }

/* page head: kicker, title, lede, tools on the right */
.w-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 14px; flex-wrap: wrap; }
.w-head .w-kick { color: var(--obj2, #8f6510); font: 500 12.5px var(--cond); letter-spacing: .02em; margin-bottom: 2px; }
.w-head h2 { margin: 0 !important; font: 600 26px/1.15 var(--stencil) !important; letter-spacing: -.02em; color: var(--w-text, #0b1019); }
.w-head p { margin: 6px 0 0; color: var(--ink2); max-width: 78ch; line-height: 1.45; font-size: 15px; }
.w-tools { display: flex; gap: 8px; flex: none; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.w-help { color: var(--ink2); font-size: 13.5px; margin: 0 0 6px; }

/* KPI strip: 4 or 6 figures separated by hairlines (no boxes) */
.w-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft); margin: 0 0 14px; }
.w-strip.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.w-strip > div, .w-strip > a { padding: 10px 14px 10px 0; border-right: 1px solid var(--soft); margin-right: 14px; min-width: 0; text-decoration: none; color: inherit; }
.w-strip > :last-child { border-right: 0; margin-right: 0; }
.w-strip b { display: block; font: 600 24px/1.1 var(--stencil); font-variant-numeric: tabular-nums; color: var(--w-text, #0b1019); }
.w-strip span { color: var(--dim); font-size: 12.5px; display: block; }
.w-strip a:hover b { color: var(--w-info); }
.w-strip a small { display: block; font-size: 12px; color: var(--w-info); margin-top: 2px; }

/* cards and two-column layout */
.w-card { background: var(--w-surface, #fff); border: 1px solid var(--soft); border-radius: var(--w-r); padding: 14px 16px; margin: 0 0 12px; min-width: 0; }
.w-card .w-ch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; flex-wrap: wrap; }
.w-card .w-ch h3 { margin: 0 !important; font: 600 15px/1.3 var(--stencil) !important; color: var(--w-text, #0b1019); }
.w-card .w-ch .w-tools { gap: 6px; }
.w-cols2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.w-cols2 > div { min-width: 0; }
.w-muted { color: var(--ink2); font-size: 13px; }
.w-empty { padding: 14px 8px; color: var(--ink2); text-align: center; font-size: 13.5px; }
.w-empty a { color: var(--w-info); }

/* list row: title, small line under it, one thing on the right (chip, due, actions) */
.w-lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--w-line, #eef1f5); align-items: center; }
.w-lrow:first-of-type { border-top: 0; }
.w-lrow a { font-weight: 500; color: var(--w-info); text-decoration: none; }
.w-lrow a:hover { text-decoration: underline; }
.w-lrow small { grid-column: 1; color: var(--dim); font-size: 12px; display: block; }
.w-lrow .w-right { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; gap: 6px; align-items: center; }
.w-lrow.w-lrow3 { grid-template-columns: auto minmax(0, 1fr) auto; }
.w-lrow.w-lrow3 > div { min-width: 0; }
.w-lrow.w-lrow3 small { grid-column: auto; } .w-lrow.w-lrow3 .w-right { grid-column: 3; grid-row: 1; }
.w-lrow.on { background: var(--accent-bg, #fbf0d9); margin: 0 -8px; padding: 8px; border-radius: 6px; }

/* agency tile: the seal when the site has one (img/seals/<key>.png), initials on the ink tile otherwise; 22 / 32 / 40 / 64 px */
.w-org { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--w-surface2, #f1f4f8); border: 1px solid var(--soft); flex: none; vertical-align: middle; overflow: hidden; }
.w-org img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.w-org.fb { background: var(--w-strong, #0b1019); color: #e0b457; font: 700 11px var(--stencil); letter-spacing: .02em; border-color: transparent; }
.w-org.sm { width: 22px; height: 22px; border-radius: 6px; } .w-org.sm img { padding: 1px; } .w-org.sm.fb { font-size: 9px; }
.w-org.lg { width: 40px; height: 40px; } .w-org.lg.fb { font-size: 13px; }
.w-org.xl { width: 64px; height: 64px; border-radius: 14px; } .w-org.xl.fb { font-size: 22px; }
.w-by { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 13.5px; min-width: 0; }
.w-by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* match chip: three bands and one word (Lead decision 9 Oct 2026); replaces the 21-step ramp on the rebuilt pages */
.w-match { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 999px; font: 600 12.5px var(--cond); white-space: nowrap; border: 1px solid transparent; }
.w-match b { font-variant-numeric: tabular-nums; font-weight: 700; }
.w-match.hi { background: var(--w-ok-bg); color: var(--w-ok); border-color: #b9e0cb; }
.w-match.mid { background: var(--w-warn-bg); color: var(--w-warn); border-color: #ecd8a3; }
.w-match.lo { background: var(--w-bad-bg); color: var(--w-bad); border-color: #f1c2b9; }
.w-match.na { background: var(--w-surface2, #f1f4f8); color: var(--dim); border-color: var(--soft); }

/* due pill and the sweep call */
.w-due { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--w-surface2, #f1f4f8); color: var(--ink2); font: 500 12px var(--cond); white-space: nowrap; }
.w-due.soon { background: var(--w-bad-bg); color: var(--w-bad); } .w-due.warm { background: var(--w-warn-bg); color: var(--w-warn); } .w-due.past { color: var(--dim); text-decoration: line-through; }
.w-call { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11px var(--mono); letter-spacing: .02em; }
.w-call.bid { background: var(--w-ok); color: #fff; } .w-call.check { background: var(--w-warn-bg); color: var(--w-warn); } .w-call.pass { background: var(--w-surface2, #f1f4f8); color: var(--dim); }

/* small chips and pills */
.w-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--soft); background: var(--w-surface, #fff); font: 500 12px var(--cond); color: var(--ink2); white-space: nowrap; }
.w-chip.ok { background: var(--w-ok-bg); color: var(--w-ok); border-color: #b9e0cb; } .w-chip.warn { background: var(--w-warn-bg); color: var(--w-warn); border-color: #ecd8a3; } .w-chip.bad { background: var(--w-bad-bg); color: var(--w-bad); border-color: #f1c2b9; } .w-chip.info { background: var(--w-info-bg); color: var(--w-info); border-color: #cfdcf0; } .w-chip.dark { background: var(--w-strong, #0b1019); color: #fff; border-color: transparent; }
.w-pill { display: inline-block; font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--w-surface2, #f1f4f8); color: var(--ink2); vertical-align: middle; }
.w-pill.new { background: var(--w-ok); color: #fff; }
.w-chipset { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.w-fchip { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--soft); background: var(--w-surface, #fff); color: var(--ink2); font: 500 12.5px var(--cond); cursor: pointer; }
.w-fchip[aria-pressed="true"] { background: var(--w-strong, #0b1019); border-color: var(--w-strong, #0b1019); color: #fff; }
.w-seg { display: inline-flex; border: 1px solid var(--w-line, #cfd8e3); border-radius: 8px; overflow: hidden; background: var(--w-surface, #fff); }
.w-seg button { font: 500 13px var(--cond); border: 0; border-left: 1px solid var(--w-line, #e3e8ee); background: none; height: 32px; padding: 0 11px; color: var(--ink2); cursor: pointer; }
.w-seg button:first-child { border-left: 0; }
.w-seg button.on, .w-seg button[aria-pressed="true"], .w-seg button[aria-selected="true"] { background: var(--w-strong, #0b1019); color: #fff; }

/* icon actions: favorite, track, pipeline, copy link (28 px, aria-pressed) */
.w-acts { display: inline-flex; gap: 4px; }
.w-ib { width: 28px; height: 28px; border: 1px solid var(--w-line, #cfd8e3); border-radius: 6px; background: var(--w-surface, #fff); color: var(--ink2); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.w-ib svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.w-ib[aria-pressed="true"] { background: var(--accent-bg, #fbf0d9); border-color: var(--obj); color: var(--obj2, #8f6510); }
.w-ib:hover { border-color: var(--ink2); }
/* the site's save.js buttons (.sv .svf .svt .svp) in the same 28 px shape */
.w-acts .sv { display: inline-flex; gap: 4px; } .w-acts .sv button { width: 28px; height: 28px; padding: 0 !important; border: 1px solid var(--w-line, #cfd8e3) !important; border-radius: 6px !important; background: var(--w-surface, #fff) !important; color: var(--ink2) !important; display: inline-grid; place-items: center; cursor: pointer; }
.w-acts .sv button span { display: none !important; } .w-acts .sv button svg { width: 14px !important; height: 14px !important; }
.w-acts .sv button.on, .w-acts .sv button[aria-pressed="true"] { background: var(--accent-bg, #fbf0d9) !important; border-color: var(--obj) !important; color: var(--obj2, #8f6510) !important; }

/* tables: hairline rows, muted uppercase heads, sortable heads as buttons */
.w-scroll { overflow-x: auto; }
.w-tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--w-surface, #fff); }
.w-tbl th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 8px 8px; border-bottom: 1px solid var(--soft); background: var(--w-surface2, #fafbfc); white-space: nowrap; }
.w-tbl th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
.w-tbl th[aria-sort="ascending"] button, .w-tbl th[aria-sort="descending"] button, .w-tbl th button.on { color: var(--w-text, #0b1019); }
.w-tbl td { padding: 8px 8px; border-bottom: 1px solid var(--w-line, #eef1f5); vertical-align: middle; color: var(--ink2); }
.w-tbl tr:last-child td { border-bottom: 0; }
.w-tbl tbody tr[data-row], .w-tbl tbody tr.w-click { cursor: pointer; } .w-tbl tbody tr.on td { background: var(--accent-bg, #fbf0d9); }
.w-tbl td.tt { min-width: 240px; } .w-tbl td.tt a { display: block; font-weight: 500; color: var(--w-info); line-height: 1.3; text-decoration: none; } .w-tbl td.tt a:hover { text-decoration: underline; }
.w-tbl td small { display: block; color: var(--dim); font-size: 12px; }
.w-tbl td.ag { white-space: nowrap; } .w-tbl td.ag .w-org { margin-right: 6px; } .w-tbl td.ag span { vertical-align: middle; }
.w-tbl .nowrap { white-space: nowrap; } .w-tbl .mono { font-family: var(--code); font-size: 12.5px; } .w-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.w-tbl td b { color: var(--w-text, #0b1019); font-weight: 600; }
.w-tbl td.empty, .w-tbl td.msg { padding: 24px 12px; text-align: center; color: var(--dim); }
.w-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--w-ok); vertical-align: middle; margin-left: 5px; } .w-dot.warn { background: var(--obj); } .w-dot.past { background: #b3bcc8; }

/* section tabs (company and notice pages): sticky under the top bar */
.w-tabs { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 5; display: flex; gap: 2px; overflow-x: auto; background: var(--w-surface, #fff); border-bottom: 1px solid var(--soft); margin: 0 0 14px; scrollbar-width: none; }
.w-tabs a, .w-tabs button { flex: none; height: 38px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--ink2); font: 500 13.5px var(--cond); white-space: nowrap; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.w-tabs a.on, .w-tabs button.on, .w-tabs [aria-selected="true"] { color: var(--w-text, #0b1019); border-bottom-color: var(--obj); }
.w-tabs b { font: 600 11px var(--mono); background: var(--w-surface2, #f1f4f8); color: var(--ink2); border-radius: 999px; padding: 1px 7px; }

/* filter rows (search, company): label column + value column */
.w-frows { display: grid; gap: 8px; }
.w-frow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
.w-frow .fl { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13.5px; color: var(--w-text, #0b1019); }
.w-frow .fv { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.w-in, .w-sel { font: 14px var(--cond); color: var(--w-text, #0b1019); height: 34px; padding: 0 10px; border: 1px solid var(--w-line, #cfd8e3); border-radius: 8px; background: var(--w-surface, #fff); }
.w-in { flex: 1; min-width: 200px; } .w-sel.narrow { width: auto; min-width: 120px; }
.w-in:focus, .w-sel:focus { outline: 0; border-color: var(--w-text, #0b1019); }

/* calendar (dashboard) */
.w-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; margin: 4px 0 8px; }
.w-cal > span { color: var(--dim); font-size: 11.5px; }
.w-cd { position: relative; height: 34px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--ink2); font: 400 13px var(--cond); cursor: pointer; padding: 0; min-width: 0; }
.w-cd.e { visibility: hidden; } .w-cd.today { border-color: var(--w-line, #cfd8e3); } .w-cd.past { color: var(--dim); }
.w-cd.hit { background: var(--accent-bg, #fbf0d9); color: var(--w-text, #0b1019); font-weight: 500; }
.w-cd.hit i { position: absolute; right: 3px; top: 1px; font-style: normal; font-size: 10px; color: var(--obj2, #8f6510); }
.w-cd.on { outline: 2px solid var(--obj); outline-offset: -1px; }
.w-cd:focus-visible { outline: 2px solid var(--obj); }

/* sweep card and notice banner */
.w-swc { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; background: var(--w-surface, #fff); border: 1px solid var(--soft); border-radius: var(--w-r); margin: 0 0 8px; }
.w-swc a { font-weight: 600; color: var(--w-info); text-decoration: none; } .w-swc small { display: block; color: var(--dim); margin: 2px 0 4px; font-size: 12.5px; } .w-swc p { margin: 0; color: var(--ink2); font-size: 13px; }
.w-swr { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.w-notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid #ead9ad; border-radius: var(--w-r); background: var(--accent-bg, #fbf0d9); margin: 0 0 12px; font-size: 14px; color: var(--w-text, #3d3320); }
.w-notice b { color: var(--w-text, #0b1019); }

/* source attribution line (World Bank and other licensed sources) */
.w-src { font-size: 12px; color: var(--dim); } .w-src a { color: var(--dim); }

/* phone */
@media (max-width: 900px) { .w-cols2 { grid-template-columns: 1fr; } .w-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .w-strip.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .w-strip > div, .w-strip > a { border-right: 0; margin-right: 0; } .w-strip > :nth-child(odd) { border-right: 1px solid var(--soft); margin-right: 14px; } }
@media (max-width: 640px) { .w-head h2 { font-size: 22px !important; } .w-frow { grid-template-columns: 1fr; gap: 4px; } .w-in { min-width: 0; } .w-lrow.w-lrow3 { grid-template-columns: auto minmax(0, 1fr); } .w-lrow.w-lrow3 .w-right { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; margin-top: 4px; } .w-tabs { top: 0; } .w-strip b { font-size: 20px; } }
